add cards folder
This commit is contained in:
856
docs/docs.go
856
docs/docs.go
@@ -408,6 +408,586 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"/card-orders": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "Returns paginated card orders with optional filters",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"card-orders"
|
||||
],
|
||||
"summary": "List card 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": "integer",
|
||||
"description": "Filter by card state ID",
|
||||
"name": "card_state_id",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "Filter by card type ID",
|
||||
"name": "card_type_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 card order",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"card-orders"
|
||||
],
|
||||
"summary": "Create card order",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "Card order payload",
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/cardorder.CreateCardOrderDTO"
|
||||
}
|
||||
}
|
||||
],
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/card-orders/{id}": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "Returns a single card order",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"card-orders"
|
||||
],
|
||||
"summary": "Get card order by ID",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "Card 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 card order",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"card-orders"
|
||||
],
|
||||
"summary": "Update card order",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "Card order ID",
|
||||
"name": "id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "Card order payload",
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/cardorder.UpdateCardOrderDTO"
|
||||
}
|
||||
}
|
||||
],
|
||||
"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 card order",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"card-orders"
|
||||
],
|
||||
"summary": "Delete card order",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "Card 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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/cards": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "Returns paginated cards with optional filters",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"cards"
|
||||
],
|
||||
"summary": "List cards",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "Filter by user ID",
|
||||
"name": "user_id",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Filter by card type",
|
||||
"name": "type",
|
||||
"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 card",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"cards"
|
||||
],
|
||||
"summary": "Create card",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "Card payload",
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/cards.CreateCardDTO"
|
||||
}
|
||||
}
|
||||
],
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/cards/{id}": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "Returns a single card",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"cards"
|
||||
],
|
||||
"summary": "Get card by ID",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "Card 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 card",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"cards"
|
||||
],
|
||||
"summary": "Update card",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "Card ID",
|
||||
"name": "id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "Card payload",
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/cards.UpdateCardDTO"
|
||||
}
|
||||
}
|
||||
],
|
||||
"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 card",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"cards"
|
||||
],
|
||||
"summary": "Delete card",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "Card 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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/file": {
|
||||
"post": {
|
||||
"security": [
|
||||
@@ -4015,6 +4595,282 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"cardorder.CreateCardOrderDTO": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"bornPlace",
|
||||
"branchId",
|
||||
"cardStateId",
|
||||
"cardTypeId",
|
||||
"citizenship",
|
||||
"customerName",
|
||||
"customerSurname",
|
||||
"passportFour",
|
||||
"passportGivenAt",
|
||||
"passportGivenBy",
|
||||
"passportId",
|
||||
"passportOne",
|
||||
"passportSerie",
|
||||
"passportThree",
|
||||
"passportTwo",
|
||||
"region"
|
||||
],
|
||||
"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"
|
||||
}
|
||||
}
|
||||
},
|
||||
"cardorder.UpdateCardOrderDTO": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"bornPlace",
|
||||
"branchId",
|
||||
"cardStateId",
|
||||
"cardTypeId",
|
||||
"citizenship",
|
||||
"customerName",
|
||||
"customerSurname",
|
||||
"passportFour",
|
||||
"passportGivenAt",
|
||||
"passportGivenBy",
|
||||
"passportId",
|
||||
"passportOne",
|
||||
"passportSerie",
|
||||
"passportThree",
|
||||
"passportTwo",
|
||||
"region"
|
||||
],
|
||||
"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"
|
||||
}
|
||||
}
|
||||
},
|
||||
"cards.CreateCardDTO": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"month",
|
||||
"name",
|
||||
"number"
|
||||
],
|
||||
"properties": {
|
||||
"month": {
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"number": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": {
|
||||
"type": "string"
|
||||
},
|
||||
"userId": {
|
||||
"type": "integer"
|
||||
},
|
||||
"year": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"cards.UpdateCardDTO": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"month",
|
||||
"name",
|
||||
"number"
|
||||
],
|
||||
"properties": {
|
||||
"month": {
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"number": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": {
|
||||
"type": "string"
|
||||
},
|
||||
"userId": {
|
||||
"type": "integer"
|
||||
},
|
||||
"year": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"loanorders.CreateLoanOrderDTO": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
|
||||
@@ -402,6 +402,586 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/card-orders": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "Returns paginated card orders with optional filters",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"card-orders"
|
||||
],
|
||||
"summary": "List card 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": "integer",
|
||||
"description": "Filter by card state ID",
|
||||
"name": "card_state_id",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "Filter by card type ID",
|
||||
"name": "card_type_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 card order",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"card-orders"
|
||||
],
|
||||
"summary": "Create card order",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "Card order payload",
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/cardorder.CreateCardOrderDTO"
|
||||
}
|
||||
}
|
||||
],
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/card-orders/{id}": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "Returns a single card order",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"card-orders"
|
||||
],
|
||||
"summary": "Get card order by ID",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "Card 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 card order",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"card-orders"
|
||||
],
|
||||
"summary": "Update card order",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "Card order ID",
|
||||
"name": "id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "Card order payload",
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/cardorder.UpdateCardOrderDTO"
|
||||
}
|
||||
}
|
||||
],
|
||||
"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 card order",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"card-orders"
|
||||
],
|
||||
"summary": "Delete card order",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "Card 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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/cards": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "Returns paginated cards with optional filters",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"cards"
|
||||
],
|
||||
"summary": "List cards",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "Filter by user ID",
|
||||
"name": "user_id",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Filter by card type",
|
||||
"name": "type",
|
||||
"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 card",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"cards"
|
||||
],
|
||||
"summary": "Create card",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "Card payload",
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/cards.CreateCardDTO"
|
||||
}
|
||||
}
|
||||
],
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/cards/{id}": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "Returns a single card",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"cards"
|
||||
],
|
||||
"summary": "Get card by ID",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "Card 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 card",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"cards"
|
||||
],
|
||||
"summary": "Update card",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "Card ID",
|
||||
"name": "id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "Card payload",
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/cards.UpdateCardDTO"
|
||||
}
|
||||
}
|
||||
],
|
||||
"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 card",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"cards"
|
||||
],
|
||||
"summary": "Delete card",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "Card 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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/file": {
|
||||
"post": {
|
||||
"security": [
|
||||
@@ -4009,6 +4589,282 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"cardorder.CreateCardOrderDTO": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"bornPlace",
|
||||
"branchId",
|
||||
"cardStateId",
|
||||
"cardTypeId",
|
||||
"citizenship",
|
||||
"customerName",
|
||||
"customerSurname",
|
||||
"passportFour",
|
||||
"passportGivenAt",
|
||||
"passportGivenBy",
|
||||
"passportId",
|
||||
"passportOne",
|
||||
"passportSerie",
|
||||
"passportThree",
|
||||
"passportTwo",
|
||||
"region"
|
||||
],
|
||||
"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"
|
||||
}
|
||||
}
|
||||
},
|
||||
"cardorder.UpdateCardOrderDTO": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"bornPlace",
|
||||
"branchId",
|
||||
"cardStateId",
|
||||
"cardTypeId",
|
||||
"citizenship",
|
||||
"customerName",
|
||||
"customerSurname",
|
||||
"passportFour",
|
||||
"passportGivenAt",
|
||||
"passportGivenBy",
|
||||
"passportId",
|
||||
"passportOne",
|
||||
"passportSerie",
|
||||
"passportThree",
|
||||
"passportTwo",
|
||||
"region"
|
||||
],
|
||||
"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"
|
||||
}
|
||||
}
|
||||
},
|
||||
"cards.CreateCardDTO": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"month",
|
||||
"name",
|
||||
"number"
|
||||
],
|
||||
"properties": {
|
||||
"month": {
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"number": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": {
|
||||
"type": "string"
|
||||
},
|
||||
"userId": {
|
||||
"type": "integer"
|
||||
},
|
||||
"year": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"cards.UpdateCardDTO": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"month",
|
||||
"name",
|
||||
"number"
|
||||
],
|
||||
"properties": {
|
||||
"month": {
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"number": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": {
|
||||
"type": "string"
|
||||
},
|
||||
"userId": {
|
||||
"type": "integer"
|
||||
},
|
||||
"year": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"loanorders.CreateLoanOrderDTO": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
|
||||
@@ -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