change users table

This commit is contained in:
2026-07-13 12:11:35 +05:00
parent c29c72fd92
commit 6705c4ce91
22 changed files with 3150 additions and 83 deletions

View File

@@ -449,6 +449,100 @@ definitions:
- realAddress
- region
type: object
loanpaidletter.CreateLoanPaidLetterDTO:
properties:
bornAt:
type: string
branchId:
type: integer
customerName:
type: string
customerPatronicName:
type: string
customerSurname:
type: string
loanAmount:
type: string
loanContractDate:
type: string
loanContractNumber:
type: string
loanFile:
type: string
loanReason:
type: string
notes:
type: string
passportId:
type: string
passportSerie:
type: string
phone:
type: string
region:
type: string
status:
type: string
uniqueId:
type: string
userId:
type: integer
required:
- branchId
- customerName
- customerSurname
- passportId
- passportSerie
- phone
- region
type: object
loanpaidletter.UpdateLoanPaidLetterDTO:
properties:
bornAt:
type: string
branchId:
type: integer
customerName:
type: string
customerPatronicName:
type: string
customerSurname:
type: string
loanAmount:
type: string
loanContractDate:
type: string
loanContractNumber:
type: string
loanFile:
type: string
loanReason:
type: string
notes:
type: string
passportId:
type: string
passportSerie:
type: string
phone:
type: string
region:
type: string
status:
type: string
uniqueId:
type: string
userId:
type: integer
required:
- branchId
- customerName
- customerSurname
- passportId
- passportSerie
- phone
- region
type: object
loansdocument.CreateLoanDocumentDTO:
properties:
active:
@@ -478,6 +572,38 @@ definitions:
- name
- value
type: object
loansrepayment.CreateLoanRepaymentDTO:
properties:
accountNumber:
type: string
passportId:
type: string
passportSerie:
type: string
userId:
type: integer
required:
- accountNumber
- passportId
- passportSerie
- userId
type: object
loansrepayment.UpdateLoanRepaymentDTO:
properties:
accountNumber:
type: string
passportId:
type: string
passportSerie:
type: string
userId:
type: integer
required:
- accountNumber
- passportId
- passportSerie
- userId
type: object
loantype.CreateLoanTypeDTO:
properties:
active:
@@ -695,13 +821,17 @@ definitions:
type: string
email:
type: string
fullname:
firstName:
type: string
lastName:
type: string
lightMode:
type: integer
name:
type: string
password:
type: string
phoneNumber:
phone:
type: string
role:
type: string
@@ -711,7 +841,7 @@ definitions:
type: string
required:
- email
- fullname
- name
- password
- username
type: object
@@ -732,11 +862,15 @@ definitions:
type: string
email:
type: string
fullname:
firstName:
type: string
lastName:
type: string
lightMode:
type: integer
phoneNumber:
name:
type: string
phone:
type: string
role:
type: string
@@ -746,7 +880,7 @@ definitions:
type: string
required:
- email
- fullname
- name
- username
type: object
host: localhost:5050
@@ -1270,6 +1404,192 @@ paths:
summary: Update loan order
tags:
- loan-orders
/loan-paid-off-letters:
get:
description: Returns paginated loan paid off letters with optional filters
parameters:
- description: Filter by passport ID
in: query
name: passport_id
type: string
- 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 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 loan paid off letters
tags:
- loan-paid-off-letters
post:
consumes:
- application/json
description: Creates a new loan paid off letter
parameters:
- description: Loan paid off letter payload
in: body
name: body
required: true
schema:
$ref: '#/definitions/loanpaidletter.CreateLoanPaidLetterDTO'
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 loan paid off letter
tags:
- loan-paid-off-letters
/loan-paid-off-letters/{id}:
delete:
description: Deletes a loan paid off letter
parameters:
- description: Loan paid off letter 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 loan paid off letter
tags:
- loan-paid-off-letters
get:
description: Returns a single loan paid off letter
parameters:
- description: Loan paid off letter 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 loan paid off letter by ID
tags:
- loan-paid-off-letters
put:
consumes:
- application/json
description: Updates an existing loan paid off letter
parameters:
- description: Loan paid off letter ID
in: path
name: id
required: true
type: integer
- description: Loan paid off letter payload
in: body
name: body
required: true
schema:
$ref: '#/definitions/loanpaidletter.UpdateLoanPaidLetterDTO'
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 loan paid off letter
tags:
- loan-paid-off-letters
/loan-types:
get:
description: Returns paginated loan types with optional filters
@@ -1663,6 +1983,180 @@ paths:
summary: Update loan document active
tags:
- loan-document
/loans-repayment:
get:
description: Returns paginated loan repayments with optional filters
parameters:
- description: Filter by passport ID
in: query
name: passport_id
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 loan repayments
tags:
- loans-repayment
post:
consumes:
- application/json
description: Creates a new loan repayment record
parameters:
- description: Loan repayment payload
in: body
name: body
required: true
schema:
$ref: '#/definitions/loansrepayment.CreateLoanRepaymentDTO'
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 loan repayment
tags:
- loans-repayment
/loans-repayment/{id}:
delete:
description: Deletes a loan repayment record
parameters:
- description: Loan repayment 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 loan repayment
tags:
- loans-repayment
get:
description: Returns a single loan repayment
parameters:
- description: Loan repayment 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 loan repayment by ID
tags:
- loans-repayment
put:
consumes:
- application/json
description: Updates an existing loan repayment record
parameters:
- description: Loan repayment ID
in: path
name: id
required: true
type: integer
- description: Loan repayment payload
in: body
name: body
required: true
schema:
$ref: '#/definitions/loansrepayment.UpdateLoanRepaymentDTO'
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 loan repayment
tags:
- loans-repayment
/login:
post:
consumes: