ch some
This commit is contained in:
129
docs/docs.go
129
docs/docs.go
@@ -5113,6 +5113,18 @@ const docTemplate = `{
|
||||
"name": "permission_name",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Filter by guard (web, operator, admin)",
|
||||
"name": "guard_name",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Filter by saha (cards, loans, …)",
|
||||
"name": "module",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"default": 1,
|
||||
@@ -5199,6 +5211,45 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"/permissions/tree": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "Returns permissions grouped as guard → module (saha) → permissions",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"permission"
|
||||
],
|
||||
"summary": "Permission tree",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Filter by guard (web, operator, admin)",
|
||||
"name": "guard_name",
|
||||
"in": "query"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/appresult.AppSuccess"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/appresult.AppError"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/permissions/{id}": {
|
||||
"get": {
|
||||
"security": [
|
||||
@@ -5370,7 +5421,7 @@ const docTemplate = `{
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "Returns the authenticated user's profile with role, branches, and permissions",
|
||||
"description": "Returns the authenticated user's profile with role, branches, and permissions grouped by saha (module)",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -6781,7 +6832,7 @@ const docTemplate = `{
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "Returns a single user with assigned branches and roleId",
|
||||
"description": "Returns a single user with assigned branches, roleId, and effective permissions",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -7534,6 +7585,9 @@ const docTemplate = `{
|
||||
"balanceCurrency": {
|
||||
"type": "string"
|
||||
},
|
||||
"branchId": {
|
||||
"type": "integer"
|
||||
},
|
||||
"cardNumber": {
|
||||
"type": "string"
|
||||
},
|
||||
@@ -7573,6 +7627,9 @@ const docTemplate = `{
|
||||
"balanceCurrency": {
|
||||
"type": "string"
|
||||
},
|
||||
"branchId": {
|
||||
"type": "integer"
|
||||
},
|
||||
"cardNumber": {
|
||||
"type": "string"
|
||||
},
|
||||
@@ -9056,20 +9113,6 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"online-back_internal_cards_shared.LocalizedText": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"en": {
|
||||
"type": "string"
|
||||
},
|
||||
"ru": {
|
||||
"type": "string"
|
||||
},
|
||||
"tm": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"paymentcard.CreatePaymentCardDTO": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
@@ -9087,7 +9130,7 @@ const docTemplate = `{
|
||||
"type": "string"
|
||||
},
|
||||
"title": {
|
||||
"$ref": "#/definitions/online-back_internal_cards_shared.LocalizedText"
|
||||
"$ref": "#/definitions/shared.LocalizedText"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -9116,7 +9159,7 @@ const docTemplate = `{
|
||||
"type": "string"
|
||||
},
|
||||
"title": {
|
||||
"$ref": "#/definitions/online-back_internal_cards_shared.LocalizedText"
|
||||
"$ref": "#/definitions/shared.LocalizedText"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -9125,6 +9168,7 @@ const docTemplate = `{
|
||||
"required": [
|
||||
"code",
|
||||
"guardName",
|
||||
"module",
|
||||
"name"
|
||||
],
|
||||
"properties": {
|
||||
@@ -9132,6 +9176,14 @@ const docTemplate = `{
|
||||
"type": "string"
|
||||
},
|
||||
"guardName": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"web",
|
||||
"operator",
|
||||
"admin"
|
||||
]
|
||||
},
|
||||
"module": {
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
@@ -9144,6 +9196,7 @@ const docTemplate = `{
|
||||
"required": [
|
||||
"code",
|
||||
"guardName",
|
||||
"module",
|
||||
"name"
|
||||
],
|
||||
"properties": {
|
||||
@@ -9151,6 +9204,14 @@ const docTemplate = `{
|
||||
"type": "string"
|
||||
},
|
||||
"guardName": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"web",
|
||||
"operator",
|
||||
"admin"
|
||||
]
|
||||
},
|
||||
"module": {
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
@@ -9263,7 +9324,7 @@ const docTemplate = `{
|
||||
"type": "string"
|
||||
},
|
||||
"title": {
|
||||
"$ref": "#/definitions/online-back_internal_cards_shared.LocalizedText"
|
||||
"$ref": "#/definitions/shared.LocalizedText"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -9284,7 +9345,7 @@ const docTemplate = `{
|
||||
"type": "string"
|
||||
},
|
||||
"title": {
|
||||
"$ref": "#/definitions/online-back_internal_cards_shared.LocalizedText"
|
||||
"$ref": "#/definitions/shared.LocalizedText"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -9300,7 +9361,12 @@ const docTemplate = `{
|
||||
"type": "string"
|
||||
},
|
||||
"guardName": {
|
||||
"type": "string"
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"web",
|
||||
"operator",
|
||||
"admin"
|
||||
]
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
@@ -9319,7 +9385,12 @@ const docTemplate = `{
|
||||
"type": "string"
|
||||
},
|
||||
"guardName": {
|
||||
"type": "string"
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"web",
|
||||
"operator",
|
||||
"admin"
|
||||
]
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
@@ -9341,6 +9412,20 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"shared.LocalizedText": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"en": {
|
||||
"type": "string"
|
||||
},
|
||||
"ru": {
|
||||
"type": "string"
|
||||
},
|
||||
"tm": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"user.CreateUserDTO": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
|
||||
@@ -5107,6 +5107,18 @@
|
||||
"name": "permission_name",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Filter by guard (web, operator, admin)",
|
||||
"name": "guard_name",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Filter by saha (cards, loans, …)",
|
||||
"name": "module",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"default": 1,
|
||||
@@ -5193,6 +5205,45 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/permissions/tree": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "Returns permissions grouped as guard → module (saha) → permissions",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"permission"
|
||||
],
|
||||
"summary": "Permission tree",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Filter by guard (web, operator, admin)",
|
||||
"name": "guard_name",
|
||||
"in": "query"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/appresult.AppSuccess"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/appresult.AppError"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/permissions/{id}": {
|
||||
"get": {
|
||||
"security": [
|
||||
@@ -5364,7 +5415,7 @@
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "Returns the authenticated user's profile with role, branches, and permissions",
|
||||
"description": "Returns the authenticated user's profile with role, branches, and permissions grouped by saha (module)",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -6775,7 +6826,7 @@
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "Returns a single user with assigned branches and roleId",
|
||||
"description": "Returns a single user with assigned branches, roleId, and effective permissions",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -7528,6 +7579,9 @@
|
||||
"balanceCurrency": {
|
||||
"type": "string"
|
||||
},
|
||||
"branchId": {
|
||||
"type": "integer"
|
||||
},
|
||||
"cardNumber": {
|
||||
"type": "string"
|
||||
},
|
||||
@@ -7567,6 +7621,9 @@
|
||||
"balanceCurrency": {
|
||||
"type": "string"
|
||||
},
|
||||
"branchId": {
|
||||
"type": "integer"
|
||||
},
|
||||
"cardNumber": {
|
||||
"type": "string"
|
||||
},
|
||||
@@ -9050,20 +9107,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"online-back_internal_cards_shared.LocalizedText": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"en": {
|
||||
"type": "string"
|
||||
},
|
||||
"ru": {
|
||||
"type": "string"
|
||||
},
|
||||
"tm": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"paymentcard.CreatePaymentCardDTO": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
@@ -9081,7 +9124,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"title": {
|
||||
"$ref": "#/definitions/online-back_internal_cards_shared.LocalizedText"
|
||||
"$ref": "#/definitions/shared.LocalizedText"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -9110,7 +9153,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"title": {
|
||||
"$ref": "#/definitions/online-back_internal_cards_shared.LocalizedText"
|
||||
"$ref": "#/definitions/shared.LocalizedText"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -9119,6 +9162,7 @@
|
||||
"required": [
|
||||
"code",
|
||||
"guardName",
|
||||
"module",
|
||||
"name"
|
||||
],
|
||||
"properties": {
|
||||
@@ -9126,6 +9170,14 @@
|
||||
"type": "string"
|
||||
},
|
||||
"guardName": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"web",
|
||||
"operator",
|
||||
"admin"
|
||||
]
|
||||
},
|
||||
"module": {
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
@@ -9138,6 +9190,7 @@
|
||||
"required": [
|
||||
"code",
|
||||
"guardName",
|
||||
"module",
|
||||
"name"
|
||||
],
|
||||
"properties": {
|
||||
@@ -9145,6 +9198,14 @@
|
||||
"type": "string"
|
||||
},
|
||||
"guardName": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"web",
|
||||
"operator",
|
||||
"admin"
|
||||
]
|
||||
},
|
||||
"module": {
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
@@ -9257,7 +9318,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"title": {
|
||||
"$ref": "#/definitions/online-back_internal_cards_shared.LocalizedText"
|
||||
"$ref": "#/definitions/shared.LocalizedText"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -9278,7 +9339,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"title": {
|
||||
"$ref": "#/definitions/online-back_internal_cards_shared.LocalizedText"
|
||||
"$ref": "#/definitions/shared.LocalizedText"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -9294,7 +9355,12 @@
|
||||
"type": "string"
|
||||
},
|
||||
"guardName": {
|
||||
"type": "string"
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"web",
|
||||
"operator",
|
||||
"admin"
|
||||
]
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
@@ -9313,7 +9379,12 @@
|
||||
"type": "string"
|
||||
},
|
||||
"guardName": {
|
||||
"type": "string"
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"web",
|
||||
"operator",
|
||||
"admin"
|
||||
]
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
@@ -9335,6 +9406,20 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"shared.LocalizedText": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"en": {
|
||||
"type": "string"
|
||||
},
|
||||
"ru": {
|
||||
"type": "string"
|
||||
},
|
||||
"tm": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"user.CreateUserDTO": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
|
||||
@@ -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