ch some
This commit is contained in:
@@ -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": [
|
||||
|
||||
Reference in New Issue
Block a user