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 | 628 +++++++++++++++++++++++++++++++++++++++++--------------- 1 files changed, 459 insertions(+), 169 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index a511f91..8e464c9 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": { @@ -2725,76 +2727,61 @@ } } }, - "/api/file/list": { - "get": { + "/api/file/download": { + "post": { "produces": [ "application/json" ], "tags": [ "闄勪欢绠$悊" ], - "summary": "鑾峰彇闄勪欢鍒楄〃", + "summary": "闄勪欢涓嬭浇", "parameters": [ { - "type": "string", - "name": "keyword", - "in": "query" - }, - { - "enum": [ - "" - ], - "type": "string", - "x-enum-varnames": [ - "FileKeywordCustomerName" - ], - "name": "keywordType", - "in": "query" - }, - { - "type": "integer", - "description": "椤电爜", - "name": "page", - "in": "query" - }, - { - "type": "integer", - "description": "姣忛〉澶у皬", - "name": "pageSize", - "in": "query" - }, - { - "enum": [ - "" - ], - "type": "string", - "x-enum-varnames": [ - "FileQueryClassExpireLessThen60Days" - ], - "name": "queryClass", - "in": "query" + "description": "鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.DownloadFile" + } } ], "responses": { "200": { "description": "OK", "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.ListResponse" - }, - { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "$ref": "#/definitions/model.File" - } - } - } - } - ] + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/api/file/preview": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "闄勪欢绠$悊" + ], + "summary": "闄勪欢棰勮", + "parameters": [ + { + "description": "鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.DownloadFile" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" } } } @@ -2830,7 +2817,7 @@ } } }, - "/api/followRecord/delete/{id}": { + "/api/followRecord/delete": { "delete": { "produces": [ "application/json" @@ -2841,11 +2828,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 +4001,7 @@ } } }, - "/api/orderManage/delete/{id}": { + "/api/orderManage/delete": { "delete": { "produces": [ "application/json" @@ -4023,11 +4012,13 @@ "summary": "鍒犻櫎宸ュ崟", "parameters": [ { - "type": "integer", "description": "鏌ヨ鍙傛暟", - "name": "id", - "in": "path", - "required": true + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.DeleteOrderManage" + } } ], "responses": { @@ -4760,6 +4751,106 @@ "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/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" + } + } + } + } + ] } } } @@ -6604,7 +6695,7 @@ } } }, - "/api/salesLeads/delete/{id}": { + "/api/salesLeads/delete": { "delete": { "produces": [ "application/json" @@ -6615,11 +6706,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 +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" } } } @@ -7481,7 +7604,7 @@ } } }, - "/api/serviceContract/delete/{id}": { + "/api/serviceContract/delete": { "delete": { "produces": [ "application/json" @@ -7492,11 +7615,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 +7974,7 @@ } } }, - "/api/serviceFeeManage/delete/{id}": { + "/api/serviceFeeManage/delete": { "delete": { "produces": [ "application/json" @@ -7860,11 +7985,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 +8106,7 @@ } } }, - "/api/serviceFollowup/delete/{id}": { + "/api/serviceFollowup/delete": { "delete": { "produces": [ "application/json" @@ -7990,11 +8117,13 @@ "summary": "鍒犻櫎鏈嶅姟璺熻繘", "parameters": [ { - "type": "integer", "description": "鏌ヨ鍙傛暟", - "name": "id", - "in": "path", - "required": true + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.DeleteServiceFollowup" + } } ], "responses": { @@ -9426,24 +9555,6 @@ "FaqQueryClassExpireLessThen60Days" ] }, - "constvar.FileKeywordType": { - "type": "string", - "enum": [ - "" - ], - "x-enum-varnames": [ - "FileKeywordCustomerName" - ] - }, - "constvar.FileQueryClass": { - "type": "string", - "enum": [ - "" - ], - "x-enum-varnames": [ - "FileQueryClassExpireLessThen60Days" - ] - }, "constvar.InvoiceKeywordType": { "type": "string", "enum": [ @@ -9460,6 +9571,17 @@ ], "x-enum-varnames": [ "InvoiceQueryClassExpireLessThen60Days" + ] + }, + "constvar.InvoiceSourceType": { + "type": "integer", + "enum": [ + 1, + 2 + ], + "x-enum-varnames": [ + "InvoiceSourceTypeSaleDetail", + "InvoiceSourceTypeServiceContract" ] }, "constvar.InvoiceStatusKeywordType": { @@ -9537,27 +9659,28 @@ "constvar.SalesStatus": { "type": "integer", "enum": [ + 0, 1, 2, 3, 4, - 5, - 6 + -1 ], "x-enum-comments": { "SalesStatusFail": "澶辫触", "SalesStatusIng": "杩涜涓�", "SalesStatusLevelUptoClient": "鍗囩骇涓哄鎴�", "SalesStatusLevelUptoClientAndSalesChance": "鍗囩骇涓哄鎴峰苟涓旀湁閿�鍞満浼�", + "SalesStatusNew": "鏂板缓", "SalesStatusSuccess": "鎴愬姛" }, "x-enum-varnames": [ "SalesStatusNew", "SalesStatusIng", "SalesStatusSuccess", - "SalesStatusFail", "SalesStatusLevelUptoClient", - "SalesStatusLevelUptoClientAndSalesChance" + "SalesStatusLevelUptoClientAndSalesChance", + "SalesStatusFail" ] }, "constvar.ServiceContractKeywordType": { @@ -9837,6 +9960,9 @@ }, "latest_service_time": { "type": "string" + }, + "member": { + "$ref": "#/definitions/model.User" }, "member_id": { "type": "integer" @@ -10214,50 +10340,6 @@ } } }, - "model.File": { - "type": "object", - "properties": { - "bucket": { - "description": "瀵硅薄瀛樺偍bucket", - "type": "string" - }, - "downloadCount": { - "description": "涓嬫娆℃暟", - "type": "integer" - }, - "filePath": { - "description": "鏂囦欢璺緞", - "type": "string" - }, - "fileType": { - "description": "鏂囦欢绫诲瀷", - "type": "string" - }, - "key": { - "description": "瀵硅薄瀛樺偍key", - "type": "string" - }, - "name": { - "type": "string" - }, - "previewCount": { - "description": "棰勮娆℃暟", - "type": "integer" - }, - "size": { - "description": "鏂囦欢澶у皬", - "type": "integer" - }, - "sourceId": { - "description": "鏉ユ簮id", - "type": "integer" - }, - "sourceType": { - "description": "闄勪欢鏉ユ簮", - "type": "string" - } - } - }, "model.FollowRecord": { "type": "object", "properties": { @@ -10381,7 +10463,11 @@ }, "sourceType": { "description": "婧愬崟绫诲瀷(1閿�鍞槑缁嗗崟2鏈嶅姟鍚堝悓)", - "type": "integer" + "allOf": [ + { + "$ref": "#/definitions/constvar.InvoiceSourceType" + } + ] }, "subject": { "description": "涓婚", @@ -11094,6 +11180,9 @@ "province_id": { "type": "integer" }, + "reason": { + "type": "string" + }, "region": { "$ref": "#/definitions/model.Region" }, @@ -11277,6 +11366,18 @@ "model.ServiceContract": { "type": "object", "properties": { + "amountInvoiced": { + "description": "宸插紑绁ㄩ噾棰�", + "type": "number" + }, + "amountReceivable": { + "description": "搴旀敹閲戦", + "type": "number" + }, + "amountReceived": { + "description": "宸叉敹閲戦", + "type": "number" + }, "clientId": { "type": "integer" }, @@ -11725,6 +11826,44 @@ } } }, + "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" + } + } + }, "request.AddAccountId": { "type": "object", "required": [ @@ -11862,6 +12001,10 @@ "representative": { "description": "娉曚汉浠h〃", "type": "string" + }, + "sales_leads_id": { + "description": "閿�鍞嚎绱D", + "type": "integer" }, "service_member_id": { "description": "鏈嶅姟璐熻矗浜篒D", @@ -12160,7 +12303,11 @@ }, "sourceType": { "description": "婧愬崟绫诲瀷(1閿�鍞槑缁嗗崟2鏈嶅姟鍚堝悓)", - "type": "integer" + "allOf": [ + { + "$ref": "#/definitions/constvar.InvoiceSourceType" + } + ] }, "subject": { "description": "涓婚", @@ -12907,6 +13054,10 @@ "description": "娉曚汉浠h〃", "type": "string" }, + "sales_leads_id": { + "description": "閿�鍞嚎绱D", + "type": "integer" + }, "service_member_id": { "description": "鏈嶅姟璐熻矗浜篒D", "type": "integer" @@ -13185,13 +13336,17 @@ "request.Assign": { "type": "object", "properties": { - "id": { - "type": "integer" + "ids": { + "type": "array", + "items": { + "type": "integer" + } }, "member_id": { "type": "integer" }, "type": { + "description": "绫诲瀷: client: 瀹㈡埛; salesLead: 閿�鍞嚎绱�; contact: 鑱旂郴浜�; followRecord: 璺熻繘璁板綍", "type": "string" } } @@ -13328,6 +13483,17 @@ } } }, + "request.DeleteContact": { + "type": "object", + "properties": { + "ids": { + "type": "array", + "items": { + "type": "integer" + } + } + } + }, "request.DeleteCountry": { "type": "object", "properties": { @@ -13337,11 +13503,104 @@ } } }, + "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" + } + } + } + }, + "request.DownloadFile": { + "type": "object", + "required": [ + "id", + "key", + "sourceId", + "sourceType" + ], + "properties": { + "id": { + "description": "闄勪欢id", + "type": "integer" + }, + "key": { + "description": "闄勪欢瀛樺偍key", + "type": "string" + }, + "sourceId": { + "description": "鏉ユ簮id", + "type": "integer" + }, + "sourceType": { + "description": "闄勪欢鏉ユ簮", "type": "string" } } @@ -13396,9 +13655,6 @@ "request.GetClientList": { "type": "object", "properties": { - "keyword": { - "type": "string" - }, "page": { "description": "椤电爜", "type": "integer" @@ -13406,6 +13662,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 +13839,6 @@ "request.GetSalesLeadsList": { "type": "object", "properties": { - "keyword": { - "type": "string" - }, "page": { "description": "椤电爜", "type": "integer" @@ -13588,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 } } }, @@ -13769,6 +14032,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 +14445,10 @@ "representative": { "description": "娉曚汉浠h〃", "type": "string" + }, + "sales_leads_id": { + "description": "閿�鍞嚎绱D", + "type": "integer" }, "service_member_id": { "description": "鏈嶅姟璐熻矗浜篒D", @@ -15803,6 +16089,10 @@ "description": "娉曚汉浠h〃", "type": "string" }, + "sales_leads_id": { + "description": "閿�鍞嚎绱D", + "type": "integer" + }, "service_member_id": { "description": "鏈嶅姟璐熻矗浜篒D", "type": "integer" -- Gitblit v1.8.0