1、action中各动作添加数据权限

2、修改jwt中key为常量
This commit is contained in:
linwenxiang committed 2020-09-03 10:49:31 +08:00
1 parent d3622c93fc
commit 4b8c372038
8 files changed
+54 -16

No files matched your search

+1 -1
View File
@@ -35,10 +35,10 @@ func CreateAction(control dto.Control) gin.HandlerFunc {
err = db.WithContext(c).Create(object).Error
tools.HasError(err, "创建失败", 500)
app.OK(c, object.GetId(), "创建成功")
c.Next()
default:
err = errors.New("db connect not exist")
tools.HasError(err, "", 500)
}
c.Next()
}
}