作者 tangxuhui
1 -{"F:\\go\\src\\allied-creation\\allied-creation-gateway\\pkg\\port\\beego\\routers":1627896972308508600}  
  1 +{"F:\\go\\src\\allied-creation\\allied-creation-gateway\\pkg\\port\\beego\\routers":1627899047152189500}
@@ -24,7 +24,7 @@ type CreateMenuCommand struct { @@ -24,7 +24,7 @@ type CreateMenuCommand struct {
24 // 排序 24 // 排序
25 Sort int `json:"sort" valid:"Required"` 25 Sort int `json:"sort" valid:"Required"`
26 // 菜单说明 26 // 菜单说明
27 - Desc string `json:"desc,omitempty"` 27 + Desc string `json:"remark,omitempty"`
28 // 菜单是否公开状态,[2:隐藏],[1:显示],默认显示 28 // 菜单是否公开状态,[2:隐藏],[1:显示],默认显示
29 IsPublish int `json:"isPublish" valid:"Required"` 29 IsPublish int `json:"isPublish" valid:"Required"`
30 // 启用状态(启用:1 禁用:2),默认启用 30 // 启用状态(启用:1 禁用:2),默认启用
@@ -27,7 +27,7 @@ type UpdateMenuCommand struct { @@ -27,7 +27,7 @@ type UpdateMenuCommand struct {
27 // 排序 27 // 排序
28 Sort int `json:"sort" valid:"Required"` 28 Sort int `json:"sort" valid:"Required"`
29 // 菜单说明 29 // 菜单说明
30 - Desc string `json:"desc,omitempty"` 30 + Remark string `json:"remark,omitempty"`
31 // 菜单是否公开状态,[0:隐藏],[1:显示],默认显示 31 // 菜单是否公开状态,[0:隐藏],[1:显示],默认显示
32 IsPublish int `json:"isPublish,omitempty"` 32 IsPublish int `json:"isPublish,omitempty"`
33 // 启用状态(启用:1 禁用:2),默认启用 33 // 启用状态(启用:1 禁用:2),默认启用
@@ -79,7 +79,7 @@ func (menuService *MenuService) UpdateMenu(updateMenuCommand *command.UpdateMenu @@ -79,7 +79,7 @@ func (menuService *MenuService) UpdateMenu(updateMenuCommand *command.UpdateMenu
79 MenuType: updateMenuCommand.MenuType, 79 MenuType: updateMenuCommand.MenuType,
80 Icon: updateMenuCommand.Icon, 80 Icon: updateMenuCommand.Icon,
81 Sort: updateMenuCommand.Sort, 81 Sort: updateMenuCommand.Sort,
82 - Desc: updateMenuCommand.Desc, 82 + Desc: updateMenuCommand.Remark,
83 IsPublish: updateMenuCommand.IsPublish, 83 IsPublish: updateMenuCommand.IsPublish,
84 }) 84 })
85 if err != nil { 85 if err != nil {
@@ -123,6 +123,7 @@ type ( @@ -123,6 +123,7 @@ type (
123 Category string `json:"category"` 123 Category string `json:"category"`
124 IsPublish int `json:"isPublish"` 124 IsPublish int `json:"isPublish"`
125 ParentMenuName string `json:"parentMenuName"` 125 ParentMenuName string `json:"parentMenuName"`
  126 + Remark string `json:"remark"`
126 } 127 }
127 ) 128 )
128 129
@@ -12,9 +12,9 @@ func (t Int64String) MarshalJSON() ([]byte, error) { @@ -12,9 +12,9 @@ func (t Int64String) MarshalJSON() ([]byte, error) {
12 stamp := fmt.Sprintf(`"%d"`, t) 12 stamp := fmt.Sprintf(`"%d"`, t)
13 return []byte(stamp), nil 13 return []byte(stamp), nil
14 } 14 }
15 -func (t Int64String) UnMarshalJSON(data []byte) error { 15 +func (t *Int64String) UnmarshalJSON(data []byte) error {
16 v, err := strconv.ParseInt(string(data), 10, 64) 16 v, err := strconv.ParseInt(string(data), 10, 64)
17 - t = Int64String(v) 17 + *t = Int64String(v)
18 return err 18 return err
19 } 19 }
20 20