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

@@ -137,10 +137,13 @@ definitions:
type: integer
region:
type: string
uniqueCode:
type: string
required:
- address
- name
- region
- uniqueCode
type: object
branches.LocalizedText:
properties:
@@ -861,8 +864,6 @@ definitions:
type: string
status:
type: string
uniqueId:
type: string
userId:
type: integer
workCompany:
@@ -1022,8 +1023,6 @@ definitions:
type: string
status:
type: string
uniqueId:
type: string
userId:
type: integer
workCompany:
@@ -1346,22 +1345,6 @@ definitions:
- permissionId
- roleId
type: object
permissionuser.CreatePermissionUserDTO:
properties:
effect:
enum:
- allow
- deny
type: string
permissionId:
type: integer
userId:
type: integer
required:
- effect
- permissionId
- userId
type: object
province.CreateProvinceDTO:
properties:
active:
@@ -3231,6 +3214,10 @@ paths:
description: Bad Request
schema:
$ref: '#/definitions/appresult.AppError'
"409":
description: Conflict
schema:
$ref: '#/definitions/appresult.AppError'
"500":
description: Internal Server Error
schema:
@@ -3336,6 +3323,10 @@ paths:
description: Not Found
schema:
$ref: '#/definitions/appresult.AppError'
"409":
description: Conflict
schema:
$ref: '#/definitions/appresult.AppError'
"500":
description: Internal Server Error
schema:
@@ -4867,73 +4858,6 @@ paths:
summary: Remove permission from role
tags:
- permission-roles
/permission-users:
post:
consumes:
- application/json
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
parameters:
- description: Permission-user payload
in: body
name: body
required: true
schema:
$ref: '#/definitions/permissionuser.CreatePermissionUserDTO'
produces:
- application/json
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'
security:
- BearerAuth: []
summary: Assign a permission override to a user
tags:
- permission-users
/permission-users/{id}:
delete:
description: Deletes a permission-user assignment, falling back to the user's
role for that permission
parameters:
- description: Permission-user ID
in: path
name: id
required: true
type: integer
produces:
- application/json
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'
security:
- BearerAuth: []
summary: Remove a user's permission override
tags:
- permission-users
/permissions:
get:
description: Returns paginated permissions with optional filters