created loan-orders and created table
This commit is contained in:
@@ -402,6 +402,296 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/loan-orders": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "Returns paginated loan orders with optional filters",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"loan-orders"
|
||||
],
|
||||
"summary": "List loan orders",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Filter by status",
|
||||
"name": "status",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "Filter by branch ID",
|
||||
"name": "branch_id",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "Filter by user ID",
|
||||
"name": "user_id",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Filter by region",
|
||||
"name": "region",
|
||||
"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 loan order",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"loan-orders"
|
||||
],
|
||||
"summary": "Create loan order",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "Loan order payload",
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/loanorders.CreateLoanOrderDTO"
|
||||
}
|
||||
}
|
||||
],
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/loan-orders/{id}": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "Returns a single loan order",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"loan-orders"
|
||||
],
|
||||
"summary": "Get loan order by ID",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "Loan order 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 loan order",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"loan-orders"
|
||||
],
|
||||
"summary": "Update loan order",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "Loan order ID",
|
||||
"name": "id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "Loan order payload",
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/loanorders.UpdateLoanOrderDTO"
|
||||
}
|
||||
}
|
||||
],
|
||||
"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 loan order",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"loan-orders"
|
||||
],
|
||||
"summary": "Delete loan order",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "Loan order 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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/loan-types": {
|
||||
"get": {
|
||||
"security": [
|
||||
@@ -3033,6 +3323,462 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"loanorders.CreateLoanOrderDTO": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"bornAt",
|
||||
"bornPlace",
|
||||
"branchId",
|
||||
"customerName",
|
||||
"customerSurname",
|
||||
"education",
|
||||
"loanType",
|
||||
"marriageStatus",
|
||||
"passportAddress",
|
||||
"passportFour",
|
||||
"passportGivenAt",
|
||||
"passportGivenBy",
|
||||
"passportId",
|
||||
"passportOne",
|
||||
"passportSerie",
|
||||
"passportThree",
|
||||
"passportTwo",
|
||||
"phone",
|
||||
"realAddress",
|
||||
"region"
|
||||
],
|
||||
"properties": {
|
||||
"bornAt": {
|
||||
"type": "string"
|
||||
},
|
||||
"bornPlace": {
|
||||
"type": "string"
|
||||
},
|
||||
"branchId": {
|
||||
"type": "integer"
|
||||
},
|
||||
"cardMonth": {
|
||||
"type": "string"
|
||||
},
|
||||
"cardName": {
|
||||
"type": "string"
|
||||
},
|
||||
"cardNumber": {
|
||||
"type": "string"
|
||||
},
|
||||
"cardYear": {
|
||||
"type": "string"
|
||||
},
|
||||
"customerName": {
|
||||
"type": "string"
|
||||
},
|
||||
"customerPatronicName": {
|
||||
"type": "string"
|
||||
},
|
||||
"customerSurname": {
|
||||
"type": "string"
|
||||
},
|
||||
"education": {
|
||||
"type": "string"
|
||||
},
|
||||
"email": {
|
||||
"type": "string"
|
||||
},
|
||||
"guarantor2CardMonth": {
|
||||
"type": "string"
|
||||
},
|
||||
"guarantor2CardName": {
|
||||
"type": "string"
|
||||
},
|
||||
"guarantor2CardNumber": {
|
||||
"type": "string"
|
||||
},
|
||||
"guarantor2CardYear": {
|
||||
"type": "string"
|
||||
},
|
||||
"guarantor2Name": {
|
||||
"type": "string"
|
||||
},
|
||||
"guarantor2Note": {
|
||||
"type": "string"
|
||||
},
|
||||
"guarantor2PassportId": {
|
||||
"type": "string"
|
||||
},
|
||||
"guarantor2PassportSerie": {
|
||||
"type": "string"
|
||||
},
|
||||
"guarantor2PatronicName": {
|
||||
"type": "string"
|
||||
},
|
||||
"guarantor2Surname": {
|
||||
"type": "string"
|
||||
},
|
||||
"guarantorCardMonth": {
|
||||
"type": "string"
|
||||
},
|
||||
"guarantorCardName": {
|
||||
"type": "string"
|
||||
},
|
||||
"guarantorCardNumber": {
|
||||
"type": "string"
|
||||
},
|
||||
"guarantorCardYear": {
|
||||
"type": "string"
|
||||
},
|
||||
"guarantorName": {
|
||||
"type": "string"
|
||||
},
|
||||
"guarantorNote": {
|
||||
"type": "string"
|
||||
},
|
||||
"guarantorPassportId": {
|
||||
"type": "string"
|
||||
},
|
||||
"guarantorPassportSerie": {
|
||||
"type": "string"
|
||||
},
|
||||
"guarantorPatronicName": {
|
||||
"type": "string"
|
||||
},
|
||||
"guarantorSurname": {
|
||||
"type": "string"
|
||||
},
|
||||
"loanAmount": {
|
||||
"type": "string"
|
||||
},
|
||||
"loanCardMonth": {
|
||||
"type": "string"
|
||||
},
|
||||
"loanCardName": {
|
||||
"type": "string"
|
||||
},
|
||||
"loanCardNumber": {
|
||||
"type": "string"
|
||||
},
|
||||
"loanCardYear": {
|
||||
"type": "string"
|
||||
},
|
||||
"loanOrderRequiredDocId": {
|
||||
"type": "integer"
|
||||
},
|
||||
"loanType": {
|
||||
"type": "integer"
|
||||
},
|
||||
"marriageStatus": {
|
||||
"type": "string"
|
||||
},
|
||||
"notes": {
|
||||
"type": "string"
|
||||
},
|
||||
"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"
|
||||
},
|
||||
"phoneHome": {
|
||||
"type": "string"
|
||||
},
|
||||
"realAddress": {
|
||||
"type": "string"
|
||||
},
|
||||
"region": {
|
||||
"type": "string"
|
||||
},
|
||||
"satisfiable": {
|
||||
"type": "string"
|
||||
},
|
||||
"source": {
|
||||
"type": "string"
|
||||
},
|
||||
"status": {
|
||||
"type": "string"
|
||||
},
|
||||
"uniqueId": {
|
||||
"type": "string"
|
||||
},
|
||||
"userId": {
|
||||
"type": "integer"
|
||||
},
|
||||
"workCompany": {
|
||||
"type": "string"
|
||||
},
|
||||
"workCompanyAccountantNumber": {
|
||||
"type": "string"
|
||||
},
|
||||
"workPosition": {
|
||||
"type": "string"
|
||||
},
|
||||
"workProvinceId": {
|
||||
"type": "integer"
|
||||
},
|
||||
"workRegion": {
|
||||
"type": "string"
|
||||
},
|
||||
"workSalary": {
|
||||
"type": "string"
|
||||
},
|
||||
"workStartedAt": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"loanorders.UpdateLoanOrderDTO": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"bornAt",
|
||||
"bornPlace",
|
||||
"branchId",
|
||||
"customerName",
|
||||
"customerSurname",
|
||||
"education",
|
||||
"loanType",
|
||||
"marriageStatus",
|
||||
"passportAddress",
|
||||
"passportFour",
|
||||
"passportGivenAt",
|
||||
"passportGivenBy",
|
||||
"passportId",
|
||||
"passportOne",
|
||||
"passportSerie",
|
||||
"passportThree",
|
||||
"passportTwo",
|
||||
"phone",
|
||||
"realAddress",
|
||||
"region"
|
||||
],
|
||||
"properties": {
|
||||
"bornAt": {
|
||||
"type": "string"
|
||||
},
|
||||
"bornPlace": {
|
||||
"type": "string"
|
||||
},
|
||||
"branchId": {
|
||||
"type": "integer"
|
||||
},
|
||||
"cardMonth": {
|
||||
"type": "string"
|
||||
},
|
||||
"cardName": {
|
||||
"type": "string"
|
||||
},
|
||||
"cardNumber": {
|
||||
"type": "string"
|
||||
},
|
||||
"cardYear": {
|
||||
"type": "string"
|
||||
},
|
||||
"customerName": {
|
||||
"type": "string"
|
||||
},
|
||||
"customerPatronicName": {
|
||||
"type": "string"
|
||||
},
|
||||
"customerSurname": {
|
||||
"type": "string"
|
||||
},
|
||||
"education": {
|
||||
"type": "string"
|
||||
},
|
||||
"email": {
|
||||
"type": "string"
|
||||
},
|
||||
"guarantor2CardMonth": {
|
||||
"type": "string"
|
||||
},
|
||||
"guarantor2CardName": {
|
||||
"type": "string"
|
||||
},
|
||||
"guarantor2CardNumber": {
|
||||
"type": "string"
|
||||
},
|
||||
"guarantor2CardYear": {
|
||||
"type": "string"
|
||||
},
|
||||
"guarantor2Name": {
|
||||
"type": "string"
|
||||
},
|
||||
"guarantor2Note": {
|
||||
"type": "string"
|
||||
},
|
||||
"guarantor2PassportId": {
|
||||
"type": "string"
|
||||
},
|
||||
"guarantor2PassportSerie": {
|
||||
"type": "string"
|
||||
},
|
||||
"guarantor2PatronicName": {
|
||||
"type": "string"
|
||||
},
|
||||
"guarantor2Surname": {
|
||||
"type": "string"
|
||||
},
|
||||
"guarantorCardMonth": {
|
||||
"type": "string"
|
||||
},
|
||||
"guarantorCardName": {
|
||||
"type": "string"
|
||||
},
|
||||
"guarantorCardNumber": {
|
||||
"type": "string"
|
||||
},
|
||||
"guarantorCardYear": {
|
||||
"type": "string"
|
||||
},
|
||||
"guarantorName": {
|
||||
"type": "string"
|
||||
},
|
||||
"guarantorNote": {
|
||||
"type": "string"
|
||||
},
|
||||
"guarantorPassportId": {
|
||||
"type": "string"
|
||||
},
|
||||
"guarantorPassportSerie": {
|
||||
"type": "string"
|
||||
},
|
||||
"guarantorPatronicName": {
|
||||
"type": "string"
|
||||
},
|
||||
"guarantorSurname": {
|
||||
"type": "string"
|
||||
},
|
||||
"loanAmount": {
|
||||
"type": "string"
|
||||
},
|
||||
"loanCardMonth": {
|
||||
"type": "string"
|
||||
},
|
||||
"loanCardName": {
|
||||
"type": "string"
|
||||
},
|
||||
"loanCardNumber": {
|
||||
"type": "string"
|
||||
},
|
||||
"loanCardYear": {
|
||||
"type": "string"
|
||||
},
|
||||
"loanOrderRequiredDocId": {
|
||||
"type": "integer"
|
||||
},
|
||||
"loanType": {
|
||||
"type": "integer"
|
||||
},
|
||||
"marriageStatus": {
|
||||
"type": "string"
|
||||
},
|
||||
"notes": {
|
||||
"type": "string"
|
||||
},
|
||||
"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"
|
||||
},
|
||||
"phoneHome": {
|
||||
"type": "string"
|
||||
},
|
||||
"realAddress": {
|
||||
"type": "string"
|
||||
},
|
||||
"region": {
|
||||
"type": "string"
|
||||
},
|
||||
"satisfiable": {
|
||||
"type": "string"
|
||||
},
|
||||
"source": {
|
||||
"type": "string"
|
||||
},
|
||||
"status": {
|
||||
"type": "string"
|
||||
},
|
||||
"uniqueId": {
|
||||
"type": "string"
|
||||
},
|
||||
"userId": {
|
||||
"type": "integer"
|
||||
},
|
||||
"workCompany": {
|
||||
"type": "string"
|
||||
},
|
||||
"workCompanyAccountantNumber": {
|
||||
"type": "string"
|
||||
},
|
||||
"workPosition": {
|
||||
"type": "string"
|
||||
},
|
||||
"workProvinceId": {
|
||||
"type": "integer"
|
||||
},
|
||||
"workRegion": {
|
||||
"type": "string"
|
||||
},
|
||||
"workSalary": {
|
||||
"type": "string"
|
||||
},
|
||||
"workStartedAt": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"loansdocument.CreateLoanDocumentDTO": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
|
||||
Reference in New Issue
Block a user