ch logika
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-18 11:53:37 +05:00
parent e0d03730de
commit d3e188affe
28 changed files with 405 additions and 656 deletions

View File

@@ -2445,6 +2445,12 @@ const docTemplate = `{
"$ref": "#/definitions/appresult.AppError"
}
},
"409": {
"description": "Conflict",
"schema": {
"$ref": "#/definitions/appresult.AppError"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
@@ -2559,6 +2565,12 @@ const docTemplate = `{
"$ref": "#/definitions/appresult.AppError"
}
},
"409": {
"description": "Conflict",
"schema": {
"$ref": "#/definitions/appresult.AppError"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
@@ -4988,109 +5000,6 @@ const docTemplate = `{
}
}
},
"/permission-users": {
"post": {
"security": [
{
"BearerAuth": []
}
],
"description": "Grants (\"allow\") or revokes (\"deny\") a permission for a specific user on top of their role, or updates the effect if the pair is already assigned",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"permission-users"
],
"summary": "Assign a permission override to a user",
"parameters": [
{
"description": "Permission-user payload",
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/permissionuser.CreatePermissionUserDTO"
}
}
],
"responses": {
"201": {
"description": "Created",
"schema": {
"$ref": "#/definitions/appresult.AppSuccess"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/appresult.AppError"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/appresult.AppError"
}
}
}
}
},
"/permission-users/{id}": {
"delete": {
"security": [
{
"BearerAuth": []
}
],
"description": "Deletes a permission-user assignment, falling back to the user's role for that permission",
"produces": [
"application/json"
],
"tags": [
"permission-users"
],
"summary": "Remove a user's permission override",
"parameters": [
{
"type": "integer",
"description": "Permission-user ID",
"name": "id",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/appresult.AppSuccess"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/appresult.AppError"
}
},
"404": {
"description": "Not Found",
"schema": {
"$ref": "#/definitions/appresult.AppError"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/appresult.AppError"
}
}
}
}
},
"/permissions": {
"get": {
"security": [
@@ -7451,7 +7360,8 @@ const docTemplate = `{
"required": [
"address",
"name",
"region"
"region",
"uniqueCode"
],
"properties": {
"active": {
@@ -7495,6 +7405,9 @@ const docTemplate = `{
},
"region": {
"type": "string"
},
"uniqueCode": {
"type": "string"
}
}
},
@@ -8554,9 +8467,6 @@ const docTemplate = `{
"status": {
"type": "string"
},
"uniqueId": {
"type": "string"
},
"userId": {
"type": "integer"
},
@@ -8785,9 +8695,6 @@ const docTemplate = `{
"status": {
"type": "string"
},
"uniqueId": {
"type": "string"
},
"userId": {
"type": "integer"
},
@@ -9228,29 +9135,6 @@ const docTemplate = `{
}
}
},
"permissionuser.CreatePermissionUserDTO": {
"type": "object",
"required": [
"effect",
"permissionId",
"userId"
],
"properties": {
"effect": {
"type": "string",
"enum": [
"allow",
"deny"
]
},
"permissionId": {
"type": "integer"
},
"userId": {
"type": "integer"
}
}
},
"province.CreateProvinceDTO": {
"type": "object",
"required": [