From a749e859e27e1046a4e018baadbe18a7c5e01b0d Mon Sep 17 00:00:00 2001 From: wangpengfei <274878379@qq.com> Date: 星期三, 09 八月 2023 14:30:23 +0800 Subject: [PATCH] fix --- docs/docs.go | 301 +++++++++++++++++++++++++++++++++++++++++-------- 1 files changed, 251 insertions(+), 50 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index a511f91..1f6e1d3 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -143,7 +143,7 @@ "tags": [ "Assign" ], - "summary": "瀹℃牳", + "summary": "鍒嗛厤", "parameters": [ { "description": "鏌ヨ鍙傛暟", @@ -1272,7 +1272,7 @@ } } }, - "/api/contact/delete/{id}": { + "/api/contact/delete": { "delete": { "produces": [ "application/json" @@ -1283,11 +1283,13 @@ "summary": "鍒犻櫎鑱旂郴浜�", "parameters": [ { - "type": "integer", "description": "鏌ヨ鍙傛暟", - "name": "id", - "in": "path", - "required": true + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.DeleteContact" + } } ], "responses": { @@ -2830,7 +2832,7 @@ } } }, - "/api/followRecord/delete/{id}": { + "/api/followRecord/delete": { "delete": { "produces": [ "application/json" @@ -2841,11 +2843,13 @@ "summary": "鍒犻櫎璺熻繘璁板綍", "parameters": [ { - "type": "string", - "description": "璺熻繘璁板綍id", - "name": "id", - "in": "path", - "required": true + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.DeleteFollowRecord" + } } ], "responses": { @@ -4012,7 +4016,7 @@ } } }, - "/api/orderManage/delete/{id}": { + "/api/orderManage/delete": { "delete": { "produces": [ "application/json" @@ -4023,11 +4027,13 @@ "summary": "鍒犻櫎宸ュ崟", "parameters": [ { - "type": "integer", "description": "鏌ヨ鍙傛暟", - "name": "id", - "in": "path", - "required": true + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.DeleteOrderManage" + } } ], "responses": { @@ -6604,7 +6610,7 @@ } } }, - "/api/salesLeads/delete/{id}": { + "/api/salesLeads/delete": { "delete": { "produces": [ "application/json" @@ -6615,11 +6621,13 @@ "summary": "鍒犻櫎閿�鍞嚎绱�", "parameters": [ { - "type": "integer", "description": "鏌ヨ鍙傛暟", - "name": "id", - "in": "path", - "required": true + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.DeleteSalesLeads" + } } ], "responses": { @@ -6669,6 +6677,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" } } } @@ -7481,7 +7519,7 @@ } } }, - "/api/serviceContract/delete/{id}": { + "/api/serviceContract/delete": { "delete": { "produces": [ "application/json" @@ -7492,11 +7530,13 @@ "summary": "鍒犻櫎鏈嶅姟鍚堝悓", "parameters": [ { - "type": "integer", "description": "鏌ヨ鍙傛暟", - "name": "id", - "in": "path", - "required": true + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.DeleteserviceContract" + } } ], "responses": { @@ -7849,7 +7889,7 @@ } } }, - "/api/serviceFeeManage/delete/{id}": { + "/api/serviceFeeManage/delete": { "delete": { "produces": [ "application/json" @@ -7860,11 +7900,13 @@ "summary": "鍒犻櫎鏈嶅姟璐圭鐞�", "parameters": [ { - "type": "integer", "description": "鏌ヨ鍙傛暟", - "name": "id", - "in": "path", - "required": true + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.DeleteServiceFeeManage" + } } ], "responses": { @@ -7979,7 +8021,7 @@ } } }, - "/api/serviceFollowup/delete/{id}": { + "/api/serviceFollowup/delete": { "delete": { "produces": [ "application/json" @@ -7990,11 +8032,13 @@ "summary": "鍒犻櫎鏈嶅姟璺熻繘", "parameters": [ { - "type": "integer", "description": "鏌ヨ鍙傛暟", - "name": "id", - "in": "path", - "required": true + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.DeleteServiceFollowup" + } } ], "responses": { @@ -9462,6 +9506,17 @@ "InvoiceQueryClassExpireLessThen60Days" ] }, + "constvar.InvoiceSourceType": { + "type": "integer", + "enum": [ + 1, + 2 + ], + "x-enum-varnames": [ + "InvoiceSourceTypeSaleDetail", + "InvoiceSourceTypeServiceContract" + ] + }, "constvar.InvoiceStatusKeywordType": { "type": "string", "enum": [ @@ -9537,25 +9592,26 @@ "constvar.SalesStatus": { "type": "integer", "enum": [ + -1, 1, 2, 3, 4, - 5, - 6 + 5 ], "x-enum-comments": { "SalesStatusFail": "澶辫触", "SalesStatusIng": "杩涜涓�", "SalesStatusLevelUptoClient": "鍗囩骇涓哄鎴�", "SalesStatusLevelUptoClientAndSalesChance": "鍗囩骇涓哄鎴峰苟涓旀湁閿�鍞満浼�", + "SalesStatusNew": "鏂板缓", "SalesStatusSuccess": "鎴愬姛" }, "x-enum-varnames": [ + "SalesStatusFail", "SalesStatusNew", "SalesStatusIng", "SalesStatusSuccess", - "SalesStatusFail", "SalesStatusLevelUptoClient", "SalesStatusLevelUptoClientAndSalesChance" ] @@ -9837,6 +9893,9 @@ }, "latest_service_time": { "type": "string" + }, + "member": { + "$ref": "#/definitions/model.User" }, "member_id": { "type": "integer" @@ -10381,7 +10440,11 @@ }, "sourceType": { "description": "婧愬崟绫诲瀷(1閿�鍞槑缁嗗崟2鏈嶅姟鍚堝悓)", - "type": "integer" + "allOf": [ + { + "$ref": "#/definitions/constvar.InvoiceSourceType" + } + ] }, "subject": { "description": "涓婚", @@ -11094,6 +11157,9 @@ "province_id": { "type": "integer" }, + "reason": { + "type": "string" + }, "region": { "$ref": "#/definitions/model.Region" }, @@ -11277,6 +11343,18 @@ "model.ServiceContract": { "type": "object", "properties": { + "amountInvoiced": { + "description": "宸插紑绁ㄩ噾棰�", + "type": "number" + }, + "amountReceivable": { + "description": "搴旀敹閲戦", + "type": "number" + }, + "amountReceived": { + "description": "宸叉敹閲戦", + "type": "number" + }, "clientId": { "type": "integer" }, @@ -11863,6 +11941,10 @@ "description": "娉曚汉浠h〃", "type": "string" }, + "sales_leads_id": { + "description": "閿�鍞嚎绱D", + "type": "integer" + }, "service_member_id": { "description": "鏈嶅姟璐熻矗浜篒D", "type": "integer" @@ -12160,7 +12242,11 @@ }, "sourceType": { "description": "婧愬崟绫诲瀷(1閿�鍞槑缁嗗崟2鏈嶅姟鍚堝悓)", - "type": "integer" + "allOf": [ + { + "$ref": "#/definitions/constvar.InvoiceSourceType" + } + ] }, "subject": { "description": "涓婚", @@ -12907,6 +12993,10 @@ "description": "娉曚汉浠h〃", "type": "string" }, + "sales_leads_id": { + "description": "閿�鍞嚎绱D", + "type": "integer" + }, "service_member_id": { "description": "鏈嶅姟璐熻矗浜篒D", "type": "integer" @@ -13185,8 +13275,11 @@ "request.Assign": { "type": "object", "properties": { - "id": { - "type": "integer" + "ids": { + "type": "array", + "items": { + "type": "integer" + } }, "member_id": { "type": "integer" @@ -13328,6 +13421,17 @@ } } }, + "request.DeleteContact": { + "type": "object", + "properties": { + "ids": { + "type": "array", + "items": { + "type": "integer" + } + } + } + }, "request.DeleteCountry": { "type": "object", "properties": { @@ -13337,12 +13441,78 @@ } } }, + "request.DeleteFollowRecord": { + "type": "object", + "properties": { + "ids": { + "type": "array", + "items": { + "type": "integer" + } + } + } + }, + "request.DeleteOrderManage": { + "type": "object", + "properties": { + "ids": { + "type": "array", + "items": { + "type": "integer" + } + } + } + }, + "request.DeleteSalesLeads": { + "type": "object", + "properties": { + "ids": { + "type": "array", + "items": { + "type": "integer" + } + } + } + }, + "request.DeleteServiceFeeManage": { + "type": "object", + "properties": { + "ids": { + "type": "array", + "items": { + "type": "integer" + } + } + } + }, + "request.DeleteServiceFollowup": { + "type": "object", + "properties": { + "ids": { + "type": "array", + "items": { + "type": "integer" + } + } + } + }, "request.DeleteUserReq": { "type": "object", "properties": { "userId": { "description": "鐢ㄦ埛ID", "type": "string" + } + } + }, + "request.DeleteserviceContract": { + "type": "object", + "properties": { + "ids": { + "type": "array", + "items": { + "type": "integer" + } } } }, @@ -13396,9 +13566,6 @@ "request.GetClientList": { "type": "object", "properties": { - "keyword": { - "type": "string" - }, "page": { "description": "椤电爜", "type": "integer" @@ -13406,6 +13573,11 @@ "pageSize": { "description": "姣忛〉澶у皬", "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 } } }, @@ -13578,9 +13750,6 @@ "request.GetSalesLeadsList": { "type": "object", "properties": { - "keyword": { - "type": "string" - }, "page": { "description": "椤电爜", "type": "integer" @@ -13588,6 +13757,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 } } }, @@ -13769,6 +13943,25 @@ }, "subOrderId": { "type": "integer" + } + } + }, + "request.PushSalesLeads": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "reason": { + "type": "string" + }, + "step": { + "description": "鍟嗘満鐘舵��: 1: 璺熻繘涓�; -1:澶辫触", + "allOf": [ + { + "$ref": "#/definitions/constvar.SalesStatus" + } + ] } } }, @@ -14163,6 +14356,10 @@ "representative": { "description": "娉曚汉浠h〃", "type": "string" + }, + "sales_leads_id": { + "description": "閿�鍞嚎绱D", + "type": "integer" }, "service_member_id": { "description": "鏈嶅姟璐熻矗浜篒D", @@ -15803,6 +16000,10 @@ "description": "娉曚汉浠h〃", "type": "string" }, + "sales_leads_id": { + "description": "閿�鍞嚎绱D", + "type": "integer" + }, "service_member_id": { "description": "鏈嶅姟璐熻矗浜篒D", "type": "integer" -- Gitblit v1.8.0