From 9a7e0a7da01a9f9625ceaca0c61a59c540c6438f Mon Sep 17 00:00:00 2001 From: wangpengfei <274878379@qq.com> Date: 星期五, 18 八月 2023 17:32:10 +0800 Subject: [PATCH] fix --- docs/docs.go | 337 +++++++++++++++++++++++++++++++++++++++++-------------- 1 files changed, 251 insertions(+), 86 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index 3cc0e8f..f65be80 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -1586,7 +1586,7 @@ } } }, - "/api/contract/delete/{id}": { + "/api/contract/delete": { "delete": { "produces": [ "application/json" @@ -1597,11 +1597,13 @@ "summary": "鍒犻櫎鍚堝悓", "parameters": [ { - "type": "integer", "description": "鏌ヨ鍙傛暟", - "name": "id", - "in": "path", - "required": true + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.DeleteContract" + } } ], "responses": { @@ -4008,7 +4010,7 @@ } } }, - "/api/masterOrder/delete/{id}": { + "/api/masterOrder/delete": { "delete": { "produces": [ "application/json" @@ -4019,11 +4021,13 @@ "summary": "鍒犻櫎涓昏鍗�", "parameters": [ { - "type": "integer", "description": "鏌ヨ鍙傛暟", - "name": "id", - "in": "path", - "required": true + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.DeleteMasterOrder" + } } ], "responses": { @@ -5226,7 +5230,7 @@ } } }, - "/api/quotation/delete/{id}": { + "/api/quotation/delete": { "delete": { "produces": [ "application/json" @@ -5237,11 +5241,13 @@ "summary": "鍒犻櫎鎶ヤ环鍗�", "parameters": [ { - "type": "integer", "description": "鏌ヨ鍙傛暟", - "name": "id", - "in": "path", - "required": true + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.DeleteQuotation" + } } ], "responses": { @@ -6379,7 +6385,7 @@ } } }, - "/api/saleChance/delete/{id}": { + "/api/saleChance/delete": { "delete": { "produces": [ "application/json" @@ -6390,11 +6396,13 @@ "summary": "鍒犻櫎閿�鍞満浼�", "parameters": [ { - "type": "integer", "description": "鏌ヨ鍙傛暟", - "name": "id", - "in": "path", - "required": true + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.DeleteSaleChance" + } } ], "responses": { @@ -7075,7 +7083,7 @@ "application/json" ], "tags": [ - "SalesRefund" + "閿�鍞��娆惧崟" ], "summary": "娣诲姞閿�鍞��娆�", "parameters": [ @@ -7099,13 +7107,43 @@ } } }, + "/api/salesRefund/delete": { + "delete": { + "produces": [ + "application/json" + ], + "tags": [ + "閿�鍞��娆惧崟" + ], + "summary": "鎵归噺鍒犻櫎閿�鍞��娆惧崟", + "parameters": [ + { + "description": "鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.CommonIds" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, "/api/salesRefund/delete/{id}": { "delete": { "produces": [ "application/json" ], "tags": [ - "SalesRefund" + "閿�鍞��娆惧崟" ], "summary": "鍒犻櫎閿�鍞��娆�", "parameters": [ @@ -7133,7 +7171,7 @@ "application/json" ], "tags": [ - "SalesRefund" + "閿�鍞��娆惧崟" ], "summary": "閿�鍞��娆惧崟鍒楄〃", "parameters": [ @@ -7175,7 +7213,7 @@ "application/json" ], "tags": [ - "SalesRefund" + "閿�鍞��娆惧崟" ], "summary": "鏇存柊閿�鍞��娆�", "parameters": [ @@ -7984,9 +8022,9 @@ "application/json" ], "tags": [ - "ServiceContractStatus" + "鍚堝悓鐘舵��" ], - "summary": "娣诲姞鏈嶅姟鍚堝悓鐘舵��", + "summary": "娣诲姞鍚堝悓鐘舵��", "parameters": [ { "description": "鏌ヨ鍙傛暟", @@ -8014,9 +8052,9 @@ "application/json" ], "tags": [ - "ServiceContractStatus" + "鍚堝悓鐘舵��" ], - "summary": "鍒犻櫎鏈嶅姟鍚堝悓鐘舵��", + "summary": "鍒犻櫎鍚堝悓鐘舵��", "parameters": [ { "type": "integer", @@ -8042,22 +8080,66 @@ "application/json" ], "tags": [ - "ServiceContractStatus" + "鍚堝悓鐘舵��" ], - "summary": "鑾峰彇鏈嶅姟鍚堝悓鐘舵�佸垪琛�", + "summary": "鑾峰彇鍚堝悓鐘舵�佸垪琛�", + "parameters": [ + { + "type": "string", + "name": "keyword", + "in": "query" + }, + { + "enum": [ + "" + ], + "type": "string", + "x-enum-varnames": [ + "ServiceContractStatusKeywordCustomerName" + ], + "name": "keywordType", + "in": "query" + }, + { + "type": "integer", + "description": "椤电爜", + "name": "page", + "in": "query" + }, + { + "type": "integer", + "description": "姣忛〉澶у皬", + "name": "pageSize", + "in": "query" + }, + { + "enum": [ + "" + ], + "type": "string", + "x-enum-varnames": [ + "ServiceContractStatusQueryClassExpireLessThen60Days" + ], + "name": "queryClass", + "in": "query" + } + ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { - "$ref": "#/definitions/contextx.Response" + "$ref": "#/definitions/response.ListResponse" }, { "type": "object", "properties": { "data": { - "$ref": "#/definitions/response.ServiceContractStatusResponse" + "type": "array", + "items": { + "$ref": "#/definitions/model.ServiceContractStatus" + } } } } @@ -8073,9 +8155,9 @@ "application/json" ], "tags": [ - "ServiceContractStatus" + "鍚堝悓鐘舵��" ], - "summary": "鏇存柊鏈嶅姟鍚堝悓鐘舵��", + "summary": "鏇存柊鍚堝悓鐘舵��", "parameters": [ { "description": "鏌ヨ鍙傛暟", @@ -8083,7 +8165,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/request.UpdateServiceContractStatuss" + "$ref": "#/definitions/request.UpdateServiceContractStatus" } } ], @@ -9306,7 +9388,7 @@ } } }, - "/api/subOrder/delete/{id}": { + "/api/subOrder/delete": { "delete": { "produces": [ "application/json" @@ -9317,11 +9399,13 @@ "summary": "鍒犻櫎瀛愯鍗�", "parameters": [ { - "type": "integer", "description": "鏌ヨ鍙傛暟", - "name": "id", - "in": "path", - "required": true + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.DeleteSubOrder" + } } ], "responses": { @@ -10485,6 +10569,24 @@ "ServiceContractQueryClassExpiredBefore60Day" ] }, + "constvar.ServiceContractStatusKeywordType": { + "type": "string", + "enum": [ + "" + ], + "x-enum-varnames": [ + "ServiceContractStatusKeywordCustomerName" + ] + }, + "constvar.ServiceContractStatusQueryClass": { + "type": "string", + "enum": [ + "" + ], + "x-enum-varnames": [ + "ServiceContractStatusQueryClassExpireLessThen60Days" + ] + }, "constvar.ServiceFeeKeywordType": { "type": "string", "enum": [ @@ -10711,6 +10813,10 @@ "model.Client": { "type": "object", "properties": { + "_": { + "description": "The date when the item was deleted\nexample: 2023-08-10 15:48:25", + "type": "string" + }, "business_scope": { "type": "string" }, @@ -10756,6 +10862,13 @@ "country_id": { "type": "integer" }, + "created_at": { + "description": "The date when the item was created\nexample: 2023-08-10 15:48:25", + "type": "string" + }, + "creator_id": { + "type": "integer" + }, "detail_address": { "type": "string" }, @@ -10778,6 +10891,7 @@ } }, "id": { + "description": "The ID of the item\nexample: 1", "type": "integer" }, "industry": { @@ -10833,6 +10947,10 @@ }, "service_member_id": { "type": "integer" + }, + "updated_at": { + "description": "The date when the item was last updated\nexample: 2023-08-10 15:48:25", + "type": "string" } } }, @@ -12743,12 +12861,13 @@ "description": "闂鎻忚堪", "type": "string" }, - "product": { - "$ref": "#/definitions/model.Product" + "productName": { + "description": "浜у搧鍚嶇О", + "type": "string" }, - "productId": { - "description": "浜у搧id", - "type": "integer" + "productTypeName": { + "description": "浜у搧鍒嗙被鍚嶇О", + "type": "string" }, "realTime": { "description": "瀹為檯澶勭悊鏃堕棿", @@ -12778,6 +12897,14 @@ "serviceContractId": { "description": "鏈嶅姟鍚堝悓id", "type": "integer" + }, + "serviceMan": { + "description": "鏈嶅姟浜哄憳", + "allOf": [ + { + "$ref": "#/definitions/model.User" + } + ] }, "serviceManId": { "description": "鏈嶅姟浜哄憳", @@ -14222,10 +14349,10 @@ }, "request.AddServiceContractStatus": { "type": "object", - "required": [ - "name" - ], "properties": { + "id": { + "type": "integer" + }, "name": { "type": "string" } @@ -14443,9 +14570,13 @@ "description": "闂鎻忚堪", "type": "string" }, - "productId": { - "description": "浜у搧id", - "type": "integer" + "productName": { + "description": "浜у搧鍚嶇О", + "type": "string" + }, + "productTypeName": { + "description": "浜у搧鍒嗙被鍚嶇О", + "type": "string" }, "realTime": { "description": "瀹為檯澶勭悊鏃堕棿", @@ -14826,6 +14957,17 @@ } } }, + "request.DeleteContract": { + "type": "object", + "properties": { + "ids": { + "type": "array", + "items": { + "type": "integer" + } + } + } + }, "request.DeleteCountry": { "type": "object", "properties": { @@ -14846,7 +14988,40 @@ } } }, + "request.DeleteMasterOrder": { + "type": "object", + "properties": { + "ids": { + "type": "array", + "items": { + "type": "integer" + } + } + } + }, "request.DeleteOrderManage": { + "type": "object", + "properties": { + "ids": { + "type": "array", + "items": { + "type": "integer" + } + } + } + }, + "request.DeleteQuotation": { + "type": "object", + "properties": { + "ids": { + "type": "array", + "items": { + "type": "integer" + } + } + } + }, + "request.DeleteSaleChance": { "type": "object", "properties": { "ids": { @@ -14880,6 +15055,17 @@ } }, "request.DeleteServiceFollowup": { + "type": "object", + "properties": { + "ids": { + "type": "array", + "items": { + "type": "integer" + } + } + } + }, + "request.DeleteSubOrder": { "type": "object", "properties": { "ids": { @@ -15003,7 +15189,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\": \"閲嶈绾у埆\", \"is_first\": \"鏄惁鏄瑕佽仈绯讳汉\"}", + "description": "鎼滅储鏉′欢: map[string]interface{}{\"name\": \"xxx\"}; {\"name\": \"瀹㈡埛鍚嶇О\", \"phone\": \"鎵嬫満鍙风爜\", \"detail_address\":\"璇︾粏鍦板潃\", \"next_visit_time\":\"涓嬪洖鍥炶鏃ユ湡\", \"member_name\": \"閿�鍞礋璐d汉\", \"client_status\": \"瀹㈡埛鐘舵�乗", \"client_level\": \"閲嶈绾у埆\", \"is_first\": \"鏄惁鏄瑕佽仈绯讳汉\", \"client_id\": \"clientId 鐢ㄤ簬杩斿洖棣栬鑱旂郴浜篭"}", "type": "object", "additionalProperties": true } @@ -15061,7 +15247,7 @@ "type": "integer" }, "search_map": { - "description": "鎼滅储鏉′欢: map[string]interface{}{\"name\": \"xxx\"}; {\"topic\": \"璺熻繘涓婚\", \"member_name\": \"璺熻繘浜篭", \"client_name\": \"瀹㈡埛鍚嶇О\", \"client_status\": \"瀹㈡埛鐘舵�乗", \"follow_time\": \"璺熻繘鏃堕棿\", \"next_follow_time\": \"涓嬫璺熻繘鏃堕棿\", \"record\": \"璺熻繘璁板綍\", \"phone\": \"鑱旂郴浜虹數璇漒", \"contact_name\": \"鑱旂郴浜哄鍚峔"}", + "description": "鎼滅储鏉′欢: map[string]interface{}{\"name\": \"xxx\"}; {\"topic\": \"璺熻繘涓婚\", \"member_name\": \"璺熻繘浜篭", \"client_name\": \"瀹㈡埛鍚嶇О\", \"client_status\": \"瀹㈡埛鐘舵�乗", \"follow_time\": \"璺熻繘鏃堕棿\", \"next_follow_time\": \"涓嬫璺熻繘鏃堕棿\", \"record\": \"璺熻繘璁板綍\", \"phone\": \"鑱旂郴浜虹數璇漒", \"contact_name\": \"鑱旂郴浜哄鍚峔", \"sales_leads_id\": \"閿�鍞嚎绱d\", \"sale_chance_id\": \"閿�鍞満浼歩d\"}", "type": "object", "additionalProperties": true } @@ -15552,6 +15738,10 @@ }, "request.SalesRefund": { "type": "object", + "required": [ + "sourceId", + "sourceType" + ], "properties": { "bankAccountId": { "description": "璐︽埛id", @@ -15590,7 +15780,7 @@ "type": "integer" }, "sourceType": { - "description": "鏉ユ簮绫诲瀷锛�1閿�鍞槑缁嗗崟2鏈嶅姟鍚堝悓3閿�鍞彂绁�4鏀舵璁″垝5鍑哄簱鍗曪級", + "description": "鏉ユ簮绫诲瀷锛�1閿�鍞��娆惧崟锛�", "allOf": [ { "$ref": "#/definitions/constvar.RefundSourceType" @@ -17434,30 +17624,12 @@ }, "request.UpdateServiceContractStatus": { "type": "object", - "required": [ - "id", - "name" - ], "properties": { "id": { "type": "integer" }, "name": { "type": "string" - } - } - }, - "request.UpdateServiceContractStatuss": { - "type": "object", - "required": [ - "service_contract_status" - ], - "properties": { - "service_contract_status": { - "type": "array", - "items": { - "$ref": "#/definitions/request.UpdateServiceContractStatus" - } } } }, @@ -17698,9 +17870,13 @@ "description": "闂鎻忚堪", "type": "string" }, - "productId": { - "description": "浜у搧id", - "type": "integer" + "productName": { + "description": "浜у搧鍚嶇О", + "type": "string" + }, + "productTypeName": { + "description": "浜у搧鍒嗙被鍚嶇О", + "type": "string" }, "realTime": { "description": "瀹為檯澶勭悊鏃堕棿", @@ -18745,17 +18921,6 @@ "type": "array", "items": { "$ref": "#/definitions/model.Satisfaction" - } - } - } - }, - "response.ServiceContractStatusResponse": { - "type": "object", - "properties": { - "list": { - "type": "array", - "items": { - "$ref": "#/definitions/model.ServiceContractStatus" } } } -- Gitblit v1.8.0