38 lines
1.2 KiB
Go
38 lines
1.2 KiB
Go
package dto
|
|
|
|
type AuthorityRequest struct {
|
|
AuthorityID uint `json:"authorityId"`
|
|
AuthorityName string `json:"authorityName"`
|
|
ParentID *uint `json:"parentId"`
|
|
DataScope int `json:"dataScope"`
|
|
DefaultRouter string `json:"defaultRouter"`
|
|
}
|
|
|
|
type CopyAuthorityRequest struct {
|
|
Authority AuthorityRequest `json:"authority"`
|
|
OldAuthorityID uint `json:"oldAuthorityId"`
|
|
}
|
|
|
|
type DeleteAuthorityRequest struct {
|
|
AuthorityID uint `json:"authorityId"`
|
|
}
|
|
type SetRoleUsersRequest struct {
|
|
AuthorityID uint `json:"authorityId"`
|
|
UserIDs []uint `json:"userIds"`
|
|
}
|
|
type SetDataScopeRequest struct {
|
|
AuthorityID uint `json:"authorityId"`
|
|
DataScope int `json:"dataScope"`
|
|
DepartmentIDs []uint `json:"deptIds"`
|
|
}
|
|
|
|
type AuthorityResponse struct {
|
|
AuthorityID uint `json:"authorityId"`
|
|
AuthorityName string `json:"authorityName"`
|
|
ParentID *uint `json:"parentId"`
|
|
Children []*AuthorityResponse `json:"children"`
|
|
Menus []any `json:"menus"`
|
|
DataScope int `json:"dataScope"`
|
|
DefaultRouter string `json:"defaultRouter"`
|
|
}
|