ch some
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-04 19:33:26 +05:00
parent 28509eb4ca
commit d1a6fcaadc
102 changed files with 2089 additions and 1957 deletions

View File

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