ch role list
This commit is contained in:
1 parent
19a1f70588
commit
5ab17b1539
2 files changed
+23
-8
No files matched your search
@@ -51,7 +51,17 @@ type ListFilter struct {
|
||||
Limit int
|
||||
}
|
||||
|
||||
type ListRoleDTO struct {
|
||||
Count int64 `json:"count"`
|
||||
Roles []RoleDTO `json:"roles"`
|
||||
// RoleListItemDTO is the list row; name, permissions and the rest come from
|
||||
// GET /roles/:id.
|
||||
type RoleListItemDTO struct {
|
||||
Id int64 `json:"id"`
|
||||
Code string `json:"code"`
|
||||
Scope rbac.Scope `json:"scope"`
|
||||
ScopeName string `json:"scopeName"`
|
||||
UsersCount int64 `json:"usersCount"`
|
||||
}
|
||||
|
||||
type ListRoleDTO struct {
|
||||
Count int64 `json:"count"`
|
||||
Roles []RoleListItemDTO `json:"roles"`
|
||||
}
|
||||
Reference in new issue
Block a user