add cards folder

This commit is contained in:
2026-07-13 18:47:35 +05:00
parent 6705c4ce91
commit 7e3a5cebcc
19 changed files with 4079 additions and 0 deletions

View File

@@ -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": [