changed column name
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user