fully implement acl backend and interface
This commit is contained in:
16
api/acl_admin/users_models.go
Normal file
16
api/acl_admin/users_models.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package api_acladmin
|
||||
|
||||
/*******************************************************************/
|
||||
// used in getUserRoles()
|
||||
type getUserRole struct {
|
||||
ID uint `json:"id" example:"1"`
|
||||
Name string `json:"name" example:"*"`
|
||||
}
|
||||
|
||||
type getUserRolesResponse []getUserRole
|
||||
|
||||
/*******************************************************************/
|
||||
// used in assignRoleToUser()
|
||||
type assignRoleToUserRequest struct {
|
||||
RoleID uint `json:"roleId" example:"1"`
|
||||
}
|
||||
Reference in New Issue
Block a user