refactor🎨 移除设置log函数

This commit is contained in:
wenjianzhang committed 2021-05-16 21:47:49 +08:00
1 parent 33275573f9
commit b2345039e4
4 files changed
+16 -20

No files matched your search

+4 -2
View File
@@ -92,7 +92,9 @@ func (s *SysMenuControl) Bind(ctx *gin.Context) error {
// Generate 结构体数据转化 从 Control 至 model 对应的模型
func (s *SysMenuControl) Generate(model *models.SysMenu) {
model.MenuId = s.MenuId
if s.MenuId != 0 {
model.MenuId = s.MenuId
}
model.MenuName = s.MenuName
model.Title = s.Title
model.Icon = s.Icon
@@ -168,4 +170,4 @@ type MenuRole struct {
type SelectRole struct {
RoleId int `uri:"roleId"`
}
}