add cards folder
This commit is contained in:
@@ -133,6 +133,200 @@ definitions:
|
||||
- name
|
||||
- region
|
||||
type: object
|
||||
cardorder.CreateCardOrderDTO:
|
||||
properties:
|
||||
bornAt:
|
||||
type: string
|
||||
bornPlace:
|
||||
type: string
|
||||
branchId:
|
||||
type: integer
|
||||
cardStateId:
|
||||
type: integer
|
||||
cardTypeId:
|
||||
type: integer
|
||||
citizenship:
|
||||
type: string
|
||||
customerName:
|
||||
type: string
|
||||
customerPatronicName:
|
||||
type: string
|
||||
customerSurname:
|
||||
type: string
|
||||
jobLocation:
|
||||
type: string
|
||||
notes:
|
||||
type: string
|
||||
oldSurname:
|
||||
type: string
|
||||
paid:
|
||||
type: boolean
|
||||
passportAddress:
|
||||
type: string
|
||||
passportFour:
|
||||
type: string
|
||||
passportGivenAt:
|
||||
type: string
|
||||
passportGivenBy:
|
||||
type: string
|
||||
passportId:
|
||||
type: string
|
||||
passportOne:
|
||||
type: string
|
||||
passportSerie:
|
||||
type: string
|
||||
passportThree:
|
||||
type: string
|
||||
passportTwo:
|
||||
type: string
|
||||
phone:
|
||||
type: string
|
||||
phoneAdditional:
|
||||
type: string
|
||||
realAddress:
|
||||
type: string
|
||||
region:
|
||||
type: string
|
||||
status:
|
||||
type: string
|
||||
uniqueId:
|
||||
type: string
|
||||
userId:
|
||||
type: integer
|
||||
required:
|
||||
- bornPlace
|
||||
- branchId
|
||||
- cardStateId
|
||||
- cardTypeId
|
||||
- citizenship
|
||||
- customerName
|
||||
- customerSurname
|
||||
- passportFour
|
||||
- passportGivenAt
|
||||
- passportGivenBy
|
||||
- passportId
|
||||
- passportOne
|
||||
- passportSerie
|
||||
- passportThree
|
||||
- passportTwo
|
||||
- region
|
||||
type: object
|
||||
cardorder.UpdateCardOrderDTO:
|
||||
properties:
|
||||
bornAt:
|
||||
type: string
|
||||
bornPlace:
|
||||
type: string
|
||||
branchId:
|
||||
type: integer
|
||||
cardStateId:
|
||||
type: integer
|
||||
cardTypeId:
|
||||
type: integer
|
||||
citizenship:
|
||||
type: string
|
||||
customerName:
|
||||
type: string
|
||||
customerPatronicName:
|
||||
type: string
|
||||
customerSurname:
|
||||
type: string
|
||||
jobLocation:
|
||||
type: string
|
||||
notes:
|
||||
type: string
|
||||
oldSurname:
|
||||
type: string
|
||||
paid:
|
||||
type: boolean
|
||||
passportAddress:
|
||||
type: string
|
||||
passportFour:
|
||||
type: string
|
||||
passportGivenAt:
|
||||
type: string
|
||||
passportGivenBy:
|
||||
type: string
|
||||
passportId:
|
||||
type: string
|
||||
passportOne:
|
||||
type: string
|
||||
passportSerie:
|
||||
type: string
|
||||
passportThree:
|
||||
type: string
|
||||
passportTwo:
|
||||
type: string
|
||||
phone:
|
||||
type: string
|
||||
phoneAdditional:
|
||||
type: string
|
||||
realAddress:
|
||||
type: string
|
||||
region:
|
||||
type: string
|
||||
status:
|
||||
type: string
|
||||
uniqueId:
|
||||
type: string
|
||||
userId:
|
||||
type: integer
|
||||
required:
|
||||
- bornPlace
|
||||
- branchId
|
||||
- cardStateId
|
||||
- cardTypeId
|
||||
- citizenship
|
||||
- customerName
|
||||
- customerSurname
|
||||
- passportFour
|
||||
- passportGivenAt
|
||||
- passportGivenBy
|
||||
- passportId
|
||||
- passportOne
|
||||
- passportSerie
|
||||
- passportThree
|
||||
- passportTwo
|
||||
- region
|
||||
type: object
|
||||
cards.CreateCardDTO:
|
||||
properties:
|
||||
month:
|
||||
type: string
|
||||
name:
|
||||
type: string
|
||||
number:
|
||||
type: string
|
||||
type:
|
||||
type: string
|
||||
userId:
|
||||
type: integer
|
||||
year:
|
||||
type: string
|
||||
required:
|
||||
- month
|
||||
- name
|
||||
- number
|
||||
type: object
|
||||
cards.UpdateCardDTO:
|
||||
properties:
|
||||
month:
|
||||
type: string
|
||||
name:
|
||||
type: string
|
||||
number:
|
||||
type: string
|
||||
type:
|
||||
type: string
|
||||
userId:
|
||||
type: integer
|
||||
year:
|
||||
type: string
|
||||
required:
|
||||
- month
|
||||
- name
|
||||
- number
|
||||
type: object
|
||||
loanorders.CreateLoanOrderDTO:
|
||||
properties:
|
||||
bornAt:
|
||||
@@ -1141,6 +1335,378 @@ paths:
|
||||
summary: Update branch
|
||||
tags:
|
||||
- branches
|
||||
/card-orders:
|
||||
get:
|
||||
description: Returns paginated card orders with optional filters
|
||||
parameters:
|
||||
- description: Filter by status
|
||||
in: query
|
||||
name: status
|
||||
type: string
|
||||
- description: Filter by branch ID
|
||||
in: query
|
||||
name: branch_id
|
||||
type: integer
|
||||
- description: Filter by user ID
|
||||
in: query
|
||||
name: user_id
|
||||
type: integer
|
||||
- description: Filter by card state ID
|
||||
in: query
|
||||
name: card_state_id
|
||||
type: integer
|
||||
- description: Filter by card type ID
|
||||
in: query
|
||||
name: card_type_id
|
||||
type: integer
|
||||
- description: Filter by region
|
||||
in: query
|
||||
name: region
|
||||
type: string
|
||||
- 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 card orders
|
||||
tags:
|
||||
- card-orders
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
description: Creates a new card order
|
||||
parameters:
|
||||
- description: Card order payload
|
||||
in: body
|
||||
name: body
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/cardorder.CreateCardOrderDTO'
|
||||
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 card order
|
||||
tags:
|
||||
- card-orders
|
||||
/card-orders/{id}:
|
||||
delete:
|
||||
description: Deletes a card order
|
||||
parameters:
|
||||
- description: Card order 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 card order
|
||||
tags:
|
||||
- card-orders
|
||||
get:
|
||||
description: Returns a single card order
|
||||
parameters:
|
||||
- description: Card order 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 card order by ID
|
||||
tags:
|
||||
- card-orders
|
||||
put:
|
||||
consumes:
|
||||
- application/json
|
||||
description: Updates an existing card order
|
||||
parameters:
|
||||
- description: Card order ID
|
||||
in: path
|
||||
name: id
|
||||
required: true
|
||||
type: integer
|
||||
- description: Card order payload
|
||||
in: body
|
||||
name: body
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/cardorder.UpdateCardOrderDTO'
|
||||
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 card order
|
||||
tags:
|
||||
- card-orders
|
||||
/cards:
|
||||
get:
|
||||
description: Returns paginated cards with optional filters
|
||||
parameters:
|
||||
- description: Filter by user ID
|
||||
in: query
|
||||
name: user_id
|
||||
type: integer
|
||||
- description: Filter by card type
|
||||
in: query
|
||||
name: type
|
||||
type: string
|
||||
- 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 cards
|
||||
tags:
|
||||
- cards
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
description: Creates a new card
|
||||
parameters:
|
||||
- description: Card payload
|
||||
in: body
|
||||
name: body
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/cards.CreateCardDTO'
|
||||
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 card
|
||||
tags:
|
||||
- cards
|
||||
/cards/{id}:
|
||||
delete:
|
||||
description: Deletes a card
|
||||
parameters:
|
||||
- description: Card 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 card
|
||||
tags:
|
||||
- cards
|
||||
get:
|
||||
description: Returns a single card
|
||||
parameters:
|
||||
- description: Card 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 card by ID
|
||||
tags:
|
||||
- cards
|
||||
put:
|
||||
consumes:
|
||||
- application/json
|
||||
description: Updates an existing card
|
||||
parameters:
|
||||
- description: Card ID
|
||||
in: path
|
||||
name: id
|
||||
required: true
|
||||
type: integer
|
||||
- description: Card payload
|
||||
in: body
|
||||
name: body
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/cards.UpdateCardDTO'
|
||||
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 card
|
||||
tags:
|
||||
- cards
|
||||
/file:
|
||||
post:
|
||||
consumes:
|
||||
|
||||
Reference in New Issue
Block a user