add book order
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-05-23 01:40:59 +07:00
parent 5b7744080c
commit 4bd82a34a1
14 changed files with 717 additions and 101 deletions
+72
View File
@@ -69,6 +69,50 @@
]
}
},
"/orders": {
"post": {
"operationId": "CRM_Order",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/crmOrderRsp"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "order",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/crabscrmOrder"
}
},
{
"name": "name",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "phone",
"in": "query",
"required": false,
"type": "string"
}
],
"tags": [
"CRM"
]
}
},
"/positions/{id}": {
"get": {
"operationId": "CRM_GetPositions",
@@ -133,6 +177,18 @@
}
},
"definitions": {
"crabscrmOrder": {
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/crmOrderItem"
}
}
}
},
"crmBreadcrumbsRsp": {
"type": "object",
"properties": {
@@ -204,6 +260,22 @@
}
}
},
"crmOrderItem": {
"type": "object",
"properties": {
"productId": {
"type": "string",
"format": "int64"
},
"count": {
"type": "string",
"format": "int64"
}
}
},
"crmOrderRsp": {
"type": "object"
},
"crmPositionsRsp": {
"type": "object",
"properties": {