ch role list
CI/CD / Vet, test, build (push) Has been cancelled
CI/CD / Docker image (push) Has been cancelled
CI/CD / Deploy binary to server (push) Has been cancelled

This commit is contained in:
guwandyk committed 2026-09-30 13:42:14 +05:00
1 parent 19a1f70588
commit 5ab17b1539
2 files changed
+23 -8

No files matched your search

+13 -3
View File
@@ -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"`
}