fully implement acl backend and interface
This commit is contained in:
@@ -25,6 +25,14 @@ type getRoleUser struct {
|
||||
}
|
||||
type getRoleUsersResponse []getRoleUser
|
||||
|
||||
/*******************************************************************/
|
||||
// used in getRoleResources()
|
||||
type getRoleResource struct {
|
||||
ID uint `json:"id" example:"1"`
|
||||
Name string `json:"name" example:"*"`
|
||||
}
|
||||
type getRoleResourcesResponse []getRoleResource
|
||||
|
||||
/*******************************************************************/
|
||||
// used in createRole()
|
||||
type createRoleRequest struct {
|
||||
@@ -46,3 +54,9 @@ type updateRoleResponse struct {
|
||||
ID uint `json:"id" example:"1"`
|
||||
Name string `json:"name" example:"admin"`
|
||||
}
|
||||
|
||||
/*******************************************************************/
|
||||
// used in assignResourceToRole()
|
||||
type assignResourceToRoleRequest struct {
|
||||
ResourceID uint `json:"resourceId" example:"1"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user