mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-12-25 17:16:33 +08:00
refactor: json tag完善
This commit is contained in:
@@ -1,23 +1,23 @@
|
||||
package form
|
||||
|
||||
type ResourceForm struct {
|
||||
Pid int
|
||||
Id int
|
||||
Code string `binding:"required"`
|
||||
Name string `binding:"required"`
|
||||
Type int `binding:"required,oneof=1 2"`
|
||||
Weight int
|
||||
Meta map[string]any
|
||||
Pid int `json:"pid"`
|
||||
Id int `json:"id"`
|
||||
Code string `json:"code" binding:"required"`
|
||||
Name string `json:"name" binding:"required"`
|
||||
Type int `json:"type" binding:"required,oneof=1 2"`
|
||||
Weight int `json:"weight"`
|
||||
Meta map[string]any `json:"meta"`
|
||||
}
|
||||
|
||||
type MenuResourceMeta struct {
|
||||
RouteName string `binding:"required"`
|
||||
Component string `binding:"required"`
|
||||
Redirect string
|
||||
Path string `binding:"required"`
|
||||
IsKeepAlive bool //
|
||||
IsHide bool // 是否在菜单栏显示,默认显示
|
||||
IsAffix bool // tag标签是否不可删除
|
||||
IsIframe bool
|
||||
Link string
|
||||
RouteName string `json:"routeName" binding:"required"`
|
||||
Component string `json:"component" binding:"required"`
|
||||
Redirect string `json:"redirect"`
|
||||
Path string `json:"path" binding:"required"`
|
||||
IsKeepAlive bool `json:"isKeepAlive"` //
|
||||
IsHide bool `json:"isHide"` // 是否在菜单栏显示,默认显示
|
||||
IsAffix bool `json:"isAffix"` // tag标签是否不可删除
|
||||
IsIframe bool `json:"isIframe"`
|
||||
Link string `json:"link"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user