🎨将邮箱smtp配置改为系统当中配置

This commit is contained in:
coward
2024-10-15 17:16:22 +08:00
parent fa04d9c83a
commit 331849522f
5 changed files with 34 additions and 19 deletions

View File

@@ -90,6 +90,17 @@ func (s setting) GetAllSetting(blackList []string) (data []vo.SettingItem, err e
return
}
// GetByCode
// @description: 获取指定code的配置
// @receiver s
// @param code
// @return data
// @return err
func (s setting) GetByCode(code string) (data *model.Setting, err error) {
err = s.Model(&model.Setting{}).Where("code = ?", code).Take(&data).Error
return
}
// Export
// @description: 导出
// @receiver s