rm -rf permission module
This commit is contained in:
21
docs/docs.go
21
docs/docs.go
@@ -4977,14 +4977,14 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"/permission-roles": {
|
||||
"/permission-roles/bulk": {
|
||||
"post": {
|
||||
"security": [
|
||||
{
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "Creates a permission-role assignment, or updates the existing pair if already assigned",
|
||||
"description": "Replaces roleId's whole permission set with permissionIds - pairs not listed are removed, missing ones are added, an empty list clears all permissions from the role",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -4994,15 +4994,15 @@ const docTemplate = `{
|
||||
"tags": [
|
||||
"permission-roles"
|
||||
],
|
||||
"summary": "Assign permission to role",
|
||||
"summary": "Set a role's permissions",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "Permission-role payload",
|
||||
"description": "Role + the permission IDs it should have",
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/permissionrole.CreatePermissionRoleDTO"
|
||||
"$ref": "#/definitions/permissionrole.SetRolePermissionsDTO"
|
||||
}
|
||||
}
|
||||
],
|
||||
@@ -9359,15 +9359,18 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"permissionrole.CreatePermissionRoleDTO": {
|
||||
"permissionrole.SetRolePermissionsDTO": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"permissionId",
|
||||
"permissionIds",
|
||||
"roleId"
|
||||
],
|
||||
"properties": {
|
||||
"permissionId": {
|
||||
"type": "integer"
|
||||
"permissionIds": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"roleId": {
|
||||
"type": "integer"
|
||||
|
||||
Reference in New Issue
Block a user