105 lines
1.7 KiB
Go
105 lines
1.7 KiB
Go
// Package dto — RBAC 管理的输入输出类型。
|
|
package dto
|
|
|
|
type PageQuery struct {
|
|
Page int
|
|
Size int
|
|
Keyword string
|
|
}
|
|
|
|
type AdminItem struct {
|
|
Id uint64
|
|
Username string
|
|
Nickname string
|
|
Status int
|
|
BarkDeviceId string
|
|
PushplusToken string
|
|
RoleIds []uint64
|
|
RoleNames []string
|
|
CreatedAt string
|
|
}
|
|
|
|
type AdminCreateInput struct {
|
|
Username string
|
|
Password string
|
|
Nickname string
|
|
BarkDeviceId string
|
|
PushplusToken string
|
|
RoleIds []uint64
|
|
}
|
|
|
|
type AdminUpdateInput struct {
|
|
Id uint64
|
|
Nickname string
|
|
Status int
|
|
BarkDeviceId string
|
|
PushplusToken string
|
|
RoleIds []uint64
|
|
}
|
|
|
|
type RoleItem struct {
|
|
Id uint64
|
|
Code string
|
|
Name string
|
|
Status int
|
|
MenuIds []uint64
|
|
CreatedAt string
|
|
}
|
|
|
|
type RoleCreateInput struct {
|
|
Code string
|
|
Name string
|
|
Status int
|
|
MenuIds []uint64
|
|
}
|
|
|
|
type RoleUpdateInput struct {
|
|
Id uint64
|
|
Name string
|
|
Status int
|
|
MenuIds []uint64
|
|
}
|
|
|
|
// MenuNode 是菜单管理使用的完整菜单树节点。
|
|
type MenuNode struct {
|
|
Id uint64
|
|
ParentId uint64
|
|
Name string
|
|
Icon string
|
|
Type int
|
|
Path string
|
|
Component string
|
|
Permission string
|
|
Sort int
|
|
Status int
|
|
Hidden bool
|
|
Children []*MenuNode
|
|
}
|
|
|
|
type MenuCreateInput struct {
|
|
ParentId uint64
|
|
Name string
|
|
Icon string
|
|
Type int
|
|
Path string
|
|
Component string
|
|
Permission string
|
|
Sort int
|
|
Status int
|
|
Hidden bool
|
|
}
|
|
|
|
type MenuUpdateInput struct {
|
|
Id uint64
|
|
ParentId uint64
|
|
Name string
|
|
Icon string
|
|
Type int
|
|
Path string
|
|
Component string
|
|
Permission string
|
|
Sort int
|
|
Status int
|
|
Hidden bool
|
|
}
|