更新代码
This commit is contained in:
@@ -78,11 +78,6 @@ func (c *PlatformFileController) effectiveTid(claims *jwtutil.Claims) uint64 {
|
||||
return 0
|
||||
}
|
||||
|
||||
// Prepare 所有接口执行前补齐文件存储分层所需字段,避免历史库缺列导致查询/写入报错
|
||||
func (c *PlatformFileController) Prepare() {
|
||||
models.EnsureSystemFileStorageColumns()
|
||||
}
|
||||
|
||||
func (c *PlatformFileController) jsonErr(httpStatus, bizCode int, msg string) {
|
||||
c.Ctx.Output.SetStatus(httpStatus)
|
||||
c.Data["json"] = map[string]interface{}{"code": bizCode, "msg": msg}
|
||||
|
||||
Reference in New Issue
Block a user