changed column name
This commit is contained in:
537
docs/docs.go
537
docs/docs.go
@@ -37,12 +37,6 @@ const docTemplate = `{
|
||||
"name": "province_id",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "Filter by location ID",
|
||||
"name": "location_id",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Filter by province name (en, ru, tm)",
|
||||
@@ -607,8 +601,8 @@ const docTemplate = `{
|
||||
},
|
||||
{
|
||||
"type": "boolean",
|
||||
"description": "Filter by status",
|
||||
"name": "status",
|
||||
"description": "Filter by active",
|
||||
"name": "active",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
@@ -861,7 +855,7 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"/loans-documents/{id}/status": {
|
||||
"/loans-documents/{id}/active": {
|
||||
"put": {
|
||||
"security": [
|
||||
{
|
||||
@@ -878,7 +872,7 @@ const docTemplate = `{
|
||||
"tags": [
|
||||
"loan-document"
|
||||
],
|
||||
"summary": "Update loan document status",
|
||||
"summary": "Update loan document active",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
@@ -888,366 +882,12 @@ const docTemplate = `{
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "Status payload",
|
||||
"description": "Active payload",
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/loansdocument.UpdateLoanDocumentStatusDTO"
|
||||
}
|
||||
}
|
||||
],
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/locations": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "Returns paginated locations with optional filters",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"location"
|
||||
],
|
||||
"summary": "List locations",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "Filter by province ID",
|
||||
"name": "province_id",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Filter by province name (en, ru, tm)",
|
||||
"name": "province_name",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Filter by location name (en, ru, tm)",
|
||||
"name": "location_name",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "boolean",
|
||||
"description": "Filter by location status",
|
||||
"name": "status",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"default": 1,
|
||||
"description": "Page number",
|
||||
"name": "page",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"default": 10,
|
||||
"description": "Items per page",
|
||||
"name": "limit",
|
||||
"in": "query"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/appresult.AppSuccess"
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/appresult.AppError"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/appresult.AppError"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"post": {
|
||||
"security": [
|
||||
{
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "Creates a new location in a province",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"location"
|
||||
],
|
||||
"summary": "Create location",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "Location payload",
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/location.CreateLocationDTO"
|
||||
}
|
||||
}
|
||||
],
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/locations/{id}": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "Returns a single location",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"location"
|
||||
],
|
||||
"summary": "Get location by ID",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "Location ID",
|
||||
"name": "id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"put": {
|
||||
"security": [
|
||||
{
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "Updates an existing location",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"location"
|
||||
],
|
||||
"summary": "Update location",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "Location ID",
|
||||
"name": "id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "Location payload",
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/location.UpdateLocationDTO"
|
||||
}
|
||||
}
|
||||
],
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"delete": {
|
||||
"security": [
|
||||
{
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "Deletes a location",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"location"
|
||||
],
|
||||
"summary": "Delete location",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "Location ID",
|
||||
"name": "id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/locations/{id}/status": {
|
||||
"put": {
|
||||
"security": [
|
||||
{
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "Enables or disables a location",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"location"
|
||||
],
|
||||
"summary": "Update location status",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "Location ID",
|
||||
"name": "id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "Status payload",
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/location.UpdateLocationStatusDTO"
|
||||
"$ref": "#/definitions/loansdocument.UpdateLoanDocumentActiveDTO"
|
||||
}
|
||||
}
|
||||
],
|
||||
@@ -1349,8 +989,8 @@ const docTemplate = `{
|
||||
},
|
||||
{
|
||||
"type": "boolean",
|
||||
"description": "Filter by status",
|
||||
"name": "status",
|
||||
"description": "Filter by active",
|
||||
"name": "active",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
@@ -1603,7 +1243,7 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"/payment-cards/{id}/status": {
|
||||
"/payment-cards/{id}/active": {
|
||||
"put": {
|
||||
"security": [
|
||||
{
|
||||
@@ -1620,7 +1260,7 @@ const docTemplate = `{
|
||||
"tags": [
|
||||
"payment-card"
|
||||
],
|
||||
"summary": "Update payment card status",
|
||||
"summary": "Update payment card active",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
@@ -1630,12 +1270,12 @@ const docTemplate = `{
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "Status payload",
|
||||
"description": "Active payload",
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/paymentcard.UpdatePaymentCardStatusDTO"
|
||||
"$ref": "#/definitions/paymentcard.UpdatePaymentCardActiveDTO"
|
||||
}
|
||||
}
|
||||
],
|
||||
@@ -1915,7 +1555,7 @@ const docTemplate = `{
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "Deletes a province and its locations",
|
||||
"description": "Deletes a province",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -2339,7 +1979,6 @@ const docTemplate = `{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"address",
|
||||
"locationId",
|
||||
"provinceId",
|
||||
"title",
|
||||
"unikalNomer"
|
||||
@@ -2372,9 +2011,6 @@ const docTemplate = `{
|
||||
"billingUsernameVisa": {
|
||||
"type": "string"
|
||||
},
|
||||
"locationId": {
|
||||
"type": "integer"
|
||||
},
|
||||
"provinceId": {
|
||||
"type": "integer"
|
||||
},
|
||||
@@ -2404,7 +2040,6 @@ const docTemplate = `{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"address",
|
||||
"locationId",
|
||||
"provinceId",
|
||||
"title",
|
||||
"unikalNomer"
|
||||
@@ -2437,9 +2072,6 @@ const docTemplate = `{
|
||||
"billingUsernameVisa": {
|
||||
"type": "string"
|
||||
},
|
||||
"locationId": {
|
||||
"type": "integer"
|
||||
},
|
||||
"provinceId": {
|
||||
"type": "integer"
|
||||
},
|
||||
@@ -2460,6 +2092,9 @@ const docTemplate = `{
|
||||
"title"
|
||||
],
|
||||
"properties": {
|
||||
"active": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"contentEn": {
|
||||
"type": "string"
|
||||
},
|
||||
@@ -2469,9 +2104,6 @@ const docTemplate = `{
|
||||
"contentTm": {
|
||||
"type": "string"
|
||||
},
|
||||
"status": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"title": {
|
||||
"$ref": "#/definitions/loansdocument.LocalizedTitle"
|
||||
}
|
||||
@@ -2491,6 +2123,14 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"loansdocument.UpdateLoanDocumentActiveDTO": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"active": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
"loansdocument.UpdateLoanDocumentDTO": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
@@ -2500,6 +2140,9 @@ const docTemplate = `{
|
||||
"title"
|
||||
],
|
||||
"properties": {
|
||||
"active": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"contentEn": {
|
||||
"type": "string"
|
||||
},
|
||||
@@ -2509,22 +2152,11 @@ const docTemplate = `{
|
||||
"contentTm": {
|
||||
"type": "string"
|
||||
},
|
||||
"status": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"title": {
|
||||
"$ref": "#/definitions/loansdocument.LocalizedTitle"
|
||||
}
|
||||
}
|
||||
},
|
||||
"loansdocument.UpdateLoanDocumentStatusDTO": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"status": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
"loantype.CreateLoanTypeDTO": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
@@ -2585,64 +2217,6 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"location.CreateLocationDTO": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"provinceId",
|
||||
"title"
|
||||
],
|
||||
"properties": {
|
||||
"provinceId": {
|
||||
"type": "integer"
|
||||
},
|
||||
"status": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"title": {
|
||||
"$ref": "#/definitions/location.LocalizedTitle"
|
||||
}
|
||||
}
|
||||
},
|
||||
"location.LocalizedTitle": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"en": {
|
||||
"type": "string"
|
||||
},
|
||||
"ru": {
|
||||
"type": "string"
|
||||
},
|
||||
"tm": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"location.UpdateLocationDTO": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"provinceId",
|
||||
"title"
|
||||
],
|
||||
"properties": {
|
||||
"provinceId": {
|
||||
"type": "integer"
|
||||
},
|
||||
"status": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"title": {
|
||||
"$ref": "#/definitions/location.LocalizedTitle"
|
||||
}
|
||||
}
|
||||
},
|
||||
"location.UpdateLocationStatusDTO": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"status": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
"paymentcard.CreatePaymentCardDTO": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
@@ -2651,15 +2225,15 @@ const docTemplate = `{
|
||||
"title"
|
||||
],
|
||||
"properties": {
|
||||
"active": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"content": {
|
||||
"$ref": "#/definitions/paymentcard.LocalizedText"
|
||||
},
|
||||
"price": {
|
||||
"type": "number"
|
||||
},
|
||||
"status": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"title": {
|
||||
"$ref": "#/definitions/paymentcard.LocalizedText"
|
||||
}
|
||||
@@ -2679,6 +2253,14 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"paymentcard.UpdatePaymentCardActiveDTO": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"active": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
"paymentcard.UpdatePaymentCardDTO": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
@@ -2687,43 +2269,39 @@ const docTemplate = `{
|
||||
"title"
|
||||
],
|
||||
"properties": {
|
||||
"active": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"content": {
|
||||
"$ref": "#/definitions/paymentcard.LocalizedText"
|
||||
},
|
||||
"price": {
|
||||
"type": "number"
|
||||
},
|
||||
"status": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"title": {
|
||||
"$ref": "#/definitions/paymentcard.LocalizedText"
|
||||
}
|
||||
}
|
||||
},
|
||||
"paymentcard.UpdatePaymentCardStatusDTO": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"status": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
"province.CreateProvinceDTO": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"title"
|
||||
"name",
|
||||
"region"
|
||||
],
|
||||
"properties": {
|
||||
"status": {
|
||||
"active": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"title": {
|
||||
"$ref": "#/definitions/province.LocalizedTitle"
|
||||
"name": {
|
||||
"$ref": "#/definitions/province.LocalizedName"
|
||||
},
|
||||
"region": {
|
||||
"$ref": "#/definitions/province.LocalizedName"
|
||||
}
|
||||
}
|
||||
},
|
||||
"province.LocalizedTitle": {
|
||||
"province.LocalizedName": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"en": {
|
||||
@@ -2740,14 +2318,18 @@ const docTemplate = `{
|
||||
"province.UpdateProvinceDTO": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"title"
|
||||
"name",
|
||||
"region"
|
||||
],
|
||||
"properties": {
|
||||
"status": {
|
||||
"active": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"title": {
|
||||
"$ref": "#/definitions/province.LocalizedTitle"
|
||||
"name": {
|
||||
"$ref": "#/definitions/province.LocalizedName"
|
||||
},
|
||||
"region": {
|
||||
"$ref": "#/definitions/province.LocalizedName"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -2818,7 +2400,7 @@ var SwaggerInfo = &swag.Spec{
|
||||
Version: "1.0",
|
||||
Host: "localhost:5050",
|
||||
BasePath: "/api/admin",
|
||||
Schemes: []string{"http"},
|
||||
Schemes: []string{},
|
||||
Title: "Service APIs",
|
||||
Description: "Online payment system admin API.",
|
||||
InfoInstanceName: "swagger",
|
||||
@@ -2828,6 +2410,5 @@ var SwaggerInfo = &swag.Spec{
|
||||
}
|
||||
|
||||
func init() {
|
||||
applySwaggerTagOrder()
|
||||
swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
|
||||
}
|
||||
|
||||
@@ -31,12 +31,6 @@
|
||||
"name": "province_id",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "Filter by location ID",
|
||||
"name": "location_id",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Filter by province name (en, ru, tm)",
|
||||
@@ -601,8 +595,8 @@
|
||||
},
|
||||
{
|
||||
"type": "boolean",
|
||||
"description": "Filter by status",
|
||||
"name": "status",
|
||||
"description": "Filter by active",
|
||||
"name": "active",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
@@ -855,7 +849,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/loans-documents/{id}/status": {
|
||||
"/loans-documents/{id}/active": {
|
||||
"put": {
|
||||
"security": [
|
||||
{
|
||||
@@ -872,7 +866,7 @@
|
||||
"tags": [
|
||||
"loan-document"
|
||||
],
|
||||
"summary": "Update loan document status",
|
||||
"summary": "Update loan document active",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
@@ -882,366 +876,12 @@
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "Status payload",
|
||||
"description": "Active payload",
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/loansdocument.UpdateLoanDocumentStatusDTO"
|
||||
}
|
||||
}
|
||||
],
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/locations": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "Returns paginated locations with optional filters",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"location"
|
||||
],
|
||||
"summary": "List locations",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "Filter by province ID",
|
||||
"name": "province_id",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Filter by province name (en, ru, tm)",
|
||||
"name": "province_name",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Filter by location name (en, ru, tm)",
|
||||
"name": "location_name",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "boolean",
|
||||
"description": "Filter by location status",
|
||||
"name": "status",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"default": 1,
|
||||
"description": "Page number",
|
||||
"name": "page",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"default": 10,
|
||||
"description": "Items per page",
|
||||
"name": "limit",
|
||||
"in": "query"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/appresult.AppSuccess"
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/appresult.AppError"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/appresult.AppError"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"post": {
|
||||
"security": [
|
||||
{
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "Creates a new location in a province",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"location"
|
||||
],
|
||||
"summary": "Create location",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "Location payload",
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/location.CreateLocationDTO"
|
||||
}
|
||||
}
|
||||
],
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/locations/{id}": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "Returns a single location",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"location"
|
||||
],
|
||||
"summary": "Get location by ID",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "Location ID",
|
||||
"name": "id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"put": {
|
||||
"security": [
|
||||
{
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "Updates an existing location",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"location"
|
||||
],
|
||||
"summary": "Update location",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "Location ID",
|
||||
"name": "id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "Location payload",
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/location.UpdateLocationDTO"
|
||||
}
|
||||
}
|
||||
],
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"delete": {
|
||||
"security": [
|
||||
{
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "Deletes a location",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"location"
|
||||
],
|
||||
"summary": "Delete location",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "Location ID",
|
||||
"name": "id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/locations/{id}/status": {
|
||||
"put": {
|
||||
"security": [
|
||||
{
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "Enables or disables a location",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"location"
|
||||
],
|
||||
"summary": "Update location status",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "Location ID",
|
||||
"name": "id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "Status payload",
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/location.UpdateLocationStatusDTO"
|
||||
"$ref": "#/definitions/loansdocument.UpdateLoanDocumentActiveDTO"
|
||||
}
|
||||
}
|
||||
],
|
||||
@@ -1343,8 +983,8 @@
|
||||
},
|
||||
{
|
||||
"type": "boolean",
|
||||
"description": "Filter by status",
|
||||
"name": "status",
|
||||
"description": "Filter by active",
|
||||
"name": "active",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
@@ -1597,7 +1237,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/payment-cards/{id}/status": {
|
||||
"/payment-cards/{id}/active": {
|
||||
"put": {
|
||||
"security": [
|
||||
{
|
||||
@@ -1614,7 +1254,7 @@
|
||||
"tags": [
|
||||
"payment-card"
|
||||
],
|
||||
"summary": "Update payment card status",
|
||||
"summary": "Update payment card active",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
@@ -1624,12 +1264,12 @@
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "Status payload",
|
||||
"description": "Active payload",
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/paymentcard.UpdatePaymentCardStatusDTO"
|
||||
"$ref": "#/definitions/paymentcard.UpdatePaymentCardActiveDTO"
|
||||
}
|
||||
}
|
||||
],
|
||||
@@ -1909,7 +1549,7 @@
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "Deletes a province and its locations",
|
||||
"description": "Deletes a province",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -2333,7 +1973,6 @@
|
||||
"type": "object",
|
||||
"required": [
|
||||
"address",
|
||||
"locationId",
|
||||
"provinceId",
|
||||
"title",
|
||||
"unikalNomer"
|
||||
@@ -2366,9 +2005,6 @@
|
||||
"billingUsernameVisa": {
|
||||
"type": "string"
|
||||
},
|
||||
"locationId": {
|
||||
"type": "integer"
|
||||
},
|
||||
"provinceId": {
|
||||
"type": "integer"
|
||||
},
|
||||
@@ -2398,7 +2034,6 @@
|
||||
"type": "object",
|
||||
"required": [
|
||||
"address",
|
||||
"locationId",
|
||||
"provinceId",
|
||||
"title",
|
||||
"unikalNomer"
|
||||
@@ -2431,9 +2066,6 @@
|
||||
"billingUsernameVisa": {
|
||||
"type": "string"
|
||||
},
|
||||
"locationId": {
|
||||
"type": "integer"
|
||||
},
|
||||
"provinceId": {
|
||||
"type": "integer"
|
||||
},
|
||||
@@ -2454,6 +2086,9 @@
|
||||
"title"
|
||||
],
|
||||
"properties": {
|
||||
"active": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"contentEn": {
|
||||
"type": "string"
|
||||
},
|
||||
@@ -2463,9 +2098,6 @@
|
||||
"contentTm": {
|
||||
"type": "string"
|
||||
},
|
||||
"status": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"title": {
|
||||
"$ref": "#/definitions/loansdocument.LocalizedTitle"
|
||||
}
|
||||
@@ -2485,6 +2117,14 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"loansdocument.UpdateLoanDocumentActiveDTO": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"active": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
"loansdocument.UpdateLoanDocumentDTO": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
@@ -2494,6 +2134,9 @@
|
||||
"title"
|
||||
],
|
||||
"properties": {
|
||||
"active": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"contentEn": {
|
||||
"type": "string"
|
||||
},
|
||||
@@ -2503,22 +2146,11 @@
|
||||
"contentTm": {
|
||||
"type": "string"
|
||||
},
|
||||
"status": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"title": {
|
||||
"$ref": "#/definitions/loansdocument.LocalizedTitle"
|
||||
}
|
||||
}
|
||||
},
|
||||
"loansdocument.UpdateLoanDocumentStatusDTO": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"status": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
"loantype.CreateLoanTypeDTO": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
@@ -2579,64 +2211,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"location.CreateLocationDTO": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"provinceId",
|
||||
"title"
|
||||
],
|
||||
"properties": {
|
||||
"provinceId": {
|
||||
"type": "integer"
|
||||
},
|
||||
"status": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"title": {
|
||||
"$ref": "#/definitions/location.LocalizedTitle"
|
||||
}
|
||||
}
|
||||
},
|
||||
"location.LocalizedTitle": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"en": {
|
||||
"type": "string"
|
||||
},
|
||||
"ru": {
|
||||
"type": "string"
|
||||
},
|
||||
"tm": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"location.UpdateLocationDTO": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"provinceId",
|
||||
"title"
|
||||
],
|
||||
"properties": {
|
||||
"provinceId": {
|
||||
"type": "integer"
|
||||
},
|
||||
"status": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"title": {
|
||||
"$ref": "#/definitions/location.LocalizedTitle"
|
||||
}
|
||||
}
|
||||
},
|
||||
"location.UpdateLocationStatusDTO": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"status": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
"paymentcard.CreatePaymentCardDTO": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
@@ -2645,15 +2219,15 @@
|
||||
"title"
|
||||
],
|
||||
"properties": {
|
||||
"active": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"content": {
|
||||
"$ref": "#/definitions/paymentcard.LocalizedText"
|
||||
},
|
||||
"price": {
|
||||
"type": "number"
|
||||
},
|
||||
"status": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"title": {
|
||||
"$ref": "#/definitions/paymentcard.LocalizedText"
|
||||
}
|
||||
@@ -2673,6 +2247,14 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"paymentcard.UpdatePaymentCardActiveDTO": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"active": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
"paymentcard.UpdatePaymentCardDTO": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
@@ -2681,43 +2263,39 @@
|
||||
"title"
|
||||
],
|
||||
"properties": {
|
||||
"active": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"content": {
|
||||
"$ref": "#/definitions/paymentcard.LocalizedText"
|
||||
},
|
||||
"price": {
|
||||
"type": "number"
|
||||
},
|
||||
"status": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"title": {
|
||||
"$ref": "#/definitions/paymentcard.LocalizedText"
|
||||
}
|
||||
}
|
||||
},
|
||||
"paymentcard.UpdatePaymentCardStatusDTO": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"status": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
"province.CreateProvinceDTO": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"title"
|
||||
"name",
|
||||
"region"
|
||||
],
|
||||
"properties": {
|
||||
"status": {
|
||||
"active": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"title": {
|
||||
"$ref": "#/definitions/province.LocalizedTitle"
|
||||
"name": {
|
||||
"$ref": "#/definitions/province.LocalizedName"
|
||||
},
|
||||
"region": {
|
||||
"$ref": "#/definitions/province.LocalizedName"
|
||||
}
|
||||
}
|
||||
},
|
||||
"province.LocalizedTitle": {
|
||||
"province.LocalizedName": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"en": {
|
||||
@@ -2734,14 +2312,18 @@
|
||||
"province.UpdateProvinceDTO": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"title"
|
||||
"name",
|
||||
"region"
|
||||
],
|
||||
"properties": {
|
||||
"status": {
|
||||
"active": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"title": {
|
||||
"$ref": "#/definitions/province.LocalizedTitle"
|
||||
"name": {
|
||||
"$ref": "#/definitions/province.LocalizedName"
|
||||
},
|
||||
"region": {
|
||||
"$ref": "#/definitions/province.LocalizedName"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -56,8 +56,6 @@ definitions:
|
||||
type: string
|
||||
billingUsernameVisa:
|
||||
type: string
|
||||
locationId:
|
||||
type: integer
|
||||
provinceId:
|
||||
type: integer
|
||||
title:
|
||||
@@ -66,7 +64,6 @@ definitions:
|
||||
type: string
|
||||
required:
|
||||
- address
|
||||
- locationId
|
||||
- provinceId
|
||||
- title
|
||||
- unikalNomer
|
||||
@@ -100,8 +97,6 @@ definitions:
|
||||
type: string
|
||||
billingUsernameVisa:
|
||||
type: string
|
||||
locationId:
|
||||
type: integer
|
||||
provinceId:
|
||||
type: integer
|
||||
title:
|
||||
@@ -110,21 +105,20 @@ definitions:
|
||||
type: string
|
||||
required:
|
||||
- address
|
||||
- locationId
|
||||
- provinceId
|
||||
- title
|
||||
- unikalNomer
|
||||
type: object
|
||||
loansdocument.CreateLoanDocumentDTO:
|
||||
properties:
|
||||
active:
|
||||
type: boolean
|
||||
contentEn:
|
||||
type: string
|
||||
contentRu:
|
||||
type: string
|
||||
contentTm:
|
||||
type: string
|
||||
status:
|
||||
type: boolean
|
||||
title:
|
||||
$ref: '#/definitions/loansdocument.LocalizedTitle'
|
||||
required:
|
||||
@@ -142,16 +136,21 @@ definitions:
|
||||
tm:
|
||||
type: string
|
||||
type: object
|
||||
loansdocument.UpdateLoanDocumentActiveDTO:
|
||||
properties:
|
||||
active:
|
||||
type: boolean
|
||||
type: object
|
||||
loansdocument.UpdateLoanDocumentDTO:
|
||||
properties:
|
||||
active:
|
||||
type: boolean
|
||||
contentEn:
|
||||
type: string
|
||||
contentRu:
|
||||
type: string
|
||||
contentTm:
|
||||
type: string
|
||||
status:
|
||||
type: boolean
|
||||
title:
|
||||
$ref: '#/definitions/loansdocument.LocalizedTitle'
|
||||
required:
|
||||
@@ -160,11 +159,6 @@ definitions:
|
||||
- contentTm
|
||||
- title
|
||||
type: object
|
||||
loansdocument.UpdateLoanDocumentStatusDTO:
|
||||
properties:
|
||||
status:
|
||||
type: boolean
|
||||
type: object
|
||||
loantype.CreateLoanTypeDTO:
|
||||
properties:
|
||||
content:
|
||||
@@ -206,52 +200,14 @@ definitions:
|
||||
- tax
|
||||
- title
|
||||
type: object
|
||||
location.CreateLocationDTO:
|
||||
properties:
|
||||
provinceId:
|
||||
type: integer
|
||||
status:
|
||||
type: boolean
|
||||
title:
|
||||
$ref: '#/definitions/location.LocalizedTitle'
|
||||
required:
|
||||
- provinceId
|
||||
- title
|
||||
type: object
|
||||
location.LocalizedTitle:
|
||||
properties:
|
||||
en:
|
||||
type: string
|
||||
ru:
|
||||
type: string
|
||||
tm:
|
||||
type: string
|
||||
type: object
|
||||
location.UpdateLocationDTO:
|
||||
properties:
|
||||
provinceId:
|
||||
type: integer
|
||||
status:
|
||||
type: boolean
|
||||
title:
|
||||
$ref: '#/definitions/location.LocalizedTitle'
|
||||
required:
|
||||
- provinceId
|
||||
- title
|
||||
type: object
|
||||
location.UpdateLocationStatusDTO:
|
||||
properties:
|
||||
status:
|
||||
type: boolean
|
||||
type: object
|
||||
paymentcard.CreatePaymentCardDTO:
|
||||
properties:
|
||||
active:
|
||||
type: boolean
|
||||
content:
|
||||
$ref: '#/definitions/paymentcard.LocalizedText'
|
||||
price:
|
||||
type: number
|
||||
status:
|
||||
type: boolean
|
||||
title:
|
||||
$ref: '#/definitions/paymentcard.LocalizedText'
|
||||
required:
|
||||
@@ -268,14 +224,19 @@ definitions:
|
||||
tm:
|
||||
type: string
|
||||
type: object
|
||||
paymentcard.UpdatePaymentCardActiveDTO:
|
||||
properties:
|
||||
active:
|
||||
type: boolean
|
||||
type: object
|
||||
paymentcard.UpdatePaymentCardDTO:
|
||||
properties:
|
||||
active:
|
||||
type: boolean
|
||||
content:
|
||||
$ref: '#/definitions/paymentcard.LocalizedText'
|
||||
price:
|
||||
type: number
|
||||
status:
|
||||
type: boolean
|
||||
title:
|
||||
$ref: '#/definitions/paymentcard.LocalizedText'
|
||||
required:
|
||||
@@ -283,21 +244,19 @@ definitions:
|
||||
- price
|
||||
- title
|
||||
type: object
|
||||
paymentcard.UpdatePaymentCardStatusDTO:
|
||||
properties:
|
||||
status:
|
||||
type: boolean
|
||||
type: object
|
||||
province.CreateProvinceDTO:
|
||||
properties:
|
||||
status:
|
||||
active:
|
||||
type: boolean
|
||||
title:
|
||||
$ref: '#/definitions/province.LocalizedTitle'
|
||||
name:
|
||||
$ref: '#/definitions/province.LocalizedName'
|
||||
region:
|
||||
$ref: '#/definitions/province.LocalizedName'
|
||||
required:
|
||||
- title
|
||||
- name
|
||||
- region
|
||||
type: object
|
||||
province.LocalizedTitle:
|
||||
province.LocalizedName:
|
||||
properties:
|
||||
en:
|
||||
type: string
|
||||
@@ -308,12 +267,15 @@ definitions:
|
||||
type: object
|
||||
province.UpdateProvinceDTO:
|
||||
properties:
|
||||
status:
|
||||
active:
|
||||
type: boolean
|
||||
title:
|
||||
$ref: '#/definitions/province.LocalizedTitle'
|
||||
name:
|
||||
$ref: '#/definitions/province.LocalizedName'
|
||||
region:
|
||||
$ref: '#/definitions/province.LocalizedName'
|
||||
required:
|
||||
- title
|
||||
- name
|
||||
- region
|
||||
type: object
|
||||
reasonscard.CreateReasonCardDTO:
|
||||
properties:
|
||||
@@ -365,10 +327,6 @@ paths:
|
||||
in: query
|
||||
name: province_id
|
||||
type: integer
|
||||
- description: Filter by location ID
|
||||
in: query
|
||||
name: location_id
|
||||
type: integer
|
||||
- description: Filter by province name (en, ru, tm)
|
||||
in: query
|
||||
name: province_name
|
||||
@@ -729,9 +687,9 @@ paths:
|
||||
in: query
|
||||
name: document_name
|
||||
type: string
|
||||
- description: Filter by status
|
||||
- description: Filter by active
|
||||
in: query
|
||||
name: status
|
||||
name: active
|
||||
type: boolean
|
||||
- default: 1
|
||||
description: Page number
|
||||
@@ -899,7 +857,7 @@ paths:
|
||||
summary: Update loan document
|
||||
tags:
|
||||
- loan-document
|
||||
/loans-documents/{id}/status:
|
||||
/loans-documents/{id}/active:
|
||||
put:
|
||||
consumes:
|
||||
- application/json
|
||||
@@ -910,12 +868,12 @@ paths:
|
||||
name: id
|
||||
required: true
|
||||
type: integer
|
||||
- description: Status payload
|
||||
- description: Active payload
|
||||
in: body
|
||||
name: body
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/loansdocument.UpdateLoanDocumentStatusDTO'
|
||||
$ref: '#/definitions/loansdocument.UpdateLoanDocumentActiveDTO'
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
@@ -937,236 +895,9 @@ paths:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
security:
|
||||
- BearerAuth: []
|
||||
summary: Update loan document status
|
||||
summary: Update loan document active
|
||||
tags:
|
||||
- loan-document
|
||||
/locations:
|
||||
get:
|
||||
description: Returns paginated locations with optional filters
|
||||
parameters:
|
||||
- description: Filter by province ID
|
||||
in: query
|
||||
name: province_id
|
||||
type: integer
|
||||
- description: Filter by province name (en, ru, tm)
|
||||
in: query
|
||||
name: province_name
|
||||
type: string
|
||||
- description: Filter by location name (en, ru, tm)
|
||||
in: query
|
||||
name: location_name
|
||||
type: string
|
||||
- description: Filter by location status
|
||||
in: query
|
||||
name: status
|
||||
type: boolean
|
||||
- default: 1
|
||||
description: Page number
|
||||
in: query
|
||||
name: page
|
||||
type: integer
|
||||
- default: 10
|
||||
description: Items per page
|
||||
in: query
|
||||
name: limit
|
||||
type: integer
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
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: List locations
|
||||
tags:
|
||||
- location
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
description: Creates a new location in a province
|
||||
parameters:
|
||||
- description: Location payload
|
||||
in: body
|
||||
name: body
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/location.CreateLocationDTO'
|
||||
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: Create location
|
||||
tags:
|
||||
- location
|
||||
/locations/{id}:
|
||||
delete:
|
||||
description: Deletes a location
|
||||
parameters:
|
||||
- description: Location 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: Delete location
|
||||
tags:
|
||||
- location
|
||||
get:
|
||||
description: Returns a single location
|
||||
parameters:
|
||||
- description: Location 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: Get location by ID
|
||||
tags:
|
||||
- location
|
||||
put:
|
||||
consumes:
|
||||
- application/json
|
||||
description: Updates an existing location
|
||||
parameters:
|
||||
- description: Location ID
|
||||
in: path
|
||||
name: id
|
||||
required: true
|
||||
type: integer
|
||||
- description: Location payload
|
||||
in: body
|
||||
name: body
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/location.UpdateLocationDTO'
|
||||
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: Update location
|
||||
tags:
|
||||
- location
|
||||
/locations/{id}/status:
|
||||
put:
|
||||
consumes:
|
||||
- application/json
|
||||
description: Enables or disables a location
|
||||
parameters:
|
||||
- description: Location ID
|
||||
in: path
|
||||
name: id
|
||||
required: true
|
||||
type: integer
|
||||
- description: Status payload
|
||||
in: body
|
||||
name: body
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/location.UpdateLocationStatusDTO'
|
||||
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: Update location status
|
||||
tags:
|
||||
- location
|
||||
/login:
|
||||
post:
|
||||
consumes:
|
||||
@@ -1205,9 +936,9 @@ paths:
|
||||
in: query
|
||||
name: card_name
|
||||
type: string
|
||||
- description: Filter by status
|
||||
- description: Filter by active
|
||||
in: query
|
||||
name: status
|
||||
name: active
|
||||
type: boolean
|
||||
- default: 1
|
||||
description: Page number
|
||||
@@ -1375,7 +1106,7 @@ paths:
|
||||
summary: Update payment card
|
||||
tags:
|
||||
- payment-card
|
||||
/payment-cards/{id}/status:
|
||||
/payment-cards/{id}/active:
|
||||
put:
|
||||
consumes:
|
||||
- application/json
|
||||
@@ -1386,12 +1117,12 @@ paths:
|
||||
name: id
|
||||
required: true
|
||||
type: integer
|
||||
- description: Status payload
|
||||
- description: Active payload
|
||||
in: body
|
||||
name: body
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/paymentcard.UpdatePaymentCardStatusDTO'
|
||||
$ref: '#/definitions/paymentcard.UpdatePaymentCardActiveDTO'
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
@@ -1413,7 +1144,7 @@ paths:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
security:
|
||||
- BearerAuth: []
|
||||
summary: Update payment card status
|
||||
summary: Update payment card active
|
||||
tags:
|
||||
- payment-card
|
||||
/profile:
|
||||
@@ -1499,7 +1230,7 @@ paths:
|
||||
- province
|
||||
/provinces/{id}:
|
||||
delete:
|
||||
description: Deletes a province and its locations
|
||||
description: Deletes a province
|
||||
parameters:
|
||||
- description: Province ID
|
||||
in: path
|
||||
|
||||
@@ -8,7 +8,6 @@ var swaggerTagOrder = []struct {
|
||||
Description string
|
||||
}{
|
||||
{Name: "auth", Description: "Authentication"},
|
||||
{Name: "location", Description: "Locations"},
|
||||
{Name: "province", Description: "Provinces"},
|
||||
{Name: "branches", Description: "Branches"},
|
||||
{Name: "payment-card", Description: "Payment cards"},
|
||||
|
||||
Reference in New Issue
Block a user