ch some
This commit is contained in:
@@ -196,6 +196,8 @@ definitions:
|
||||
type: number
|
||||
balanceCurrency:
|
||||
type: string
|
||||
branchId:
|
||||
type: integer
|
||||
cardNumber:
|
||||
type: string
|
||||
checkedAt:
|
||||
@@ -223,6 +225,8 @@ definitions:
|
||||
type: number
|
||||
balanceCurrency:
|
||||
type: string
|
||||
branchId:
|
||||
type: integer
|
||||
cardNumber:
|
||||
type: string
|
||||
checkedAt:
|
||||
@@ -1263,15 +1267,6 @@ definitions:
|
||||
- tax
|
||||
- title
|
||||
type: object
|
||||
online-back_internal_cards_shared.LocalizedText:
|
||||
properties:
|
||||
en:
|
||||
type: string
|
||||
ru:
|
||||
type: string
|
||||
tm:
|
||||
type: string
|
||||
type: object
|
||||
paymentcard.CreatePaymentCardDTO:
|
||||
properties:
|
||||
active:
|
||||
@@ -1281,7 +1276,7 @@ definitions:
|
||||
price:
|
||||
type: string
|
||||
title:
|
||||
$ref: '#/definitions/online-back_internal_cards_shared.LocalizedText'
|
||||
$ref: '#/definitions/shared.LocalizedText'
|
||||
required:
|
||||
- price
|
||||
- title
|
||||
@@ -1300,7 +1295,7 @@ definitions:
|
||||
price:
|
||||
type: string
|
||||
title:
|
||||
$ref: '#/definitions/online-back_internal_cards_shared.LocalizedText'
|
||||
$ref: '#/definitions/shared.LocalizedText'
|
||||
required:
|
||||
- price
|
||||
- title
|
||||
@@ -1310,12 +1305,19 @@ definitions:
|
||||
code:
|
||||
type: string
|
||||
guardName:
|
||||
enum:
|
||||
- web
|
||||
- operator
|
||||
- admin
|
||||
type: string
|
||||
module:
|
||||
type: string
|
||||
name:
|
||||
type: string
|
||||
required:
|
||||
- code
|
||||
- guardName
|
||||
- module
|
||||
- name
|
||||
type: object
|
||||
permission.UpdatePermissionDTO:
|
||||
@@ -1323,12 +1325,19 @@ definitions:
|
||||
code:
|
||||
type: string
|
||||
guardName:
|
||||
enum:
|
||||
- web
|
||||
- operator
|
||||
- admin
|
||||
type: string
|
||||
module:
|
||||
type: string
|
||||
name:
|
||||
type: string
|
||||
required:
|
||||
- code
|
||||
- guardName
|
||||
- module
|
||||
- name
|
||||
type: object
|
||||
permissionrole.CreatePermissionRoleDTO:
|
||||
@@ -1399,7 +1408,7 @@ definitions:
|
||||
price:
|
||||
type: string
|
||||
title:
|
||||
$ref: '#/definitions/online-back_internal_cards_shared.LocalizedText'
|
||||
$ref: '#/definitions/shared.LocalizedText'
|
||||
required:
|
||||
- price
|
||||
- title
|
||||
@@ -1413,7 +1422,7 @@ definitions:
|
||||
price:
|
||||
type: string
|
||||
title:
|
||||
$ref: '#/definitions/online-back_internal_cards_shared.LocalizedText'
|
||||
$ref: '#/definitions/shared.LocalizedText'
|
||||
required:
|
||||
- price
|
||||
- title
|
||||
@@ -1423,6 +1432,10 @@ definitions:
|
||||
code:
|
||||
type: string
|
||||
guardName:
|
||||
enum:
|
||||
- web
|
||||
- operator
|
||||
- admin
|
||||
type: string
|
||||
name:
|
||||
type: string
|
||||
@@ -1436,6 +1449,10 @@ definitions:
|
||||
code:
|
||||
type: string
|
||||
guardName:
|
||||
enum:
|
||||
- web
|
||||
- operator
|
||||
- admin
|
||||
type: string
|
||||
name:
|
||||
type: string
|
||||
@@ -1454,6 +1471,15 @@ definitions:
|
||||
- roleId
|
||||
- userId
|
||||
type: object
|
||||
shared.LocalizedText:
|
||||
properties:
|
||||
en:
|
||||
type: string
|
||||
ru:
|
||||
type: string
|
||||
tm:
|
||||
type: string
|
||||
type: object
|
||||
user.CreateUserDTO:
|
||||
properties:
|
||||
active:
|
||||
@@ -4920,6 +4946,14 @@ paths:
|
||||
in: query
|
||||
name: permission_name
|
||||
type: string
|
||||
- description: Filter by guard (web, operator, admin)
|
||||
in: query
|
||||
name: guard_name
|
||||
type: string
|
||||
- description: Filter by saha (cards, loans, …)
|
||||
in: query
|
||||
name: module
|
||||
type: string
|
||||
- default: 1
|
||||
description: Page number
|
||||
in: query
|
||||
@@ -5086,10 +5120,34 @@ paths:
|
||||
summary: Update permission
|
||||
tags:
|
||||
- permission
|
||||
/permissions/tree:
|
||||
get:
|
||||
description: Returns permissions grouped as guard → module (saha) → permissions
|
||||
parameters:
|
||||
- description: Filter by guard (web, operator, admin)
|
||||
in: query
|
||||
name: guard_name
|
||||
type: string
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppSuccess'
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
security:
|
||||
- BearerAuth: []
|
||||
summary: Permission tree
|
||||
tags:
|
||||
- permission
|
||||
/profile:
|
||||
get:
|
||||
description: Returns the authenticated user's profile with role, branches, and
|
||||
permissions
|
||||
permissions grouped by saha (module)
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
@@ -5943,7 +6001,8 @@ paths:
|
||||
tags:
|
||||
- user
|
||||
get:
|
||||
description: Returns a single user with assigned branches and roleId
|
||||
description: Returns a single user with assigned branches, roleId, and effective
|
||||
permissions
|
||||
parameters:
|
||||
- description: User ID
|
||||
in: path
|
||||
|
||||
Reference in New Issue
Block a user