From 116948bcec330a6dde841708515c222fcebf51a7 Mon Sep 17 00:00:00 2001 From: jiangshuai <291802688@qq.com> Date: 星期二, 06 二月 2024 10:12:10 +0800 Subject: [PATCH] Merge branch 'master' of http://192.168.5.5:10010/r/aps/crm --- docs/docs.go | 380 +++++++++++++++++++++++++++++++++++++++++++++-------- 1 files changed, 320 insertions(+), 60 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index caf496f..1455302 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -4947,10 +4947,7 @@ "type": "object", "properties": { "data": { - "type": "array", - "items": { - "$ref": "#/definitions/product.WorkOrderInfo" - } + "$ref": "#/definitions/response.Info" } } } @@ -5032,6 +5029,12 @@ "type": "string", "description": "浜у搧缂栫爜", "name": "productNumber", + "in": "query" + }, + { + "type": "string", + "description": "鎶ヤ环鍗曠紪鐮�", + "name": "quotationNumber", "in": "query" } ], @@ -5311,6 +5314,40 @@ "properties": { "data": { "$ref": "#/definitions/response.QuotationResponse" + } + } + } + ] + } + } + } + } + }, + "/api/quotation/statistics": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "Quotation" + ], + "summary": "鎶ヤ环鍗曠粺璁�", + "responses": { + "200": { + "description": "OK", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/contextx.Response" + }, + { + "type": "object", + "properties": { + "data": { + "type": "object", + "additionalProperties": { + "type": "integer" + } } } } @@ -6971,36 +7008,6 @@ } } }, - "/api/salesDetails/createOperation": { - "post": { - "produces": [ - "application/json" - ], - "tags": [ - "SalesDetails" - ], - "summary": "鍒涘缓浜у搧鍑哄簱淇℃伅", - "parameters": [ - { - "description": "鏌ヨ鍙傛暟", - "name": "object", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/request.SalesDetails" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/response.ListResponse" - } - } - } - } - }, "/api/salesDetails/delete": { "delete": { "produces": [ @@ -7054,6 +7061,25 @@ "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/api/salesDetails/getApsProjectList": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "SalesDetails" + ], + "summary": "鑾峰彇aps椤圭洰鍒楄〃", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/response.Response" } } } @@ -7124,6 +7150,36 @@ } } ] + } + } + } + } + }, + "/api/salesDetails/sendSalesDetailsToOtherSystem": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "SalesDetails" + ], + "summary": "鎺ㄩ�侀攢鍞槑缁嗕俊鎭埌鍏朵粬绯荤粺", + "parameters": [ + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.SalesDetails" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/response.ListResponse" } } } @@ -9767,6 +9823,96 @@ } } }, + "/api/system/getSystemSet": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "绯荤粺璁剧疆" + ], + "summary": "鑾峰彇绯荤粺璁剧疆", + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/contextx.Response" + }, + { + "type": "object", + "properties": { + "data": { + "type": "object", + "additionalProperties": true + } + } + } + ] + } + } + } + } + }, + "/api/system/saveSystemSet": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "绯荤粺璁剧疆" + ], + "summary": "淇濆瓨绯荤粺璁剧疆", + "parameters": [ + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.SaveSystemSet" + } + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/api/system/useSystemSet/{modeType}": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "绯荤粺璁剧疆" + ], + "summary": "浣跨敤绯荤粺璁剧疆", + "parameters": [ + { + "type": "string", + "description": "鏌ヨ鍙傛暟", + "name": "modeType", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/response.ListResponse" + } + } + } + } + }, "/api/timeSpent/add": { "post": { "produces": [ @@ -11824,11 +11970,17 @@ "amount": { "type": "number" }, + "cost": { + "type": "string" + }, "desc": { "type": "string" }, "id": { "type": "integer" + }, + "margin": { + "type": "string" }, "name": { "type": "string" @@ -11838,6 +11990,9 @@ }, "price": { "type": "number" + }, + "profit": { + "type": "string" }, "total": { "type": "number" @@ -11867,6 +12022,10 @@ "model.Quotation": { "type": "object", "properties": { + "amountTotal": { + "description": "浠锋牸鍚堣", + "type": "number" + }, "client": { "$ref": "#/definitions/model.Client" }, @@ -12377,6 +12536,9 @@ "items": { "$ref": "#/definitions/model.Product" } + }, + "projectId": { + "type": "string" }, "quotation": { "$ref": "#/definitions/model.Quotation" @@ -13313,6 +13475,23 @@ } } }, + "model.SystemSet": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "modeType": { + "type": "string" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + }, "model.TimeSpent": { "type": "object", "properties": { @@ -13452,32 +13631,6 @@ "type": "string" }, "Unit": { - "type": "string" - } - } - }, - "product.WorkOrderInfo": { - "type": "object", - "properties": { - "EndTime": { - "type": "string" - }, - "OrderId": { - "type": "string" - }, - "OrderStatus": { - "type": "string" - }, - "ProductName": { - "type": "string" - }, - "StartTime": { - "type": "string" - }, - "WorkOrderId": { - "type": "string" - }, - "WorkOrderStatus": { "type": "string" } } @@ -14513,11 +14666,17 @@ "request.AddSalesDetails": { "type": "object", "properties": { + "Member": { + "$ref": "#/definitions/model.User" + }, "address": { "type": "string" }, "addressee": { "type": "string" + }, + "client": { + "$ref": "#/definitions/model.Client" }, "clientId": { "type": "integer" @@ -14559,6 +14718,9 @@ "items": { "$ref": "#/definitions/model.Product" } + }, + "projectId": { + "type": "string" }, "quotationId": { "type": "integer" @@ -15598,6 +15760,9 @@ "request.GetContractList": { "type": "object", "properties": { + "keyword": { + "type": "string" + }, "page": { "description": "椤电爜", "type": "integer" @@ -16088,11 +16253,17 @@ "request.SalesDetails": { "type": "object", "properties": { + "Member": { + "$ref": "#/definitions/model.User" + }, "address": { "type": "string" }, "addressee": { "type": "string" + }, + "client": { + "$ref": "#/definitions/model.Client" }, "clientId": { "type": "integer" @@ -16134,6 +16305,9 @@ "items": { "$ref": "#/definitions/model.Product" } + }, + "projectId": { + "type": "string" }, "quotationId": { "type": "integer" @@ -16267,6 +16441,17 @@ "$ref": "#/definitions/constvar.SalesReturnSourceType" } ] + } + } + }, + "request.SaveSystemSet": { + "type": "object", + "properties": { + "sets": { + "type": "array", + "items": { + "$ref": "#/definitions/model.SystemSet" + } } } }, @@ -19130,6 +19315,23 @@ } } }, + "response.Info": { + "type": "object", + "properties": { + "makeInfo": { + "type": "array", + "items": { + "$ref": "#/definitions/response.WorkOrderInfo" + } + }, + "purchaseInfo": { + "type": "array", + "items": { + "$ref": "#/definitions/response.Purchase" + } + } + } + }, "response.IsInvoiceResponse": { "type": "object", "properties": { @@ -19267,6 +19469,26 @@ } } }, + "response.Purchase": { + "type": "object", + "properties": { + "amount": { + "type": "integer" + }, + "purchaseName": { + "type": "string" + }, + "purchaseNumber": { + "type": "string" + }, + "status": { + "type": "integer" + }, + "supplierName": { + "type": "string" + } + } + }, "response.QuotationResponse": { "type": "object", "properties": { @@ -19344,6 +19566,18 @@ "items": { "$ref": "#/definitions/model.Repository" } + } + } + }, + "response.Response": { + "type": "object", + "properties": { + "code": { + "type": "integer" + }, + "data": {}, + "msg": { + "type": "string" } } }, @@ -19560,6 +19794,32 @@ } } } + }, + "response.WorkOrderInfo": { + "type": "object", + "properties": { + "endTime": { + "type": "string" + }, + "orderId": { + "type": "string" + }, + "orderStatus": { + "type": "string" + }, + "productName": { + "type": "string" + }, + "startTime": { + "type": "string" + }, + "workOrderId": { + "type": "string" + }, + "workOrderStatus": { + "type": "string" + } + } } } }` -- Gitblit v1.8.0