From 5fa1de02759b9646e8987312736699755990e960 Mon Sep 17 00:00:00 2001 From: liujiandao <274878379@qq.com> Date: 星期五, 13 十月 2023 15:30:22 +0800 Subject: [PATCH] bug修改 --- docs/docs.go | 567 ++++++++++++++++++++++++++++++++++++++++++++++++------- 1 files changed, 488 insertions(+), 79 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index 049bf2e..795c9c9 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -1272,6 +1272,54 @@ } } }, + "/api/code/getCodeList": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "缂栫爜" + ], + "summary": "鑾峰彇缂栫爜鍒楄〃", + "parameters": [ + { + "type": "string", + "name": "codeStandID", + "in": "query" + }, + { + "type": "string", + "name": "name", + "in": "query" + }, + { + "type": "integer", + "description": "椤电爜", + "name": "page", + "in": "query" + }, + { + "type": "integer", + "description": "姣忛〉澶у皬", + "name": "pageSize", + "in": "query" + }, + { + "type": "string", + "name": "type", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/response.ListResponse" + } + } + } + } + }, "/api/collectionProjection/add": { "post": { "produces": [ @@ -3312,7 +3360,7 @@ } }, "/api/invoice/list": { - "get": { + "post": { "produces": [ "application/json" ], @@ -3322,43 +3370,13 @@ "summary": "鑾峰彇閿�鍞彂绁ㄥ垪琛�", "parameters": [ { - "type": "string", - "name": "keyword", - "in": "query" - }, - { - "enum": [ - "" - ], - "type": "string", - "x-enum-varnames": [ - "InvoiceKeywordCustomerName" - ], - "name": "keywordType", - "in": "query" - }, - { - "type": "integer", - "description": "椤电爜", - "name": "page", - "in": "query" - }, - { - "type": "integer", - "description": "姣忛〉澶у皬", - "name": "pageSize", - "in": "query" - }, - { - "enum": [ - "" - ], - "type": "string", - "x-enum-varnames": [ - "InvoiceQueryClassExpireLessThen60Days" - ], - "name": "queryClass", - "in": "query" + "description": "鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.GetInvoiceList" + } } ], "responses": { @@ -5521,6 +5539,12 @@ "parameters": [ { "type": "integer", + "description": "瀹㈡埛id", + "name": "clientId", + "in": "query" + }, + { + "type": "integer", "description": "椤电爜", "name": "page", "in": "query" @@ -5559,6 +5583,7 @@ "ReceiptSourceTypeCollectionPlan", "ReceiptSourceTypeChuKuDan" ], + "description": "鏉ユ簮绫诲瀷锛�1閿�鍞槑缁嗗崟2鏈嶅姟鍚堝悓3閿�鍞彂绁�4鏀舵璁″垝5鍑哄簱鍗曪級", "name": "sourceType", "in": "query" } @@ -7829,7 +7854,7 @@ } }, "/api/serviceCollectionPlan/list": { - "get": { + "post": { "produces": [ "application/json" ], @@ -7839,28 +7864,13 @@ "summary": "鑾峰彇鏀舵璁″垝鍒楄〃", "parameters": [ { - "type": "integer", - "name": "sourceId", - "in": "query", - "required": true - }, - { - "enum": [ - 1, - 2 - ], - "type": "integer", - "x-enum-comments": { - "CollectionSourceTypeSaleDetails": "閿�鍞槑缁�", - "CollectionSourceTypeServiceContract": "鏈嶅姟鍚堝悓" - }, - "x-enum-varnames": [ - "CollectionSourceTypeSaleDetails", - "CollectionSourceTypeServiceContract" - ], - "name": "sourceType", - "in": "query", - "required": true + "description": "鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.GetServiceCollectionPlanList" + } } ], "responses": { @@ -10243,6 +10253,69 @@ } }, "definitions": { + "code.CodeAuto": { + "type": "object", + "properties": { + "AutoLength": { + "type": "integer" + }, + "Desc": { + "type": "string" + }, + "PrefixMethod": { + "type": "integer" + }, + "PrefixValue": { + "type": "string" + }, + "SuffixMethod": { + "type": "integer" + } + } + }, + "code.CodeRule": { + "type": "object", + "properties": { + "Desc": { + "type": "string" + }, + "Length": { + "type": "integer" + }, + "Name": { + "type": "string" + } + } + }, + "code.CodeStandard": { + "type": "object", + "properties": { + "AutoRule": { + "$ref": "#/definitions/code.CodeAuto" + }, + "ID": { + "type": "string" + }, + "List": { + "type": "array", + "items": { + "$ref": "#/definitions/code.CodeRule" + } + }, + "Method": { + "type": "integer" + }, + "Name": { + "type": "string" + }, + "Status": { + "type": "string" + }, + "Type": { + "type": "string" + } + } + }, "constvar.BankAccountKeywordType": { "type": "string", "enum": [ @@ -10328,24 +10401,6 @@ ], "x-enum-varnames": [ "FaqQueryClassExpireLessThen60Days" - ] - }, - "constvar.InvoiceKeywordType": { - "type": "string", - "enum": [ - "" - ], - "x-enum-varnames": [ - "InvoiceKeywordCustomerName" - ] - }, - "constvar.InvoiceQueryClass": { - "type": "string", - "enum": [ - "" - ], - "x-enum-varnames": [ - "InvoiceQueryClassExpireLessThen60Days" ] }, "constvar.InvoiceSourceType": { @@ -10869,6 +10924,9 @@ "client_type_id": { "type": "integer" }, + "codeStandID": { + "type": "string" + }, "contacts": { "type": "array", "items": { @@ -11064,6 +11122,9 @@ "client_id": { "type": "integer" }, + "codeStandID": { + "type": "string" + }, "country": { "$ref": "#/definitions/model.Country" }, @@ -11134,6 +11195,9 @@ }, "client_id": { "type": "integer" + }, + "codeStandID": { + "type": "string" }, "country": { "$ref": "#/definitions/model.Country" @@ -11213,6 +11277,12 @@ }, "clientId": { "type": "integer" + }, + "codeStandID": { + "type": "string" + }, + "contractName": { + "type": "string" }, "created_at": { "description": "The date when the item was created\nexample: 2023-08-10 15:48:25", @@ -11360,6 +11430,9 @@ }, "client_status_id": { "type": "integer" + }, + "codeStandID": { + "type": "string" }, "contact": { "$ref": "#/definitions/model.Contact" @@ -11558,6 +11631,9 @@ }, "client_id": { "type": "integer" + }, + "codeStandID": { + "type": "string" }, "end_time": { "type": "string" @@ -11783,6 +11859,9 @@ }, "client_id": { "type": "integer" + }, + "codeStandID": { + "type": "string" }, "conditions": { "type": "string" @@ -12022,6 +12101,9 @@ "client_id": { "type": "integer" }, + "codeStandID": { + "type": "string" + }, "collection_projections": { "type": "array", "items": { @@ -12207,6 +12289,9 @@ "clientId": { "type": "integer" }, + "codeStandID": { + "type": "string" + }, "conditions": { "type": "string" }, @@ -12283,6 +12368,9 @@ }, "city_id": { "type": "integer" + }, + "codeStandID": { + "type": "string" }, "contact_name": { "type": "string" @@ -12375,6 +12463,9 @@ "clientId": { "type": "integer" }, + "codeStandID": { + "type": "string" + }, "createTime": { "type": "string" }, @@ -12459,6 +12550,9 @@ }, "clientId": { "type": "integer" + }, + "codeStandID": { + "type": "string" }, "createTime": { "type": "string" @@ -12666,6 +12760,9 @@ "clientId": { "type": "integer" }, + "codeStandID": { + "type": "string" + }, "contact": { "$ref": "#/definitions/model.Contact" }, @@ -12806,6 +12903,9 @@ "clientId": { "type": "integer" }, + "codeStandID": { + "type": "string" + }, "contact": { "$ref": "#/definitions/model.Contact" }, @@ -12902,6 +13002,9 @@ "clientId": { "description": "瀹㈡埛id", "type": "integer" + }, + "codeStandID": { + "type": "string" }, "contact": { "$ref": "#/definitions/model.Contact" @@ -13108,6 +13211,9 @@ }, "clientId": { "type": "integer" + }, + "codeStandID": { + "type": "string" }, "id": { "type": "integer" @@ -13348,6 +13454,13 @@ "description": "瀹㈡埛绫诲瀷ID", "type": "integer" }, + "codeRule": { + "$ref": "#/definitions/code.CodeStandard" + }, + "codeStandID": { + "description": "缂栫爜id", + "type": "string" + }, "contact": { "$ref": "#/definitions/request.Contact" }, @@ -13492,6 +13605,13 @@ "description": "鎵�灞炲叕鍙窱D", "type": "integer" }, + "codeRule": { + "$ref": "#/definitions/code.CodeStandard" + }, + "codeStandID": { + "description": "缂栫爜id", + "type": "string" + }, "country_id": { "description": "鍥藉ID", "type": "integer" @@ -13547,6 +13667,17 @@ "properties": { "client_id": { "type": "integer" + }, + "codeRule": { + "$ref": "#/definitions/code.CodeStandard" + }, + "codeStandID": { + "description": "缂栫爜id", + "type": "string" + }, + "contractName": { + "description": "鍚堝悓鍚嶇О", + "type": "string" }, "file": { "type": "string" @@ -13807,6 +13938,13 @@ "client_id": { "type": "integer" }, + "codeRule": { + "$ref": "#/definitions/code.CodeStandard" + }, + "codeStandID": { + "description": "缂栫爜id", + "type": "string" + }, "end_time": { "type": "string" }, @@ -13922,6 +14060,13 @@ "properties": { "client_id": { "type": "integer" + }, + "codeRule": { + "$ref": "#/definitions/code.CodeStandard" + }, + "codeStandID": { + "description": "缂栫爜id", + "type": "string" }, "conditions": { "type": "string" @@ -14138,6 +14283,13 @@ "client_id": { "type": "integer" }, + "codeRule": { + "$ref": "#/definitions/code.CodeStandard" + }, + "codeStandID": { + "description": "缂栫爜id", + "type": "string" + }, "competitors": { "type": "string" }, @@ -14258,6 +14410,13 @@ "clientId": { "type": "integer" }, + "codeRule": { + "$ref": "#/definitions/code.CodeStandard" + }, + "codeStandID": { + "description": "缂栫爜id", + "type": "string" + }, "conditions": { "type": "string" }, @@ -14310,6 +14469,13 @@ "properties": { "city_id": { "type": "integer" + }, + "codeRule": { + "$ref": "#/definitions/code.CodeStandard" + }, + "codeStandID": { + "description": "缂栫爜id", + "type": "string" }, "contact_name": { "description": "鑱旂郴浜哄鍚�", @@ -14430,6 +14596,13 @@ "clientId": { "type": "integer" }, + "codeRule": { + "$ref": "#/definitions/code.CodeStandard" + }, + "codeStandID": { + "description": "缂栫爜id", + "type": "string" + }, "contactId": { "type": "integer" }, @@ -14534,6 +14707,13 @@ "description": "瀹㈡埛绫诲瀷ID", "type": "integer" }, + "codeRule": { + "$ref": "#/definitions/code.CodeStandard" + }, + "codeStandID": { + "description": "缂栫爜id", + "type": "string" + }, "contact": { "$ref": "#/definitions/request.Contact" }, @@ -14624,6 +14804,13 @@ "clientId": { "type": "integer" }, + "codeRule": { + "$ref": "#/definitions/code.CodeStandard" + }, + "codeStandID": { + "description": "缂栫爜id", + "type": "string" + }, "contactId": { "type": "integer" }, @@ -14684,6 +14871,13 @@ "clientId": { "description": "瀹㈡埛id", "type": "integer" + }, + "codeRule": { + "$ref": "#/definitions/code.CodeStandard" + }, + "codeStandID": { + "description": "缂栫爜id", + "type": "string" }, "contactId": { "description": "鑱旂郴浜篿d", @@ -14835,6 +15029,13 @@ "properties": { "clientId": { "type": "integer" + }, + "codeRule": { + "$ref": "#/definitions/code.CodeStandard" + }, + "codeStandID": { + "description": "缂栫爜id", + "type": "string" }, "masterOrderId": { "type": "integer" @@ -15023,6 +15224,13 @@ "client_id": { "description": "鎵�灞炲叕鍙窱D", "type": "integer" + }, + "codeRule": { + "$ref": "#/definitions/code.CodeStandard" + }, + "codeStandID": { + "description": "缂栫爜id", + "type": "string" }, "country_id": { "description": "鍥藉ID", @@ -15260,6 +15468,12 @@ "client_status_id": { "type": "integer" }, + "codeRule": { + "$ref": "#/definitions/code.CodeStandard" + }, + "codeStandID": { + "type": "string" + }, "contact_id": { "type": "integer" }, @@ -15319,6 +15533,10 @@ "request.GetContactList": { "type": "object", "properties": { + "clientId": { + "description": "瀹㈡埛id", + "type": "integer" + }, "page": { "description": "椤电爜", "type": "integer" @@ -15389,6 +15607,30 @@ "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 + } + } + }, + "request.GetInvoiceList": { + "type": "object", + "properties": { + "page": { + "description": "椤电爜", + "type": "integer" + }, + "pageSize": { + "description": "姣忛〉澶у皬", + "type": "integer" + }, + "sourceId": { + "type": "integer" + }, + "sourceType": { + "description": "婧愬崟绫诲瀷(1閿�鍞槑缁嗗崟2鏈嶅姟鍚堝悓)", + "allOf": [ + { + "$ref": "#/definitions/constvar.InvoiceSourceType" + } + ] } } }, @@ -15481,6 +15723,10 @@ "request.GetSalesDetailsList": { "type": "object", "properties": { + "clientId": { + "description": "瀹㈡埛id", + "type": "integer" + }, "keyword": { "type": "string" }, @@ -15493,6 +15739,10 @@ }, "pageSize": { "description": "姣忛〉澶у皬", + "type": "integer" + }, + "saleChanceId": { + "description": "閿�鍞満浼歩d", "type": "integer" } } @@ -15531,12 +15781,19 @@ "pageSize": { "description": "姣忛〉澶у皬", "type": "integer" + }, + "sourceId": { + "type": "integer" } } }, "request.GetSalesReturnList": { "type": "object", "properties": { + "clientId": { + "description": "瀹㈡埛id", + "type": "integer" + }, "keyword": { "type": "string" }, @@ -15550,12 +15807,43 @@ "pageSize": { "description": "姣忛〉澶у皬", "type": "integer" + }, + "sourceId": { + "description": "婧愬崟id", + "type": "integer" + }, + "sourceType": { + "description": "婧愬崟绫诲瀷锛�1閿�鍞槑缁嗭級", + "allOf": [ + { + "$ref": "#/definitions/constvar.SalesReturnSourceType" + } + ] + } + } + }, + "request.GetServiceCollectionPlanList": { + "type": "object", + "required": [ + "sourceId", + "sourceType" + ], + "properties": { + "sourceId": { + "type": "integer" + }, + "sourceType": { + "$ref": "#/definitions/constvar.CollectionSourceType" } } }, "request.GetServiceContractList": { "type": "object", "properties": { + "contactId": { + "description": "鑱旂郴浜篿d", + "type": "integer" + }, "keyword": { "type": "string" }, @@ -15572,6 +15860,18 @@ }, "queryClass": { "$ref": "#/definitions/constvar.ServiceContractQueryClass" + }, + "quotationId": { + "description": "鎶ヤ环鍗昳d", + "type": "integer" + }, + "saleChanceId": { + "description": "閿�鍞満浼歩d", + "type": "integer" + }, + "salesDetailsId": { + "description": "鍚堝悓璁㈠崟id", + "type": "integer" } } }, @@ -15828,6 +16128,13 @@ "clientId": { "type": "integer" }, + "codeRule": { + "$ref": "#/definitions/code.CodeStandard" + }, + "codeStandID": { + "description": "缂栫爜id", + "type": "string" + }, "conditions": { "type": "string" }, @@ -15889,6 +16196,13 @@ "clientId": { "type": "integer" }, + "codeRule": { + "$ref": "#/definitions/code.CodeStandard" + }, + "codeStandID": { + "description": "缂栫爜id", + "type": "string" + }, "isInvoice": { "type": "string" }, @@ -15933,6 +16247,13 @@ "properties": { "clientId": { "type": "integer" + }, + "codeRule": { + "$ref": "#/definitions/code.CodeStandard" + }, + "codeStandID": { + "description": "缂栫爜id", + "type": "string" }, "memberId": { "type": "integer" @@ -16128,6 +16449,13 @@ "client_type_id": { "description": "瀹㈡埛绫诲瀷ID", "type": "integer" + }, + "codeRule": { + "$ref": "#/definitions/code.CodeStandard" + }, + "codeStandID": { + "description": "缂栫爜id", + "type": "string" }, "contact": { "$ref": "#/definitions/request.Contact" @@ -16355,6 +16683,13 @@ "description": "鎵�灞炲叕鍙窱D", "type": "integer" }, + "codeRule": { + "$ref": "#/definitions/code.CodeStandard" + }, + "codeStandID": { + "description": "缂栫爜id", + "type": "string" + }, "country_id": { "description": "鍥藉ID", "type": "integer" @@ -16413,6 +16748,17 @@ "properties": { "client_id": { "type": "integer" + }, + "codeRule": { + "$ref": "#/definitions/code.CodeStandard" + }, + "codeStandID": { + "description": "缂栫爜id", + "type": "string" + }, + "contractName": { + "description": "鍚堝悓鍚嶇О", + "type": "string" }, "file": { "type": "string" @@ -16808,6 +17154,13 @@ "client_id": { "type": "integer" }, + "codeRule": { + "$ref": "#/definitions/code.CodeStandard" + }, + "codeStandID": { + "description": "缂栫爜id", + "type": "string" + }, "end_time": { "type": "string" }, @@ -16984,6 +17337,13 @@ "properties": { "client_id": { "type": "integer" + }, + "codeRule": { + "$ref": "#/definitions/code.CodeStandard" + }, + "codeStandID": { + "description": "缂栫爜id", + "type": "string" }, "conditions": { "type": "string" @@ -17327,6 +17687,13 @@ "client_id": { "type": "integer" }, + "codeRule": { + "$ref": "#/definitions/code.CodeStandard" + }, + "codeStandID": { + "description": "缂栫爜id", + "type": "string" + }, "competitors": { "type": "string" }, @@ -17490,6 +17857,13 @@ "properties": { "city_id": { "type": "integer" + }, + "codeRule": { + "$ref": "#/definitions/code.CodeStandard" + }, + "codeStandID": { + "description": "缂栫爜id", + "type": "string" }, "contact_name": { "description": "鑱旂郴浜哄鍚�", @@ -17740,6 +18114,13 @@ "clientId": { "type": "integer" }, + "codeRule": { + "$ref": "#/definitions/code.CodeStandard" + }, + "codeStandID": { + "description": "缂栫爜id", + "type": "string" + }, "contactId": { "type": "integer" }, @@ -17865,6 +18246,13 @@ "description": "瀹㈡埛绫诲瀷ID", "type": "integer" }, + "codeRule": { + "$ref": "#/definitions/code.CodeStandard" + }, + "codeStandID": { + "description": "缂栫爜id", + "type": "string" + }, "contact": { "$ref": "#/definitions/request.Contact" }, @@ -17956,6 +18344,13 @@ "clientId": { "type": "integer" }, + "codeRule": { + "$ref": "#/definitions/code.CodeStandard" + }, + "codeStandID": { + "description": "缂栫爜id", + "type": "string" + }, "contactId": { "type": "integer" }, @@ -18019,6 +18414,13 @@ "clientId": { "description": "瀹㈡埛id", "type": "integer" + }, + "codeRule": { + "$ref": "#/definitions/code.CodeStandard" + }, + "codeStandID": { + "description": "缂栫爜id", + "type": "string" }, "contactId": { "description": "鑱旂郴浜篿d", @@ -18210,6 +18612,13 @@ "clientId": { "type": "integer" }, + "codeRule": { + "$ref": "#/definitions/code.CodeStandard" + }, + "codeStandID": { + "description": "缂栫爜id", + "type": "string" + }, "id": { "type": "integer" }, -- Gitblit v1.8.0