Documentation ¶
Index ¶
- type AdminMenuDeleteForm
- type AdminMenuDetailForm
- type AdminMenuListResult
- type AdminMenuListResults
- type AdminMenuOptionsResult
- type AdminMenuOptionsResults
- type AdminMenuPermissionResult
- type AdminMenuResult
- type AdminMenuStoreForm
- type AdminPermissionDetail
- type AdminPermissionDetailResult
- type AdminPermissionOptionsResult
- type AdminPermissionStoreForm
- type AdminPermissionsDeleteForm
- type AdminPermissionsInfoForm
- type AdminPermissionsInfoResult
- type AdminPermissionsListResult
- type AdminRoleDeleteForm
- type AdminRoleDetail
- type AdminRoleDetailResult
- type AdminRoleInfoForm
- type AdminRoleInfoResult
- type AdminRoleListForm
- type AdminRoleListResult
- type AdminRoleOptionsResult
- type AdminRoleStoreForm
- type AdminUserAuthInfoForm
- type AdminUserAuthInfoResult
- type AdminUserAuthStoreForm
- type AdminUserListResult
- type AdminUserMenuForm
- type AdminUserOptionResult
- type AdminUserRolesResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminMenuDeleteForm ¶
type AdminMenuDeleteForm struct {
Id int `form:"id" json:"id" binding:"required"`
}
type AdminMenuDetailForm ¶
type AdminMenuDetailForm AdminMenuDeleteForm
type AdminMenuListResult ¶
type AdminMenuListResult struct { Id string `json:"id"` ParentId string `json:"parent_id"` Order string `json:"order"` Type string `json:"type"` ViewPath string `json:"view_path"` IsDefault string `json:"is_default"` KeepAlive string `json:"keep_alive"` Name string `json:"name"` Title string `json:"title"` Icon string `json:"icon"` Uri string `json:"uri"` IsShow string `json:"is_show"` }
func (AdminMenuListResult) GetId ¶
func (m AdminMenuListResult) GetId() string
func (AdminMenuListResult) GetParentId ¶
func (m AdminMenuListResult) GetParentId() string
func (AdminMenuListResult) IsRoot ¶
func (m AdminMenuListResult) IsRoot() bool
type AdminMenuListResults ¶
type AdminMenuListResults []AdminMenuListResult
func (AdminMenuListResults) ConvertToNodeArray ¶
func (s AdminMenuListResults) ConvertToNodeArray() (nodes []tree.Node)
ConvertToNodeArray 将当前数组转换成父类 Node 接口 数组
type AdminMenuOptionsResult ¶
type AdminMenuOptionsResult struct { Id string `json:"id"` ParentId string `json:"parent_id"` Title string `json:"title"` PermissionList []AdminMenuPermissionResult `json:"permission_list" gorm:"foreignKey:Group;references:Id"` }
func (AdminMenuOptionsResult) GetId ¶
func (m AdminMenuOptionsResult) GetId() string
func (AdminMenuOptionsResult) GetParentId ¶
func (m AdminMenuOptionsResult) GetParentId() string
func (AdminMenuOptionsResult) IsRoot ¶
func (m AdminMenuOptionsResult) IsRoot() bool
type AdminMenuOptionsResults ¶
type AdminMenuOptionsResults []AdminMenuOptionsResult
func (AdminMenuOptionsResults) ConvertToNodeArray ¶
func (s AdminMenuOptionsResults) ConvertToNodeArray() (nodes []tree.Node)
ConvertToNodeArray 将当前数组转换成父类 Node 接口 数组
type AdminMenuResult ¶
type AdminMenuResult struct { Id string `json:"id"` ParentId string `json:"parent_id"` Order int `json:"order"` Type string `json:"type"` ViewPath string `json:"view_path"` IsDefault string `json:"is_default"` KeepAlive string `json:"keep_alive"` Name string `json:"name"` Title string `json:"title"` Icon string `json:"icon"` Uri string `json:"uri"` IsShow string `json:"is_show"` }
type AdminMenuStoreForm ¶
type AdminMenuStoreForm struct { Id int `form:"id" json:"id"` Type string `form:"type" json:"type"` ViewPath string `json:"view_path" json:"view_path"` IsDefault string `json:"is_default" json:"is_default"` KeepAlive string `json:"keep_alive" json:"keep_alive"` Name string `json:"name" json:"name"` ParentId string `form:"parent_id" json:"parent_id"` Order int `form:"order" json:"order"` Title string `form:"title" json:"title" binding:"required"` Icon string `form:"icon" json:"icon"` Uri string `form:"uri" json:"uri"` IsShow string `form:"is_show" json:"is_show" binding:"required"` }
type AdminPermissionDetail ¶
type AdminPermissionDetail struct { Id string `json:"id"` Slug string `json:"slug"` Name string `json:"name"` Group string `json:"group"` HttpPath datatypes.Args `json:"http_path"` HttpMethod datatypes.Args `json:"http_method"` HttpAuth string `json:"http_auth"` CreatedAt datatypes.DateTime `json:"created_at"` UpdatedAt datatypes.DateTime `json:"updated_at"` }
type AdminPermissionDetailResult ¶
type AdminPermissionDetailResult struct { AdminPermissionDetail UserList []string `json:"user_list"` }
type AdminPermissionStoreForm ¶
type AdminPermissionStoreForm struct { Id string `form:"id" json:"id"` Slug string `form:"slug" json:"slug" binding:"required"` Name string `form:"name" json:"name" binding:"required"` Group string `form:"group" json:"group" binding:"required"` HttpMethod []string `form:"http_method" json:"http_method"` HttpPath string `form:"http_path" json:"http_path" binding:"required"` HttpAuth string `form:"http_auth" json:"http_auth" binding:"required"` }
type AdminPermissionsDeleteForm ¶
type AdminPermissionsDeleteForm struct {
Id int `form:"id" binding:"required"`
}
type AdminPermissionsInfoForm ¶
type AdminPermissionsInfoForm struct {
Id string `form:"id" json:"id" binding:"required"`
}
type AdminPermissionsListResult ¶
type AdminPermissionsListResult struct { Id string `json:"id"` Name string `json:"name"` Slug string `json:"slug"` Group string `json:"group"` HttpMethod datatypes.Args `json:"http_method"` HttpPath datatypes.Args `json:"http_path"` HttpAuth string `json:"http_auth"` CreatedAt datatypes.DateTime `json:"created_at"` UpdatedAt datatypes.DateTime `json:"updated_at"` }
type AdminRoleDeleteForm ¶
type AdminRoleDeleteForm struct {
Id string `form:"id" binding:"required"`
}
type AdminRoleDetail ¶
type AdminRoleDetailResult ¶
type AdminRoleDetailResult struct { AdminRoleDetail MenuList []string `json:"menu_list"` PermissionList []string `json:"permission_list"` UserList []string `json:"user_list"` }
type AdminRoleInfoForm ¶
type AdminRoleInfoForm struct {
Id string `form:"id" binding:"required"`
}
type AdminRoleInfoResult ¶
type AdminRoleListForm ¶
AdminRoleListForm 角色列表请求参数
type AdminRoleListResult ¶
type AdminRoleOptionsResult ¶
type AdminRoleStoreForm ¶
type AdminRoleStoreForm struct { Id string `form:"id" json:"id"` Slug string `form:"slug" json:"slug" binding:"required"` Name string `form:"name" json:"name" binding:"required"` MenuList []string `form:"menu_list" json:"menu_list" binding:"gt=0"` PermissionList []string `form:"permission_list" json:"permission_list" binding:"gt=0"` }
type AdminUserAuthInfoForm ¶
type AdminUserAuthInfoForm struct {
Id string `form:"id" binding:"required"`
}
type AdminUserAuthInfoResult ¶
type AdminUserAuthStoreForm ¶
type AdminUserListResult ¶
type AdminUserListResult struct { Id int64 `json:"id"` Username string `json:"username"` Name string `json:"name"` CreatedAt datatypes.DateTime `json:"created_at"` UpdatedAt datatypes.DateTime `json:"updated_at"` RoleList []AdminUserRolesResult `json:"role_list" gorm:"foreignKey:UserId;references:Id"` }
type AdminUserMenuForm ¶
type AdminUserMenuForm struct {
UserId int `form:"user_id" binding:"required"`
}
type AdminUserOptionResult ¶
type AdminUserRolesResult ¶
Click to show internal directories.
Click to hide internal directories.