From 1041c15ba9f55e1be4078fc24cef9acfbc0a4326 Mon Sep 17 00:00:00 2001 From: wangpengfei <274878379@qq.com> Date: 星期三, 09 八月 2023 17:02:05 +0800 Subject: [PATCH] fix --- docs/docs.go | 211 +++++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 204 insertions(+), 7 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index 7b8fec7..8e464c9 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -4756,6 +4756,106 @@ } } }, + "/api/product/info": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "浜у搧" + ], + "summary": "鑾峰彇浜у搧璇︽儏", + "parameters": [ + { + "type": "string", + "description": "鍙傛暟", + "name": "productNumber", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/contextx.Response" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/product.Product" + } + } + } + ] + } + } + } + } + }, + "/api/product/list": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "浜у搧" + ], + "summary": "鑾峰彇浜у搧鍒楄〃", + "parameters": [ + { + "type": "integer", + "description": "椤电爜", + "name": "page", + "in": "query" + }, + { + "type": "integer", + "description": "姣忛〉澶у皬", + "name": "pageSize", + "in": "query" + }, + { + "type": "string", + "description": "浜у搧鍚嶇О", + "name": "productName", + "in": "query" + }, + { + "type": "string", + "description": "浜у搧缂栫爜", + "name": "productNumber", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.ListResponse" + }, + { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/product.Product" + } + } + } + } + ] + } + } + } + } + }, "/api/province/add": { "post": { "produces": [ @@ -6662,6 +6762,36 @@ } } ] + } + } + } + } + }, + "/api/salesLeads/push": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "SalesLeads" + ], + "summary": "鎺ㄨ繘閿�鍞嚎绱�", + "parameters": [ + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.PushSalesLeads" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" } } } @@ -9529,12 +9659,12 @@ "constvar.SalesStatus": { "type": "integer", "enum": [ - -1, + 0, 1, 2, 3, 4, - 5 + -1 ], "x-enum-comments": { "SalesStatusFail": "澶辫触", @@ -9545,12 +9675,12 @@ "SalesStatusSuccess": "鎴愬姛" }, "x-enum-varnames": [ - "SalesStatusFail", "SalesStatusNew", "SalesStatusIng", "SalesStatusSuccess", "SalesStatusLevelUptoClient", - "SalesStatusLevelUptoClientAndSalesChance" + "SalesStatusLevelUptoClientAndSalesChance", + "SalesStatusFail" ] }, "constvar.ServiceContractKeywordType": { @@ -9830,6 +9960,9 @@ }, "latest_service_time": { "type": "string" + }, + "member": { + "$ref": "#/definitions/model.User" }, "member_id": { "type": "integer" @@ -11047,6 +11180,9 @@ "province_id": { "type": "integer" }, + "reason": { + "type": "string" + }, "region": { "$ref": "#/definitions/model.Region" }, @@ -11686,6 +11822,44 @@ "type": "string" }, "uuid": { + "type": "string" + } + } + }, + "product.Product": { + "type": "object", + "properties": { + "Amount": { + "description": "搴撳瓨鍓╀綑閲�", + "type": "number" + }, + "IsSale": { + "description": "鏄惁閿�鍞�", + "type": "boolean" + }, + "MaterialMode": { + "description": "鐗╂枡绫诲瀷", + "type": "string" + }, + "MinInventory": { + "description": "瀹夊叏搴撳瓨", + "type": "integer" + }, + "Name": { + "type": "string" + }, + "Number": { + "type": "string" + }, + "PurchaseType": { + "description": "閲囪喘绫诲瀷", + "type": "string" + }, + "SalePrice": { + "description": "閿�鍞环鏍�", + "type": "number" + }, + "Unit": { "type": "string" } } @@ -13172,6 +13346,7 @@ "type": "integer" }, "type": { + "description": "绫诲瀷: client: 瀹㈡埛; salesLead: 閿�鍞嚎绱�; contact: 鑱旂郴浜�; followRecord: 璺熻繘璁板綍", "type": "string" } } @@ -13489,6 +13664,7 @@ "type": "integer" }, "search_map": { + "description": "鎼滅储鏉′欢: map[string]interface{}{\"name\": \"xxx\"}; {\"name\": \"瀹㈡埛鍚嶇О\", \"phone\": \"鎵嬫満鍙风爜\", \"detail_address\":\"璇︾粏鍦板潃\", \"next_visit_time\":\"涓嬪洖鍥炶鏃ユ湡\", \"member_name\": \"閿�鍞礋璐d汉\", \"client_status\": \"瀹㈡埛鐘舵�乗", \"client_level\": \"閲嶈绾у埆\"}", "type": "object", "additionalProperties": true } @@ -13663,9 +13839,6 @@ "request.GetSalesLeadsList": { "type": "object", "properties": { - "keyword": { - "type": "string" - }, "page": { "description": "椤电爜", "type": "integer" @@ -13673,6 +13846,11 @@ "pageSize": { "description": "姣忛〉澶у皬", "type": "integer" + }, + "search_map": { + "description": "鎼滅储鏉′欢: map[string]interface{}{\"name\": \"xxx\"} {\"name\": \"瀹㈡埛鍚嶇О\", \"number\": \"閿�鍞嚎绱㈢紪鍙穃", \"contact_name\": \"鑱旂郴浜哄鍚峔", \"phone\": \"鎵嬫満鍙风爜\", \"sales_resources\": \"鍟嗘満鏉ユ簮\", \"city\": \"鍩庡競\", \"province\": \"鐪佷唤\", \"member_name\": \"璐熻矗浜篭"}", + "type": "object", + "additionalProperties": true } } }, @@ -13857,6 +14035,25 @@ } } }, + "request.PushSalesLeads": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "reason": { + "type": "string" + }, + "step": { + "description": "鍟嗘満鐘舵��: 1: 璺熻繘涓�; -1:澶辫触", + "allOf": [ + { + "$ref": "#/definitions/constvar.SalesStatus" + } + ] + } + } + }, "request.Register": { "type": "object", "properties": { -- Gitblit v1.8.0