From 115bd9b51f5d8eade4658f844de37516486c60e7 Mon Sep 17 00:00:00 2001 From: liujiandao <274878379@qq.com> Date: 星期六, 18 十一月 2023 17:25:25 +0800 Subject: [PATCH] crm获取aps项目模块信息 --- docs/docs.go | 438 +++++++++++++++++++++++++++++++++++++++++++----------- 1 files changed, 350 insertions(+), 88 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index bbd6e7c..caf496f 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -1199,6 +1199,36 @@ } } }, + "/api/code/getAutoCode": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "缂栫爜" + ], + "summary": "鑾峰彇鑷姩缂栫爜", + "parameters": [ + { + "description": "鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/code.CodeStandard" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/response.ListResponse" + } + } + } + } + }, "/api/code/getCodeList": { "get": { "produces": [ @@ -4887,6 +4917,49 @@ } } }, + "/api/product/getProductOrderInfo/{number}": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "浜у搧" + ], + "summary": "鑾峰彇浜у搧璁㈠崟淇℃伅", + "parameters": [ + { + "type": "string", + "description": "鏄庣粏缂栫爜", + "name": "number", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/contextx.Response" + }, + { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/product.WorkOrderInfo" + } + } + } + } + ] + } + } + } + } + }, "/api/product/info": { "get": { "produces": [ @@ -5480,6 +5553,15 @@ "type": "integer", "description": "姣忛〉澶у皬", "name": "pageSize", + "in": "query" + }, + { + "type": "array", + "items": { + "type": "integer" + }, + "collectionFormat": "csv", + "name": "principleIds", "in": "query" }, { @@ -6889,6 +6971,36 @@ } } }, + "/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": [ @@ -6942,6 +7054,34 @@ "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/api/salesDetails/getProductInventoryInfo/{number}": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "SalesDetails" + ], + "summary": "鑾峰彇浜у搧搴撳瓨淇℃伅", + "parameters": [ + { + "type": "string", + "description": "鏄庣粏缂栫爜", + "name": "number", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/response.ListResponse" } } } @@ -7006,6 +7146,36 @@ "required": true, "schema": { "$ref": "#/definitions/request.UpdateSalesDetails" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/api/salesDetails/updateStatus": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "SalesDetails" + ], + "summary": "鏇存柊閿�鍞槑缁嗙姸鎬�", + "parameters": [ + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.UpdateSalesDetailsStatus" } } ], @@ -10331,6 +10501,27 @@ "SalesDetailsKeywordTypeProductName" ] }, + "constvar.SalesDetailsStatus": { + "type": "integer", + "enum": [ + 1, + 2, + 3, + 4 + ], + "x-enum-comments": { + "OverCLose": "宸插叧闂�", + "OverOutbound": "鍑哄簱瀹屾垚", + "WaitConfirmed": "寰呯‘璁�", + "WaitOutbound": "寰呭嚭搴�" + }, + "x-enum-varnames": [ + "WaitConfirmed", + "WaitOutbound", + "OverOutbound", + "OverCLose" + ] + }, "constvar.SalesRefundKeywordType": { "type": "string", "enum": [ @@ -11120,6 +11311,9 @@ "quotationId": { "type": "integer" }, + "sendTime": { + "type": "string" + }, "serviceContractStatus": { "$ref": "#/definitions/model.ServiceContractStatus" }, @@ -11321,6 +11515,9 @@ "description": "瀹㈡埛id", "type": "integer" }, + "codeStandID": { + "type": "string" + }, "courierCompany": { "$ref": "#/definitions/model.CourierCompany" }, @@ -11356,6 +11553,9 @@ "invoiceTypeId": { "description": "鍙戠エ绫诲瀷id", "type": "integer" + }, + "number": { + "type": "string" }, "principalId": { "description": "閿�鍞礋璐d汉id", @@ -11641,6 +11841,9 @@ }, "total": { "type": "number" + }, + "unit": { + "type": "string" } } }, @@ -11997,6 +12200,12 @@ "process": { "type": "string" }, + "products": { + "type": "array", + "items": { + "$ref": "#/definitions/model.Product" + } + }, "projected_amount": { "type": "number" }, @@ -12042,8 +12251,16 @@ "solutions": { "type": "string" }, + "status": { + "description": "鐘舵��", + "allOf": [ + { + "$ref": "#/definitions/model.Status" + } + ] + }, "status_id": { - "$ref": "#/definitions/model.Status" + "type": "integer" }, "threats": { "type": "string" @@ -12128,6 +12345,9 @@ "creatorName": { "type": "string" }, + "deliverType": { + "type": "integer" + }, "deliveryDate": { "type": "string" }, @@ -12158,6 +12378,12 @@ "$ref": "#/definitions/model.Product" } }, + "quotation": { + "$ref": "#/definitions/model.Quotation" + }, + "quotationId": { + "type": "integer" + }, "remark": { "type": "string" }, @@ -12172,6 +12398,12 @@ }, "signTime": { "type": "string" + }, + "source": { + "type": "string" + }, + "status": { + "$ref": "#/definitions/constvar.SalesDetailsStatus" }, "updateTime": { "type": "string" @@ -12275,9 +12507,6 @@ } ] }, - "Source": { - "$ref": "#/definitions/model.SalesReturn" - }, "amountTotal": { "description": "浠风◣鍚堣", "type": "number" @@ -12341,6 +12570,9 @@ "refundTypeId": { "description": "閫�娆炬柟寮廔D", "type": "integer" + }, + "salesReturn": { + "$ref": "#/definitions/model.SalesReturn" }, "sourceId": { "description": "婧愬崟id", @@ -12960,6 +13192,10 @@ "severity": { "$ref": "#/definitions/model.Severity" }, + "severityId": { + "description": "涓ラ噸绋嬪害id", + "type": "integer" + }, "solution": { "description": "瑙e喅鏂规硶", "type": "string" @@ -13140,6 +13376,10 @@ "realName": { "type": "string" }, + "subUserIds": { + "description": "涓嬪睘鍛樺伐鐢ㄦ埛id,鐢ㄩ�楀彿鍒嗗紑", + "type": "string" + }, "userType": { "$ref": "#/definitions/constvar.UserType" }, @@ -13212,6 +13452,32 @@ "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" } } @@ -13289,9 +13555,6 @@ "client_type_id": { "description": "瀹㈡埛绫诲瀷ID", "type": "integer" - }, - "codeRule": { - "$ref": "#/definitions/code.CodeStandard" }, "codeStandID": { "description": "缂栫爜id", @@ -13497,9 +13760,6 @@ "client_id": { "type": "integer" }, - "codeRule": { - "$ref": "#/definitions/code.CodeStandard" - }, "codeStandID": { "description": "缂栫爜id", "type": "string" @@ -13519,6 +13779,10 @@ }, "quotation_id": { "type": "integer" + }, + "sendTime": { + "description": "鍙戣揣鏃堕棿", + "type": "string" }, "status_id": { "type": "integer" @@ -13660,6 +13924,9 @@ "description": "瀹㈡埛id", "type": "integer" }, + "codeStandID": { + "type": "string" + }, "courierCompanyId": { "description": "鐗╂祦鍏徃", "type": "integer" @@ -13683,6 +13950,10 @@ "invoiceTypeId": { "description": "鍙戠エ绫诲瀷id", "type": "integer" + }, + "number": { + "description": "鍙戠エ缂栧彿", + "type": "string" }, "principalId": { "description": "閿�鍞礋璐d汉id", @@ -13766,9 +14037,6 @@ "properties": { "client_id": { "type": "integer" - }, - "codeRule": { - "$ref": "#/definitions/code.CodeStandard" }, "codeStandID": { "description": "缂栫爜id", @@ -13889,9 +14157,6 @@ "properties": { "client_id": { "type": "integer" - }, - "codeRule": { - "$ref": "#/definitions/code.CodeStandard" }, "codeStandID": { "description": "缂栫爜id", @@ -14127,9 +14392,6 @@ "client_id": { "type": "integer" }, - "codeRule": { - "$ref": "#/definitions/code.CodeStandard" - }, "codeStandID": { "description": "缂栫爜id", "type": "string" @@ -14181,6 +14443,12 @@ }, "process": { "type": "string" + }, + "products": { + "type": "array", + "items": { + "$ref": "#/definitions/model.Product" + } }, "projected_amount": { "type": "number" @@ -14254,15 +14522,16 @@ "clientId": { "type": "integer" }, - "codeRule": { - "$ref": "#/definitions/code.CodeStandard" - }, "codeStandID": { "description": "缂栫爜id", "type": "string" }, "conditions": { "type": "string" + }, + "deliverType": { + "description": "浜や粯绫诲瀷:1.涓�娆″彂璐�,2.澶氭鍙戣揣", + "type": "integer" }, "deliveryDate": { "type": "string" @@ -14291,6 +14560,9 @@ "$ref": "#/definitions/model.Product" } }, + "quotationId": { + "type": "integer" + }, "remark": { "type": "string" }, @@ -14303,6 +14575,12 @@ "signTime": { "type": "string" }, + "source": { + "type": "string" + }, + "status": { + "$ref": "#/definitions/constvar.SalesDetailsStatus" + }, "wechatOrderStatusId": { "type": "integer" } @@ -14313,9 +14591,6 @@ "properties": { "city_id": { "type": "integer" - }, - "codeRule": { - "$ref": "#/definitions/code.CodeStandard" }, "codeStandID": { "description": "缂栫爜id", @@ -14440,9 +14715,6 @@ "clientId": { "type": "integer" }, - "codeRule": { - "$ref": "#/definitions/code.CodeStandard" - }, "codeStandID": { "description": "缂栫爜id", "type": "string" @@ -14551,9 +14823,6 @@ "description": "瀹㈡埛绫诲瀷ID", "type": "integer" }, - "codeRule": { - "$ref": "#/definitions/code.CodeStandard" - }, "codeStandID": { "description": "缂栫爜id", "type": "string" @@ -14648,9 +14917,6 @@ "clientId": { "type": "integer" }, - "codeRule": { - "$ref": "#/definitions/code.CodeStandard" - }, "codeStandID": { "description": "缂栫爜id", "type": "string" @@ -14715,9 +14981,6 @@ "clientId": { "description": "瀹㈡埛id", "type": "integer" - }, - "codeRule": { - "$ref": "#/definitions/code.CodeStandard" }, "codeStandID": { "description": "缂栫爜id", @@ -14791,7 +15054,7 @@ "description": "鏈嶅姟鏂瑰紡id", "type": "integer" }, - "severity": { + "severityId": { "description": "涓ラ噸绋嬪害id", "type": "integer" }, @@ -14873,9 +15136,6 @@ "properties": { "clientId": { "type": "integer" - }, - "codeRule": { - "$ref": "#/definitions/code.CodeStandard" }, "codeStandID": { "description": "缂栫爜id", @@ -15254,9 +15514,6 @@ "client_status_id": { "type": "integer" }, - "codeRule": { - "$ref": "#/definitions/code.CodeStandard" - }, "codeStandID": { "type": "string" }, @@ -15407,6 +15664,12 @@ "description": "姣忛〉澶у皬", "type": "integer" }, + "principalIds": { + "type": "array", + "items": { + "type": "integer" + } + }, "sourceId": { "type": "integer" }, @@ -15520,7 +15783,7 @@ "$ref": "#/definitions/constvar.SalesDetailsKeywordType" }, "number": { - "description": "閿�鍞瓙鍗曞彿", + "description": "閿�鍞槑缁嗗崟鍙�", "type": "string" }, "page": { @@ -15834,15 +16097,16 @@ "clientId": { "type": "integer" }, - "codeRule": { - "$ref": "#/definitions/code.CodeStandard" - }, "codeStandID": { "description": "缂栫爜id", "type": "string" }, "conditions": { "type": "string" + }, + "deliverType": { + "description": "浜や粯绫诲瀷:1.涓�娆″彂璐�,2.澶氭鍙戣揣", + "type": "integer" }, "deliveryDate": { "type": "string" @@ -15871,6 +16135,9 @@ "$ref": "#/definitions/model.Product" } }, + "quotationId": { + "type": "integer" + }, "remark": { "type": "string" }, @@ -15882,6 +16149,12 @@ }, "signTime": { "type": "string" + }, + "source": { + "type": "string" + }, + "status": { + "$ref": "#/definitions/constvar.SalesDetailsStatus" }, "wechatOrderStatusId": { "type": "integer" @@ -15901,9 +16174,6 @@ }, "clientId": { "type": "integer" - }, - "codeRule": { - "$ref": "#/definitions/code.CodeStandard" }, "codeStandID": { "description": "缂栫爜id", @@ -15953,9 +16223,6 @@ "properties": { "clientId": { "type": "integer" - }, - "codeRule": { - "$ref": "#/definitions/code.CodeStandard" }, "codeStandID": { "description": "缂栫爜id", @@ -16155,9 +16422,6 @@ "client_type_id": { "description": "瀹㈡埛绫诲瀷ID", "type": "integer" - }, - "codeRule": { - "$ref": "#/definitions/code.CodeStandard" }, "codeStandID": { "description": "缂栫爜id", @@ -16448,9 +16712,6 @@ "client_id": { "type": "integer" }, - "codeRule": { - "$ref": "#/definitions/code.CodeStandard" - }, "codeStandID": { "description": "缂栫爜id", "type": "string" @@ -16473,6 +16734,10 @@ }, "quotation_id": { "type": "integer" + }, + "sendTime": { + "description": "鍙戣揣鏃堕棿", + "type": "string" }, "status_id": { "type": "integer" @@ -16711,6 +16976,9 @@ "description": "瀹㈡埛id", "type": "integer" }, + "codeStandID": { + "type": "string" + }, "courierCompanyId": { "description": "鐗╂祦鍏徃", "type": "integer" @@ -16737,6 +17005,10 @@ "invoiceTypeId": { "description": "鍙戠エ绫诲瀷id", "type": "integer" + }, + "number": { + "description": "鍙戠エ缂栧彿", + "type": "string" }, "principalId": { "description": "閿�鍞礋璐d汉id", @@ -16852,9 +17124,6 @@ "properties": { "client_id": { "type": "integer" - }, - "codeRule": { - "$ref": "#/definitions/code.CodeStandard" }, "codeStandID": { "description": "缂栫爜id", @@ -17036,9 +17305,6 @@ "properties": { "client_id": { "type": "integer" - }, - "codeRule": { - "$ref": "#/definitions/code.CodeStandard" }, "codeStandID": { "description": "缂栫爜id", @@ -17401,9 +17667,6 @@ "client_id": { "type": "integer" }, - "codeRule": { - "$ref": "#/definitions/code.CodeStandard" - }, "codeStandID": { "description": "缂栫爜id", "type": "string" @@ -17458,6 +17721,12 @@ }, "process": { "type": "string" + }, + "products": { + "type": "array", + "items": { + "$ref": "#/definitions/model.Product" + } }, "projected_amount": { "type": "number" @@ -17566,14 +17835,22 @@ } } }, + "request.UpdateSalesDetailsStatus": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "status": { + "$ref": "#/definitions/constvar.SalesDetailsStatus" + } + } + }, "request.UpdateSalesLeads": { "type": "object", "properties": { "city_id": { "type": "integer" - }, - "codeRule": { - "$ref": "#/definitions/code.CodeStandard" }, "codeStandID": { "description": "缂栫爜id", @@ -17828,9 +18105,6 @@ "clientId": { "type": "integer" }, - "codeRule": { - "$ref": "#/definitions/code.CodeStandard" - }, "codeStandID": { "description": "缂栫爜id", "type": "string" @@ -17960,9 +18234,6 @@ "description": "瀹㈡埛绫诲瀷ID", "type": "integer" }, - "codeRule": { - "$ref": "#/definitions/code.CodeStandard" - }, "codeStandID": { "description": "缂栫爜id", "type": "string" @@ -18058,9 +18329,6 @@ "clientId": { "type": "integer" }, - "codeRule": { - "$ref": "#/definitions/code.CodeStandard" - }, "codeStandID": { "description": "缂栫爜id", "type": "string" @@ -18128,9 +18396,6 @@ "clientId": { "description": "瀹㈡埛id", "type": "integer" - }, - "codeRule": { - "$ref": "#/definitions/code.CodeStandard" }, "codeStandID": { "description": "缂栫爜id", @@ -18207,7 +18472,7 @@ "description": "鏈嶅姟鏂瑰紡id", "type": "integer" }, - "severity": { + "severityId": { "description": "涓ラ噸绋嬪害id", "type": "integer" }, @@ -18325,9 +18590,6 @@ "properties": { "clientId": { "type": "integer" - }, - "codeRule": { - "$ref": "#/definitions/code.CodeStandard" }, "codeStandID": { "description": "缂栫爜id", -- Gitblit v1.8.0