rm -rf permission module
Some checks failed
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:
2026-09-19 02:40:38 +05:00
parent c6b9cb7462
commit 848a07324f
10 changed files with 193 additions and 119 deletions

View File

@@ -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"