文件上传

This commit is contained in:
yxh
2020-03-16 23:51:16 +08:00
parent 8b0c200ee3
commit bbb15376cb
14 changed files with 285 additions and 81 deletions
+10
View File
@@ -176,3 +176,13 @@ func DeleteByIds(ids []int) error {
}
return nil
}
//通过key获取配置信息
func GetByKey(key string) (config *Entity, err error) {
config, err = Model.FindOne("config_key", key)
if err != nil {
g.Log().Error(err)
err = gerror.New("获取配置失败")
}
return
}