From 06c0b03df2955475fe39ff2a793a5f151f4da99f Mon Sep 17 00:00:00 2001 From: wangpengfei <274878379@qq.com> Date: 星期四, 17 八月 2023 19:25:30 +0800 Subject: [PATCH] Merge branch 'master' into fly --- docs/docs.go | 1916 ++++++++++++++++++++++++++++++++++++++++++++++++++++++----- 1 files changed, 1,750 insertions(+), 166 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index fac055d..b27e16a 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -664,6 +664,36 @@ } } }, + "/api/client/checkName": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "Client" + ], + "summary": "妫�鏌ュ鎴峰悕绉版槸鍚﹂噸澶�", + "parameters": [ + { + "description": "鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.CheckClientName" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, "/api/client/delete": { "delete": { "produces": [ @@ -1242,6 +1272,127 @@ } } }, + "/api/collectionProjection/add": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "CollectionProjection" + ], + "summary": "娣诲姞鏀舵棰勬祴", + "parameters": [ + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.AddCollectionProjection" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/api/collectionProjection/delete/{id}": { + "delete": { + "produces": [ + "application/json" + ], + "tags": [ + "CollectionProjection" + ], + "summary": "鍒犻櫎鏀舵棰勬祴", + "parameters": [ + { + "type": "integer", + "description": "鏌ヨ鍙傛暟", + "name": "id", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/api/collectionProjection/list": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "CollectionProjection" + ], + "summary": "鑾峰彇鏀舵棰勬祴鍒楄〃", + "parameters": [ + { + "type": "integer", + "description": "椤电爜", + "name": "page", + "in": "query" + }, + { + "type": "integer", + "description": "姣忛〉澶у皬", + "name": "pageSize", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/api/collectionProjection/update": { + "put": { + "produces": [ + "application/json" + ], + "tags": [ + "CollectionProjection" + ], + "summary": "鏇存柊鏀舵棰勬祴", + "parameters": [ + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.UpdateCollectionProjection" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, "/api/contact/add": { "post": { "produces": [ @@ -1369,6 +1520,37 @@ "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/api/contactInformation/list": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "ContactInformation" + ], + "summary": "鑱旂郴鏂瑰紡鍒楄〃", + "responses": { + "200": { + "description": "OK", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/contextx.Response" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/response.ContactInformationResponse" + } + } + } + ] } } } @@ -6267,6 +6449,36 @@ } } }, + "/api/saleChance/push": { + "put": { + "produces": [ + "application/json" + ], + "tags": [ + "SaleChance" + ], + "summary": "鎺ㄨ繘閿�鍞満浼�", + "parameters": [ + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.PushSaleChance" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, "/api/saleChance/update": { "put": { "produces": [ @@ -6565,6 +6777,36 @@ } } }, + "/api/salesDetails/delete": { + "delete": { + "produces": [ + "application/json" + ], + "tags": [ + "SalesDetails 閿�鍞槑缁�" + ], + "summary": "鎵归噺鍒犻櫎閿�鍞槑缁�", + "parameters": [ + { + "description": "鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.CommonIds" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, "/api/salesDetails/delete/{id}": { "delete": { "produces": [ @@ -6833,7 +7075,7 @@ "application/json" ], "tags": [ - "SalesRefund" + "閿�鍞��娆惧崟" ], "summary": "娣诲姞閿�鍞��娆�", "parameters": [ @@ -6857,13 +7099,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": [ @@ -6891,7 +7163,7 @@ "application/json" ], "tags": [ - "SalesRefund" + "閿�鍞��娆惧崟" ], "summary": "閿�鍞��娆惧崟鍒楄〃", "parameters": [ @@ -6933,7 +7205,7 @@ "application/json" ], "tags": [ - "SalesRefund" + "閿�鍞��娆惧崟" ], "summary": "鏇存柊閿�鍞��娆�", "parameters": [ @@ -6963,7 +7235,7 @@ "application/json" ], "tags": [ - "SalesReturn" + "閿�鍞��璐у崟" ], "summary": "娣诲姞閿�鍞��璐�", "parameters": [ @@ -6987,13 +7259,43 @@ } } }, + "/api/salesReturn/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/salesReturn/delete/{id}": { "delete": { "produces": [ "application/json" ], "tags": [ - "SalesReturn" + "閿�鍞��璐у崟" ], "summary": "鍒犻櫎閿�鍞��璐�", "parameters": [ @@ -7021,7 +7323,7 @@ "application/json" ], "tags": [ - "SalesReturn" + "閿�鍞��璐у崟" ], "summary": "閿�鍞��璐у崟鍒楄〃", "parameters": [ @@ -7063,7 +7365,7 @@ "application/json" ], "tags": [ - "SalesReturn" + "閿�鍞��璐у崟" ], "summary": "鏇存柊閿�鍞��璐�", "parameters": [ @@ -7612,15 +7914,15 @@ "tags": [ "ServiceContract" ], - "summary": "鍒犻櫎鏈嶅姟鍚堝悓", + "summary": "鎵归噺鍒犻櫎鏈嶅姟鍚堝悓", "parameters": [ { - "description": "鏌ヨ鍙傛暟", + "description": "鍙傛暟", "name": "object", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/request.DeleteserviceContract" + "$ref": "#/definitions/request.CommonIds" } } ], @@ -7642,7 +7944,7 @@ "tags": [ "ServiceContract" ], - "summary": "鐢熸垚璁″垝鍒楄〃", + "summary": "鏈嶅姟鍚堝悓鍒楄〃", "parameters": [ { "description": "鍙傛暟", @@ -8238,6 +8540,36 @@ } } }, + "/api/serviceOrder/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/serviceOrder/delete/{id}": { "delete": { "produces": [ @@ -8267,7 +8599,7 @@ } }, "/api/serviceOrder/list": { - "get": { + "post": { "produces": [ "application/json" ], @@ -8275,6 +8607,17 @@ "鏈嶅姟鍗曠鐞�" ], "summary": "鑾峰彇鏈嶅姟鍗曞垪琛�", + "parameters": [ + { + "description": "鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.GetServiceOrderList" + } + } + ], "responses": { "200": { "description": "OK", @@ -8317,6 +8660,169 @@ "required": true, "schema": { "$ref": "#/definitions/request.UpdateServiceOrder" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/api/serviceOrderStatus/add": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "鏈嶅姟鍗曠姸鎬�" + ], + "summary": "娣诲姞鏈嶅姟鍗曠姸鎬�", + "parameters": [ + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.AddServiceOrderStatus" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/api/serviceOrderStatus/delete/{id}": { + "delete": { + "produces": [ + "application/json" + ], + "tags": [ + "鏈嶅姟鍗曠姸鎬�" + ], + "summary": "鍒犻櫎鏈嶅姟鍗曠姸鎬�", + "parameters": [ + { + "type": "integer", + "description": "鏌ヨ鍙傛暟", + "name": "id", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/api/serviceOrderStatus/list": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "鏈嶅姟鍗曠姸鎬�" + ], + "summary": "鑾峰彇鏈嶅姟鍗曠姸鎬佸垪琛�", + "parameters": [ + { + "type": "string", + "name": "keyword", + "in": "query" + }, + { + "enum": [ + "" + ], + "type": "string", + "x-enum-varnames": [ + "ServiceOrderStatusKeywordCustomerName" + ], + "name": "keywordType", + "in": "query" + }, + { + "type": "integer", + "description": "椤电爜", + "name": "page", + "in": "query" + }, + { + "type": "integer", + "description": "姣忛〉澶у皬", + "name": "pageSize", + "in": "query" + }, + { + "enum": [ + "" + ], + "type": "string", + "x-enum-varnames": [ + "ServiceOrderStatusQueryClassExpireLessThen60Days" + ], + "name": "queryClass", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.ListResponse" + }, + { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/model.ServiceOrderStatus" + } + } + } + } + ] + } + } + } + } + }, + "/api/serviceOrderStatus/update": { + "put": { + "produces": [ + "application/json" + ], + "tags": [ + "鏈嶅姟鍗曠姸鎬�" + ], + "summary": "鏇存柊鏈嶅姟鍗曠姸鎬�", + "parameters": [ + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.UpdateServiceOrderStatus" } } ], @@ -9483,6 +9989,169 @@ } } } + }, + "/api/wechatOrderStatus/add": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "寰俊璁㈠崟鐘舵��" + ], + "summary": "娣诲姞寰俊璁㈠崟鐘舵��", + "parameters": [ + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.AddWechatOrderStatus" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/api/wechatOrderStatus/delete/{id}": { + "delete": { + "produces": [ + "application/json" + ], + "tags": [ + "寰俊璁㈠崟鐘舵��" + ], + "summary": "鍒犻櫎寰俊璁㈠崟鐘舵��", + "parameters": [ + { + "type": "integer", + "description": "鏌ヨ鍙傛暟", + "name": "id", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/api/wechatOrderStatus/list": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "寰俊璁㈠崟鐘舵��" + ], + "summary": "鑾峰彇寰俊璁㈠崟鐘舵�佸垪琛�", + "parameters": [ + { + "type": "string", + "name": "keyword", + "in": "query" + }, + { + "enum": [ + "" + ], + "type": "string", + "x-enum-varnames": [ + "WechatOrderStatusKeywordCustomerName" + ], + "name": "keywordType", + "in": "query" + }, + { + "type": "integer", + "description": "椤电爜", + "name": "page", + "in": "query" + }, + { + "type": "integer", + "description": "姣忛〉澶у皬", + "name": "pageSize", + "in": "query" + }, + { + "enum": [ + "" + ], + "type": "string", + "x-enum-varnames": [ + "WechatOrderStatusQueryClassExpireLessThen60Days" + ], + "name": "queryClass", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.ListResponse" + }, + { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/model.WechatOrderStatus" + } + } + } + } + ] + } + } + } + } + }, + "/api/wechatOrderStatus/update": { + "put": { + "produces": [ + "application/json" + ], + "tags": [ + "寰俊璁㈠崟鐘舵��" + ], + "summary": "鏇存柊寰俊璁㈠崟鐘舵��", + "parameters": [ + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.UpdateWechatOrderStatus" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } } }, "definitions": { @@ -9504,18 +10173,36 @@ "BankAccountQueryClassExpireLessThen60Days" ] }, - "constvar.CollectionStatus": { + "constvar.CollectionSourceType": { "type": "integer", "enum": [ 1, 2 ], "x-enum-comments": { + "CollectionSourceTypeSaleDetails": "閿�鍞槑缁�", + "CollectionSourceTypeServiceContract": "鏈嶅姟鍚堝悓" + }, + "x-enum-varnames": [ + "CollectionSourceTypeSaleDetails", + "CollectionSourceTypeServiceContract" + ] + }, + "constvar.CollectionStatus": { + "type": "integer", + "enum": [ + 1, + 2, + 3 + ], + "x-enum-comments": { "CollectionStatusCollected": "宸叉敹娆�", + "CollectionStatusSubCollected": "閮ㄥ垎鏀舵", "CollectionStatusUnCollected": "寰呮敹娆�" }, "x-enum-varnames": [ "CollectionStatusUnCollected", + "CollectionStatusSubCollected", "CollectionStatusCollected" ] }, @@ -9656,6 +10343,112 @@ "ReceiptQueryClassExpireLessThen60Days" ] }, + "constvar.ReceiptSourceType": { + "type": "integer", + "enum": [ + 1, + 2, + 3, + 4, + 5 + ], + "x-enum-varnames": [ + "ReceiptSourceTypeSalesDetails", + "ReceiptSourceTypeServiceContract", + "ReceiptSourceTypeInvoice", + "ReceiptSourceTypeCollectionPlan", + "ReceiptSourceTypeChuKuDan" + ] + }, + "constvar.RefundSourceType": { + "type": "integer", + "enum": [ + 1 + ], + "x-enum-comments": { + "RefundSourceTypeSalesReturn": "閿�鍞��璐�" + }, + "x-enum-varnames": [ + "RefundSourceTypeSalesReturn" + ] + }, + "constvar.SalesDetailsKeywordType": { + "type": "string", + "enum": [ + "瀹㈡埛鍚嶇О", + "璁㈠崟缂栧彿", + "绛剧害鏃ユ湡", + "閿�鍞礋璐d汉", + "浜у搧鍚嶇О" + ], + "x-enum-varnames": [ + "SalesDetailsKeywordTypeCustomerName", + "SalesDetailsKeywordTypeOrderNumber", + "SalesDetailsKeywordTypeSignTime", + "SalesDetailsKeywordTypePrincipal", + "SalesDetailsKeywordTypeProductName" + ] + }, + "constvar.SalesRefundKeywordType": { + "type": "string", + "enum": [ + "閿�鍞��璐у崟缂栧彿", + "瀹㈡埛鍚嶇О", + "閫�娆炬棩鏈�", + "璐︽埛", + "鏄惁寮�绁�", + "浠樻鏂瑰紡", + "閿�鍞礋璐d汉", + "淇敼鏃堕棿", + "浠风◣鍚堣" + ], + "x-enum-varnames": [ + "SalesRefundKeywordRefundNumber", + "SalesRefundKeywordClientName", + "SalesRefundKeywordRefundDate", + "SalesRefundKeywordAccount", + "SalesRefundKeywordIsInvoice", + "SalesRefundKeywordPaymentType", + "SalesRefundKeywordPrincipal", + "SalesRefundKeywordUpdateAt", + "SalesRefundKeywordPriceTotal" + ] + }, + "constvar.SalesReturnKeywordType": { + "type": "string", + "enum": [ + "閿�鍞��璐у崟缂栧彿", + "瀹㈡埛鍚嶇О", + "閫�娆炬棩鏈�", + "鐘舵��", + "閫�鍏ヤ粨搴�", + "搴旈��娆�", + "宸查��娆�", + "閿�鍞礋璐d汉" + ], + "x-enum-varnames": [ + "SalesReturnKeywordReturnNumber", + "SalesReturnKeywordClientName", + "SalesReturnKeywordReturnDate", + "SalesReturnKeywordStatus", + "SalesReturnKeywordRepository", + "SalesReturnKeywordAmountShouldRefund", + "SalesReturnKeywordAmountHasRefund", + "SalesReturnKeywordPrincipal" + ] + }, + "constvar.SalesReturnSourceType": { + "type": "integer", + "enum": [ + 1 + ], + "x-enum-comments": { + "SalesReturnSourceTypeSaleDetails": "閿�鍞槑缁�" + }, + "x-enum-varnames": [ + "SalesReturnSourceTypeSaleDetails" + ] + }, "constvar.SalesStatus": { "type": "integer", "enum": [ @@ -9663,7 +10456,6 @@ 1, 2, 3, - 4, -1 ], "x-enum-comments": { @@ -9671,13 +10463,11 @@ "SalesStatusIng": "杩涜涓�", "SalesStatusLevelUptoClient": "鍗囩骇涓哄鎴�", "SalesStatusLevelUptoClientAndSalesChance": "鍗囩骇涓哄鎴峰苟涓旀湁閿�鍞満浼�", - "SalesStatusNew": "鏂板缓", - "SalesStatusSuccess": "鎴愬姛" + "SalesStatusNew": "鏂板缓" }, "x-enum-varnames": [ "SalesStatusNew", "SalesStatusIng", - "SalesStatusSuccess", "SalesStatusLevelUptoClient", "SalesStatusLevelUptoClientAndSalesChance", "SalesStatusFail" @@ -9788,6 +10578,56 @@ "ServiceFollowupKeywordSatisfactionDegree" ] }, + "constvar.ServiceOrderKeywordType": { + "type": "string", + "enum": [ + "鏈嶅姟鍗曠紪鍙�", + "涓婚", + "瀹㈡埛鍚嶇О", + "瀹為檯澶勭悊鏃堕棿", + "鏈嶅姟浜哄憳", + "鏈嶅姟鏂瑰紡", + "浜у搧绫诲埆", + "鏁呴殰绫诲埆" + ], + "x-enum-varnames": [ + "ServiceOrderKeywordOrderNumber", + "ServiceOrderKeywordSubject", + "ServiceOrderKeywordClientName", + "ServiceOrderKeywordRealProcessTime", + "ServiceOrderKeywordServiceMan", + "ServiceOrderKeywordServiceType", + "ServiceOrderKeywordProductType", + "ServiceOrderKeywordFaultType" + ] + }, + "constvar.ServiceOrderQueryClass": { + "type": "string", + "enum": [ + "" + ], + "x-enum-varnames": [ + "ServiceOrderQueryClassExpireLessThen60Days" + ] + }, + "constvar.ServiceOrderStatusKeywordType": { + "type": "string", + "enum": [ + "" + ], + "x-enum-varnames": [ + "ServiceOrderStatusKeywordCustomerName" + ] + }, + "constvar.ServiceOrderStatusQueryClass": { + "type": "string", + "enum": [ + "" + ], + "x-enum-varnames": [ + "ServiceOrderStatusQueryClassExpireLessThen60Days" + ] + }, "constvar.UserType": { "type": "integer", "enum": [ @@ -9804,6 +10644,24 @@ "UserTypeSuper", "UserTypePrimary", "UserTypeSub" + ] + }, + "constvar.WechatOrderStatusKeywordType": { + "type": "string", + "enum": [ + "" + ], + "x-enum-varnames": [ + "WechatOrderStatusKeywordCustomerName" + ] + }, + "constvar.WechatOrderStatusQueryClass": { + "type": "string", + "enum": [ + "" + ], + "x-enum-varnames": [ + "WechatOrderStatusQueryClassExpireLessThen60Days" ] }, "contextx.Response": { @@ -10052,6 +10910,42 @@ } } }, + "model.CollectionProjection": { + "type": "object", + "properties": { + "_": { + "description": "The date when the item was deleted\nexample: 2023-08-10 15:48:25", + "type": "string" + }, + "created_at": { + "description": "The date when the item was created\nexample: 2023-08-10 15:48:25", + "type": "string" + }, + "creator": { + "type": "integer" + }, + "estimated_collection_amount": { + "type": "number" + }, + "estimated_collection_date": { + "type": "string" + }, + "id": { + "description": "The ID of the item\nexample: 1", + "type": "integer" + }, + "modifier": { + "type": "integer" + }, + "sale_chance_id": { + "type": "integer" + }, + "updated_at": { + "description": "The date when the item was last updated\nexample: 2023-08-10 15:48:25", + "type": "string" + } + } + }, "model.Contact": { "type": "object", "properties": { @@ -10084,6 +10978,9 @@ }, "is_first": { "type": "boolean" + }, + "member": { + "$ref": "#/definitions/model.User" }, "member_id": { "type": "integer" @@ -10159,6 +11056,9 @@ "is_first": { "type": "boolean" }, + "member": { + "$ref": "#/definitions/model.User" + }, "member_id": { "type": "integer" }, @@ -10191,17 +11091,43 @@ } } }, + "model.ContactInformation": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + } + } + }, "model.Contract": { "type": "object", "properties": { + "_": { + "description": "The date when the item was deleted\nexample: 2023-08-10 15:48:25", + "type": "string" + }, + "client": { + "$ref": "#/definitions/model.Client" + }, "clientId": { "type": "integer" + }, + "created_at": { + "description": "The date when the item was created\nexample: 2023-08-10 15:48:25", + "type": "string" }, "file": { "type": "string" }, "id": { + "description": "The ID of the item\nexample: 1", "type": "integer" + }, + "member": { + "$ref": "#/definitions/model.User" }, "memberId": { "type": "integer" @@ -10217,6 +11143,10 @@ }, "statusId": { "type": "integer" + }, + "updated_at": { + "description": "The date when the item was last updated\nexample: 2023-08-10 15:48:25", + "type": "string" } } }, @@ -10256,32 +11186,6 @@ }, "name": { "type": "string" - } - } - }, - "model.CustomerServiceSheet": { - "type": "object", - "properties": { - "handleStatus": { - "type": "integer" - }, - "id": { - "type": "integer" - }, - "memberId": { - "type": "integer" - }, - "number": { - "type": "string" - }, - "priority": { - "type": "integer" - }, - "serviceFollowupId": { - "type": "integer" - }, - "serviceMode": { - "type": "integer" } } }, @@ -10349,6 +11253,9 @@ "client_id": { "type": "integer" }, + "client_status": { + "$ref": "#/definitions/model.ClientStatus" + }, "client_status_id": { "type": "integer" }, @@ -10370,6 +11277,9 @@ "id": { "type": "integer" }, + "member": { + "$ref": "#/definitions/model.User" + }, "member_id": { "type": "integer" }, @@ -10385,8 +11295,14 @@ "record": { "type": "string" }, + "sale_chance": { + "$ref": "#/definitions/model.SaleChance" + }, "sale_chance_id": { "type": "integer" + }, + "sales_leads": { + "$ref": "#/definitions/model.SalesLeads" }, "sales_leads_id": { "type": "integer" @@ -10456,6 +11372,12 @@ "principalId": { "description": "閿�鍞礋璐d汉id", "type": "integer" + }, + "products": { + "type": "array", + "items": { + "$ref": "#/definitions/model.Product" + } }, "sourceId": { "description": "婧愬崟id", @@ -10537,6 +11459,9 @@ }, "id": { "type": "integer" + }, + "member": { + "$ref": "#/definitions/model.User" }, "member_id": { "type": "integer" @@ -10706,7 +11631,7 @@ "type": "object", "properties": { "amount": { - "type": "integer" + "type": "number" }, "desc": { "type": "string" @@ -10769,11 +11694,23 @@ "id": { "type": "integer" }, + "member": { + "$ref": "#/definitions/model.User" + }, "member_id": { "type": "integer" }, "number": { "type": "string" + }, + "products": { + "type": "array", + "items": { + "$ref": "#/definitions/model.Product" + } + }, + "quotation_status": { + "$ref": "#/definitions/model.QuotationStatus" }, "quotation_status_id": { "type": "integer" @@ -10803,6 +11740,13 @@ "model.Receipt": { "type": "object", "properties": { + "amount": { + "description": "鏀舵閲戦", + "type": "number" + }, + "bankAccount": { + "$ref": "#/definitions/model.BankAccount" + }, "bankAccountId": { "description": "璐︽埛id", "type": "integer" @@ -10822,9 +11766,20 @@ "description": "甯佺", "type": "string" }, + "paymentType": { + "$ref": "#/definitions/model.PaymentType" + }, "paymentTypeId": { "description": "鏀舵鏂瑰紡ID", "type": "integer" + }, + "principal": { + "description": "璐熻矗浜篿d", + "allOf": [ + { + "$ref": "#/definitions/model.User" + } + ] }, "principalId": { "description": "璐熻矗浜篿d", @@ -10844,7 +11799,11 @@ }, "sourceType": { "description": "鏉ユ簮绫诲瀷锛�1閿�鍞槑缁嗗崟2鏈嶅姟鍚堝悓3閿�鍞彂绁�4鏀舵璁″垝5鍑哄簱鍗曪級", - "type": "integer" + "allOf": [ + { + "$ref": "#/definitions/constvar.ReceiptSourceType" + } + ] } } }, @@ -10938,6 +11897,12 @@ "client_id": { "type": "integer" }, + "collection_projections": { + "type": "array", + "items": { + "$ref": "#/definitions/model.CollectionProjection" + } + }, "competitors": { "type": "string" }, @@ -10974,6 +11939,9 @@ "key_maker": { "type": "string" }, + "member": { + "$ref": "#/definitions/model.User" + }, "member_id": { "type": "integer" }, @@ -10991,6 +11959,9 @@ }, "possibilities_id": { "type": "integer" + }, + "possibility": { + "$ref": "#/definitions/model.Possibility" }, "process": { "type": "string" @@ -11010,19 +11981,28 @@ "region_id": { "type": "integer" }, + "regular_customers": { + "$ref": "#/definitions/model.RegularCustomers" + }, "regular_customers_id": { "type": "integer" }, "remark": { "type": "string" }, + "sale_stage": { + "$ref": "#/definitions/model.SaleStage" + }, "sale_stage_id": { "type": "integer" + }, + "sale_type": { + "$ref": "#/definitions/model.SaleType" }, "sale_type_id": { "type": "integer" }, - "salesSources": { + "sales_sources": { "$ref": "#/definitions/model.SalesSources" }, "sales_sources_id": { @@ -11067,11 +12047,34 @@ "model.SalesDetails": { "type": "object", "properties": { + "Member": { + "$ref": "#/definitions/model.User" + }, "address": { "type": "string" }, "addressee": { "type": "string" + }, + "amountInvoiced": { + "description": "宸插紑绁ㄩ噾棰�", + "type": "number" + }, + "amountReceivable": { + "description": "搴旀敹閲戦", + "type": "number" + }, + "amountReceived": { + "description": "宸叉敹閲戦", + "type": "number" + }, + "amountTotal": { + "description": "浠风◣鍚堣", + "type": "number" + }, + "amountUnInvoiced": { + "description": "鏈紑绁ㄩ噾棰�", + "type": "number" }, "client": { "$ref": "#/definitions/model.Client" @@ -11080,6 +12083,15 @@ "type": "integer" }, "conditions": { + "type": "string" + }, + "createTime": { + "type": "string" + }, + "creatorId": { + "type": "integer" + }, + "creatorName": { "type": "string" }, "deliveryDate": { @@ -11115,6 +12127,9 @@ "remark": { "type": "string" }, + "saleChance": { + "$ref": "#/definitions/model.SaleChance" + }, "saleChanceId": { "type": "integer" }, @@ -11125,6 +12140,9 @@ "type": "string" }, "wechatOrderStatus": { + "$ref": "#/definitions/model.WechatOrderStatus" + }, + "wechatOrderStatusId": { "type": "integer" } } @@ -11165,6 +12183,9 @@ "id": { "type": "integer" }, + "member": { + "$ref": "#/definitions/model.User" + }, "member_id": { "type": "integer" }, @@ -11189,6 +12210,9 @@ "region_id": { "type": "integer" }, + "sales_sources": { + "$ref": "#/definitions/model.SalesSources" + }, "sales_sources_id": { "type": "integer" }, @@ -11200,23 +12224,50 @@ "model.SalesRefund": { "type": "object", "properties": { - "accountId": { + "amountTotal": { + "description": "浠风◣鍚堣", + "type": "number" + }, + "bankAccount": { + "$ref": "#/definitions/model.BankAccount" + }, + "bankAccountId": { + "description": "璐︽埛id", "type": "integer" + }, + "client": { + "$ref": "#/definitions/model.Client" }, "clientId": { "type": "integer" + }, + "createTime": { + "type": "string" + }, + "creatorName": { + "type": "string" }, "id": { "type": "integer" }, "isInvoice": { - "type": "integer" + "type": "string" + }, + "member": { + "$ref": "#/definitions/model.User" }, "memberId": { "type": "integer" }, "number": { "type": "string" + }, + "paymentType": { + "$ref": "#/definitions/model.PaymentType" + }, + "paymentTypeId": { + "description": "鏀舵鏂瑰紡ID", + "type": "integer" }, "products": { "type": "array", @@ -11230,16 +12281,53 @@ "refundDate": { "type": "string" }, - "refundMethod": { - "type": "string" + "sourceId": { + "description": "婧愬崟id", + "type": "integer" + }, + "sourceType": { + "description": "鏉ユ簮绫诲瀷锛�1閿�鍞��璐э級", + "allOf": [ + { + "$ref": "#/definitions/constvar.RefundSourceType" + } + ] } } }, "model.SalesReturn": { "type": "object", "properties": { + "Member": { + "$ref": "#/definitions/model.User" + }, + "SalesReturnStatus": { + "description": "閫�璐х姸鎬�", + "allOf": [ + { + "$ref": "#/definitions/model.SalesReturnStatus" + } + ] + }, + "amountHasRefund": { + "description": "宸查��娆鹃噾棰�", + "type": "number" + }, + "amountShouldRefund": { + "description": "搴旈��娆鹃噾棰�", + "type": "number" + }, + "client": { + "$ref": "#/definitions/model.Client" + }, "clientId": { "type": "integer" + }, + "createTime": { + "type": "string" + }, + "creatorName": { + "type": "string" }, "id": { "type": "integer" @@ -11251,22 +12339,38 @@ "type": "string" }, "products": { + "description": "閫�璐т骇鍝�", "type": "array", "items": { "$ref": "#/definitions/model.Product" } }, "reason": { + "description": "閫�璐у師鍥�", "type": "string" }, "repository": { "type": "string" }, "returnDate": { + "description": "閫�璐ф棩鏈�", "type": "string" }, - "salesReturnStatus": { + "salesReturnStatusId": { + "description": "閫�璐х姸鎬乮d", "type": "integer" + }, + "sourceId": { + "description": "婧愬崟id", + "type": "integer" + }, + "sourceType": { + "description": "婧愬崟绫诲瀷锛�1閿�鍞槑缁嗭級", + "allOf": [ + { + "$ref": "#/definitions/constvar.SalesReturnSourceType" + } + ] } } }, @@ -11310,6 +12414,18 @@ "description": "閲戦", "type": "number" }, + "amountReceivable": { + "description": "搴旀敹閲戦", + "type": "number" + }, + "amountReceived": { + "description": "宸叉敹閲戦", + "type": "number" + }, + "amountTotal": { + "description": "鎬婚", + "type": "number" + }, "collectionDate": { "description": "璁″垝鏀舵鏃ユ湡", "type": "string" @@ -11347,10 +12463,14 @@ }, "sourceType": { "description": "婧愬崟绫诲瀷锛�1閿�鍞槑缁�2鏈嶅姟鍚堝悓3閿�鍞彂绁級", - "type": "integer" + "allOf": [ + { + "$ref": "#/definitions/constvar.CollectionSourceType" + } + ] }, "status": { - "description": "鐘舵�侊紙1鏈敹2宸叉敹锛�", + "description": "鐘舵�侊紙1鏈敹2閮ㄥ垎宸叉敹3宸叉敹锛�", "allOf": [ { "$ref": "#/definitions/constvar.CollectionStatus" @@ -11366,6 +12486,9 @@ "model.ServiceContract": { "type": "object", "properties": { + "SaleChance": { + "$ref": "#/definitions/model.SaleChance" + }, "amountInvoiced": { "description": "宸插紑绁ㄩ噾棰�", "type": "number" @@ -11378,13 +12501,24 @@ "description": "宸叉敹閲戦", "type": "number" }, + "amountTotal": { + "description": "浠风◣鍚堣", + "type": "number" + }, + "amountUnInvoiced": { + "description": "鏈紑绁ㄩ噾棰�", + "type": "number" + }, + "client": { + "$ref": "#/definitions/model.Client" + }, "clientId": { "type": "integer" }, - "contactId": { - "type": "integer" + "contact": { + "$ref": "#/definitions/model.Contact" }, - "contractId": { + "contactId": { "type": "integer" }, "endTime": { @@ -11392,6 +12526,9 @@ }, "id": { "type": "integer" + }, + "member": { + "$ref": "#/definitions/model.User" }, "memberId": { "type": "integer" @@ -11405,6 +12542,9 @@ "$ref": "#/definitions/model.Product" } }, + "quotation": { + "$ref": "#/definitions/model.Quotation" + }, "quotationId": { "type": "integer" }, @@ -11414,8 +12554,20 @@ "saleChanceId": { "type": "integer" }, + "salesDetails": { + "$ref": "#/definitions/model.SalesDetails" + }, + "salesDetailsId": { + "type": "integer" + }, + "serviceContractStatus": { + "$ref": "#/definitions/model.ServiceContractStatus" + }, "serviceContractStatusId": { "type": "integer" + }, + "serviceContractType": { + "$ref": "#/definitions/model.ServiceContractType" }, "serviceContractTypeId": { "type": "integer" @@ -11485,20 +12637,29 @@ "model.ServiceFollowup": { "type": "object", "properties": { + "Member": { + "$ref": "#/definitions/model.User" + }, + "client": { + "$ref": "#/definitions/model.Client" + }, "clientId": { "type": "integer" }, + "contact": { + "$ref": "#/definitions/model.Contact" + }, "contactId": { "type": "integer" - }, - "customerServiceSheet": { - "$ref": "#/definitions/model.CustomerServiceSheet" }, "file": { "type": "string" }, "id": { "type": "integer" + }, + "isVisit": { + "$ref": "#/definitions/model.IsVisit" }, "isVisitId": { "type": "integer" @@ -11509,6 +12670,9 @@ "number": { "type": "string" }, + "oldMember": { + "$ref": "#/definitions/model.User" + }, "oldMemberId": { "type": "integer" }, @@ -11518,17 +12682,26 @@ "remark": { "type": "string" }, - "satisfactionId": { - "type": "integer" + "satisfaction": { + "$ref": "#/definitions/model.Satisfaction" }, - "serviceId": { + "satisfactionId": { "type": "integer" }, "serviceOrder": { "$ref": "#/definitions/model.ServiceOrder" }, + "serviceOrderId": { + "type": "integer" + }, + "solveRate": { + "$ref": "#/definitions/model.SolveRate" + }, "solveRateId": { "type": "integer" + }, + "timelyRate": { + "$ref": "#/definitions/model.TimelyRate" }, "timelyRateId": { "type": "integer" @@ -11547,11 +12720,11 @@ "type": "string" }, "carFare": { - "description": "浜ら�氳垂", + "description": "浜ら�氳垂 // 浜ら�氳垂", "type": "number" }, "chargeAmount": { - "description": "鏀惰垂閲戦", + "description": "鏀惰垂閲戦 // 鏀惰垂閲戦", "type": "number" }, "client": { @@ -11566,13 +12739,6 @@ }, "contactId": { "description": "鑱旂郴浜篿d", - "type": "integer" - }, - "contract": { - "$ref": "#/definitions/model.Contract" - }, - "contractId": { - "description": "鍚堝悓id", "type": "integer" }, "expectTime": { @@ -11596,13 +12762,6 @@ "id": { "type": "integer" }, - "orderId": { - "description": "閿�鍞鍗昳d", - "type": "integer" - }, - "orderManage": { - "$ref": "#/definitions/model.OrderManage" - }, "priorityLevel": { "$ref": "#/definitions/model.PriorityLevel" }, @@ -11614,12 +12773,13 @@ "description": "闂鎻忚堪", "type": "string" }, - "product": { - "$ref": "#/definitions/model.Product" + "productName": { + "description": "浜у搧鍚嶇О", + "type": "string" }, - "productId": { - "description": "浜у搧id", - "type": "integer" + "productTypeName": { + "description": "浜у搧鍒嗙被鍚嶇О", + "type": "string" }, "realTime": { "description": "瀹為檯澶勭悊鏃堕棿", @@ -11636,6 +12796,28 @@ "description": "閿�鍞満浼歩d", "type": "integer" }, + "salesDetails": { + "$ref": "#/definitions/model.SalesDetails" + }, + "salesDetailsId": { + "description": "閿�鍞槑缁唅d", + "type": "integer" + }, + "serviceContract": { + "$ref": "#/definitions/model.ServiceContract" + }, + "serviceContractId": { + "description": "鏈嶅姟鍚堝悓id", + "type": "integer" + }, + "serviceMan": { + "description": "鏈嶅姟浜哄憳", + "allOf": [ + { + "$ref": "#/definitions/model.User" + } + ] + }, "serviceManId": { "description": "鏈嶅姟浜哄憳", "type": "integer" @@ -11643,6 +12825,13 @@ "serviceNumber": { "description": "鏈嶅姟鍗曠紪鍙�", "type": "string" + }, + "serviceOrderStatus": { + "$ref": "#/definitions/model.ServiceOrderStatus" + }, + "serviceOrderStatusId": { + "description": "澶勭悊鐘舵��", + "type": "integer" }, "serviceType": { "$ref": "#/definitions/model.ServiceType" @@ -11662,10 +12851,6 @@ "description": "鍐呴儴澶囨敞", "type": "string" }, - "status": { - "description": "澶勭悊鐘舵��", - "type": "integer" - }, "subject": { "description": "涓婚", "type": "string" @@ -11676,6 +12861,17 @@ "timeSpentId": { "description": "鑺辫垂鏃堕棿", "type": "integer" + } + } + }, + "model.ServiceOrderStatus": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" } } }, @@ -11735,8 +12931,14 @@ "id": { "type": "integer" }, + "masterOrder": { + "$ref": "#/definitions/model.MasterOrder" + }, "masterOrderId": { "type": "integer" + }, + "member": { + "$ref": "#/definitions/model.User" }, "memberId": { "type": "integer" @@ -11822,6 +13024,17 @@ "type": "string" }, "uuid": { + "type": "string" + } + } + }, + "model.WechatOrderStatus": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "name": { "type": "string" } } @@ -11941,6 +13154,10 @@ "contact": { "$ref": "#/definitions/request.Contact" }, + "contact_id": { + "description": "鑱旂郴浜篒D", + "type": "integer" + }, "country_id": { "type": "integer" }, @@ -12042,6 +13259,23 @@ "properties": { "name": { "type": "string" + } + } + }, + "request.AddCollectionProjection": { + "type": "object", + "properties": { + "estimated_collection_amount": { + "description": "棰勮鏀舵閲戦", + "type": "number" + }, + "estimated_collection_time": { + "description": "棰勮鏀舵鏃堕棿", + "type": "string" + }, + "sale_chance_id": { + "description": "閿�鍞満浼歩d", + "type": "integer" } } }, @@ -12297,6 +13531,13 @@ "description": "閿�鍞礋璐d汉id", "type": "integer" }, + "products": { + "description": "鍙戠エ瀵瑰簲浜у搧锛屼粠鐩稿簲婧愬崟閲岃幏鍙�", + "type": "array", + "items": { + "$ref": "#/definitions/model.Product" + } + }, "sourceId": { "description": "婧愬崟id", "type": "integer" @@ -12500,6 +13741,12 @@ "number": { "type": "string" }, + "products": { + "type": "array", + "items": { + "$ref": "#/definitions/model.Product" + } + }, "quotation_status_id": { "type": "integer" }, @@ -12525,6 +13772,13 @@ "request.AddReceipt": { "type": "object", "properties": { + "amount": { + "description": "鏀舵閲戦", + "type": "number" + }, + "bankAccount": { + "$ref": "#/definitions/model.BankAccount" + }, "bankAccountId": { "description": "璐︽埛id", "type": "integer" @@ -12544,9 +13798,20 @@ "description": "甯佺", "type": "string" }, + "paymentType": { + "$ref": "#/definitions/model.PaymentType" + }, "paymentTypeId": { "description": "鏀舵鏂瑰紡ID", "type": "integer" + }, + "principal": { + "description": "璐熻矗浜篿d", + "allOf": [ + { + "$ref": "#/definitions/model.User" + } + ] }, "principalId": { "description": "璐熻矗浜篿d", @@ -12566,7 +13831,11 @@ }, "sourceType": { "description": "鏉ユ簮绫诲瀷锛�1閿�鍞槑缁嗗崟2鏈嶅姟鍚堝悓3閿�鍞彂绁�4鏀舵璁″垝5鍑哄簱鍗曪級", - "type": "integer" + "allOf": [ + { + "$ref": "#/definitions/constvar.ReceiptSourceType" + } + ] } } }, @@ -12763,8 +14032,59 @@ "request.AddSalesDetails": { "type": "object", "properties": { - "salesDetails": { - "$ref": "#/definitions/request.SalesDetails" + "address": { + "type": "string" + }, + "addressee": { + "type": "string" + }, + "clientId": { + "type": "integer" + }, + "conditions": { + "type": "string" + }, + "deliveryDate": { + "type": "string" + }, + "logisticCompany": { + "type": "string" + }, + "logisticCost": { + "type": "number" + }, + "logisticNumber": { + "type": "string" + }, + "memberId": { + "type": "integer" + }, + "number": { + "type": "string" + }, + "phone": { + "type": "string" + }, + "products": { + "type": "array", + "items": { + "$ref": "#/definitions/model.Product" + } + }, + "remark": { + "type": "string" + }, + "saleChanceId": { + "type": "integer" + }, + "saleType": { + "type": "integer" + }, + "signTime": { + "type": "string" + }, + "wechatOrderStatusId": { + "type": "integer" } } }, @@ -12882,14 +14202,14 @@ }, "request.AddServiceContract": { "type": "object", + "required": [ + "memberId" + ], "properties": { "clientId": { "type": "integer" }, "contactId": { - "type": "integer" - }, - "contractId": { "type": "integer" }, "endTime": { @@ -12914,6 +14234,9 @@ "type": "string" }, "saleChanceId": { + "type": "integer" + }, + "salesDetailsId": { "type": "integer" }, "serviceTimes": { @@ -12986,6 +14309,10 @@ }, "contact": { "$ref": "#/definitions/request.Contact" + }, + "contact_id": { + "description": "鑱旂郴浜篒D", + "type": "integer" }, "country_id": { "type": "integer" @@ -13097,7 +14424,7 @@ "satisfaction": { "type": "integer" }, - "serviceId": { + "serviceOrderId": { "type": "integer" }, "solveRate": { @@ -13135,10 +14462,6 @@ "description": "鑱旂郴浜篿d", "type": "integer" }, - "contractId": { - "description": "鍚堝悓id", - "type": "integer" - }, "expectTime": { "description": "甯屾湜澶勭悊鏃堕棿", "type": "string" @@ -13151,10 +14474,6 @@ "description": "鏁呴殰绫诲埆id", "type": "integer" }, - "orderId": { - "description": "閿�鍞鍗昳d", - "type": "integer" - }, "priorityLevelId": { "description": "浼樺厛绾у埆id", "type": "integer" @@ -13163,9 +14482,13 @@ "description": "闂鎻忚堪", "type": "string" }, - "productId": { - "description": "浜у搧id", - "type": "integer" + "productName": { + "description": "浜у搧鍚嶇О", + "type": "string" + }, + "productTypeName": { + "description": "浜у搧鍒嗙被鍚嶇О", + "type": "string" }, "realTime": { "description": "瀹為檯澶勭悊鏃堕棿", @@ -13179,6 +14502,14 @@ "description": "閿�鍞満浼歩d", "type": "integer" }, + "salesDetailsId": { + "description": "閿�鍞鍗昳d", + "type": "integer" + }, + "serviceContractId": { + "description": "鍚堝悓id", + "type": "integer" + }, "serviceManId": { "description": "鏈嶅姟浜哄憳", "type": "integer" @@ -13186,6 +14517,10 @@ "serviceNumber": { "description": "鏈嶅姟鍗曠紪鍙�", "type": "string" + }, + "serviceOrderStatusId": { + "description": "澶勭悊鐘舵��", + "type": "integer" }, "serviceTypeId": { "description": "鏈嶅姟鏂瑰紡id", @@ -13203,10 +14538,6 @@ "description": "鍐呴儴澶囨敞", "type": "string" }, - "status": { - "description": "澶勭悊鐘舵��", - "type": "integer" - }, "subject": { "description": "涓婚", "type": "string" @@ -13214,6 +14545,17 @@ "timeSpentId": { "description": "鑺辫垂鏃堕棿", "type": "integer" + } + } + }, + "request.AddServiceOrderStatus": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" } } }, @@ -13333,6 +14675,17 @@ } } }, + "request.AddWechatOrderStatus": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + } + } + }, "request.Assign": { "type": "object", "properties": { @@ -13403,6 +14756,28 @@ "pos": { "description": "鐢ㄦ埛宀椾綅", "type": "string" + } + } + }, + "request.CheckClientName": { + "type": "object", + "properties": { + "name": { + "type": "string" + } + } + }, + "request.CommonIds": { + "type": "object", + "required": [ + "ids" + ], + "properties": { + "ids": { + "type": "array", + "items": { + "type": "integer" + } } } }, @@ -13567,17 +14942,6 @@ } } }, - "request.DeleteserviceContract": { - "type": "object", - "properties": { - "ids": { - "type": "array", - "items": { - "type": "integer" - } - } - } - }, "request.DownloadFile": { "type": "object", "required": [ @@ -13682,7 +15046,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\": \"閲嶈绾у埆\"}", + "description": "鎼滅储鏉′欢: map[string]interface{}{\"name\": \"xxx\"}; {\"name\": \"瀹㈡埛鍚嶇О\", \"phone\": \"鎵嬫満鍙风爜\", \"detail_address\":\"璇︾粏鍦板潃\", \"next_visit_time\":\"涓嬪洖鍥炶鏃ユ湡\", \"member_name\": \"閿�鍞礋璐d汉\", \"client_status\": \"瀹㈡埛鐘舵�乗", \"client_level\": \"閲嶈绾у埆\", \"is_first\": \"鏄惁鏄瑕佽仈绯讳汉\"}", "type": "object", "additionalProperties": true } @@ -13691,9 +15055,6 @@ "request.GetContractList": { "type": "object", "properties": { - "keyword": { - "type": "string" - }, "page": { "description": "椤电爜", "type": "integer" @@ -13701,6 +15062,11 @@ "pageSize": { "description": "姣忛〉澶у皬", "type": "integer" + }, + "search_map": { + "description": "鎼滅储鏉′欢: map[string]interface{} {\"member_name\": \"閿�鍞礋璐d汉\", \"number\": \"鍚堝悓缂栧彿\", \"created_at\": \"鍒涘缓鏃堕棿\"}", + "type": "object", + "additionalProperties": true } } }, @@ -13729,9 +15095,6 @@ "request.GetFollowRecordList": { "type": "object", "properties": { - "keyword": { - "type": "string" - }, "page": { "description": "椤电爜", "type": "integer" @@ -13739,15 +15102,17 @@ "pageSize": { "description": "姣忛〉澶у皬", "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\": \"鑱旂郴浜哄鍚峔", \"sales_leads_id\": \"閿�鍞嚎绱d\", \"sale_chance_id\": \"閿�鍞満浼歩d\"}", + "type": "object", + "additionalProperties": true } } }, "request.GetMasterOrderList": { "type": "object", "properties": { - "keyword": { - "type": "string" - }, "page": { "description": "椤电爜", "type": "integer" @@ -13755,6 +15120,11 @@ "pageSize": { "description": "姣忛〉澶у皬", "type": "integer" + }, + "search_map": { + "description": "鎼滅储鏉′欢: map[string]interface{}{\"name\": \"xxx\"}; {\"number\": \"閿�鍞�诲崟鍙穃", \"client_name\": \"瀹㈡埛鍚嶇О\", \"member_name\": \"閿�鍞礋璐d汉\", \"start_time\": \"寮�濮嬫椂闂碶", \"end_time\": \"缁撴潫鏃堕棿\", \"money\": \"鎬婚噾棰漒", \"member_name\": \"璐熻矗浜篭"}", + "type": "object", + "additionalProperties": true } } }, @@ -13793,9 +15163,6 @@ "request.GetQuotationList": { "type": "object", "properties": { - "keyword": { - "type": "string" - }, "page": { "description": "椤电爜", "type": "integer" @@ -13803,15 +15170,17 @@ "pageSize": { "description": "姣忛〉澶у皬", "type": "integer" + }, + "search_map": { + "description": "鎼滅储鏉′欢: map[string]interface{}{\"name\": \"xxx\"}; {\"sale_chance_id\": 閿�鍞嚎绱d, \"client_name\": \"瀹㈡埛鍚嶇О\", \"member_name\": \"閿�鍞礋璐d汉\", \"contact_name\": \"鑱旂郴浜篭", \"validity_date\": \"鏈夋晥鏈焅"}", + "type": "object", + "additionalProperties": true } } }, "request.GetSaleChanceList": { "type": "object", "properties": { - "keyword": { - "type": "string" - }, "page": { "description": "椤电爜", "type": "integer" @@ -13819,6 +15188,11 @@ "pageSize": { "description": "姣忛〉澶у皬", "type": "integer" + }, + "search_map": { + "description": "鎼滅储鏉′欢: map[string]interface{}{\"name\": \"xxx\"}; {\"name\": \"鏈轰細鍚嶇О\", \"client_name\": \"瀹㈡埛鍚嶇О\",\"number\":\"缂栧彿\", \"contact_name\":\"鑱旂郴浜哄鍚峔", \"member_name\": \"閿�鍞礋璐d汉\", \"status\": \"鐘舵�乗", \"sale_stage\": \"闃舵\", \"possibilities\": \"鍙兘鎬", \"expected_time\": \"棰勮鎴愪氦鏃堕棿\", \"budget\": \"璧勯噾缁濆鍊糪", \"projected_amount\": \"棰勮鍚堝悓閲戦\"}", + "type": "object", + "additionalProperties": true } } }, @@ -13827,6 +15201,9 @@ "properties": { "keyword": { "type": "string" + }, + "keywordType": { + "$ref": "#/definitions/constvar.SalesDetailsKeywordType" }, "page": { "description": "椤电爜", @@ -13862,6 +15239,9 @@ "keyword": { "type": "string" }, + "keywordType": { + "$ref": "#/definitions/constvar.SalesRefundKeywordType" + }, "page": { "description": "椤电爜", "type": "integer" @@ -13877,6 +15257,9 @@ "properties": { "keyword": { "type": "string" + }, + "keywordType": { + "$ref": "#/definitions/constvar.SalesReturnKeywordType" }, "page": { "description": "椤电爜", @@ -13948,14 +15331,21 @@ "pageSize": { "description": "姣忛〉澶у皬", "type": "integer" + }, + "serviceOrderId": { + "description": "鏈嶅姟鍥炶鍗昳d", + "type": "integer" } } }, - "request.GetSubOrderList": { + "request.GetServiceOrderList": { "type": "object", "properties": { "keyword": { "type": "string" + }, + "keywordType": { + "$ref": "#/definitions/constvar.ServiceOrderKeywordType" }, "page": { "description": "椤电爜", @@ -13964,6 +15354,33 @@ "pageSize": { "description": "姣忛〉澶у皬", "type": "integer" + }, + "queryClass": { + "$ref": "#/definitions/constvar.ServiceOrderQueryClass" + }, + "salesDetailsId": { + "type": "integer" + }, + "serviceContractId": { + "type": "integer" + } + } + }, + "request.GetSubOrderList": { + "type": "object", + "properties": { + "page": { + "description": "椤电爜", + "type": "integer" + }, + "pageSize": { + "description": "姣忛〉澶у皬", + "type": "integer" + }, + "search_map": { + "description": "鎼滅储鏉′欢: map[string]interface{}{\"name\": \"xxx\"}; {\"number\": \"閿�鍞瓙鍗曞彿\", \"client_name\": \"瀹㈡埛鍚嶇О\", \"master_order_number\": \"閿�鍞�诲崟鍙穃", \"member_name\": \"閿�鍞礋璐d汉\", \"master_order_id\": \"閿�鍞�诲崟id\"}", + "type": "object", + "additionalProperties": true } } }, @@ -14033,6 +15450,21 @@ "type": "string" }, "subOrderId": { + "type": "integer" + } + } + }, + "request.PushSaleChance": { + "type": "object", + "required": [ + "id", + "step" + ], + "properties": { + "id": { + "type": "integer" + }, + "step": { "type": "integer" } } @@ -14156,28 +15588,37 @@ "signTime": { "type": "string" }, - "wechatOrderStatus": { + "wechatOrderStatusId": { "type": "integer" } } }, "request.SalesRefund": { "type": "object", + "required": [ + "sourceId", + "sourceType" + ], "properties": { - "accountId": { + "bankAccountId": { + "description": "璐︽埛id", "type": "integer" }, "clientId": { "type": "integer" }, "isInvoice": { - "type": "integer" + "type": "string" }, "memberId": { "type": "integer" }, "number": { "type": "string" + }, + "paymentTypeId": { + "description": "鏀舵鏂瑰紡ID", + "type": "integer" }, "products": { "type": "array", @@ -14191,8 +15632,17 @@ "refundDate": { "type": "string" }, - "refundMethod": { - "type": "string" + "sourceId": { + "description": "婧愬崟id", + "type": "integer" + }, + "sourceType": { + "description": "鏉ユ簮绫诲瀷锛�1閿�鍞��娆惧崟锛�", + "allOf": [ + { + "$ref": "#/definitions/constvar.RefundSourceType" + } + ] } } }, @@ -14209,22 +15659,38 @@ "type": "string" }, "products": { + "description": "閫�璐т骇鍝�", "type": "array", "items": { "$ref": "#/definitions/model.Product" } }, "reason": { + "description": "閫�璐у師鍥�", "type": "string" }, "repository": { "type": "string" }, "returnDate": { + "description": "閫�璐ф棩鏈�", "type": "string" }, - "status": { + "salesReturnStatusId": { + "description": "閫�璐х姸鎬乮d", "type": "integer" + }, + "sourceId": { + "description": "婧愬崟id", + "type": "integer" + }, + "sourceType": { + "description": "婧愬崟绫诲瀷锛�1閿�鍞槑缁嗭級", + "allOf": [ + { + "$ref": "#/definitions/constvar.SalesReturnSourceType" + } + ] } } }, @@ -14383,6 +15849,10 @@ }, "contact": { "$ref": "#/definitions/request.Contact" + }, + "contact_id": { + "description": "鑱旂郴浜篒D", + "type": "integer" }, "country_id": { "type": "integer" @@ -14568,6 +16038,22 @@ "items": { "$ref": "#/definitions/request.UpdateClientType" } + } + } + }, + "request.UpdateCollectionProjection": { + "type": "object", + "properties": { + "estimated_collection_amount": { + "description": "棰勮鏀舵閲戦", + "type": "number" + }, + "estimated_collection_time": { + "description": "棰勮鏀舵鏃堕棿", + "type": "string" + }, + "id": { + "type": "integer" } } }, @@ -14890,6 +16376,9 @@ }, "request.UpdateInvoice": { "type": "object", + "required": [ + "id" + ], "properties": { "clientId": { "description": "瀹㈡埛id", @@ -14925,6 +16414,13 @@ "principalId": { "description": "閿�鍞礋璐d汉id", "type": "integer" + }, + "products": { + "description": "鍙戠エ瀵瑰簲浜у搧锛屼粠鐩稿簲婧愬崟閲岃幏鍙�", + "type": "array", + "items": { + "$ref": "#/definitions/model.Product" + } }, "sourceId": { "description": "婧愬崟id", @@ -15225,6 +16721,12 @@ "number": { "type": "string" }, + "products": { + "type": "array", + "items": { + "$ref": "#/definitions/model.Product" + } + }, "quotation_status_id": { "type": "integer" }, @@ -15268,6 +16770,13 @@ "request.UpdateReceipt": { "type": "object", "properties": { + "amount": { + "description": "鏀舵閲戦", + "type": "number" + }, + "bankAccount": { + "$ref": "#/definitions/model.BankAccount" + }, "bankAccountId": { "description": "璐︽埛id", "type": "integer" @@ -15287,9 +16796,20 @@ "description": "甯佺", "type": "string" }, + "paymentType": { + "$ref": "#/definitions/model.PaymentType" + }, "paymentTypeId": { "description": "鏀舵鏂瑰紡ID", "type": "integer" + }, + "principal": { + "description": "璐熻矗浜篿d", + "allOf": [ + { + "$ref": "#/definitions/model.User" + } + ] }, "principalId": { "description": "璐熻矗浜篿d", @@ -15309,7 +16829,11 @@ }, "sourceType": { "description": "鏉ユ簮绫诲瀷锛�1閿�鍞槑缁嗗崟2鏈嶅姟鍚堝悓3閿�鍞彂绁�4鏀舵璁″垝5鍑哄簱鍗曪級", - "type": "integer" + "allOf": [ + { + "$ref": "#/definitions/constvar.ReceiptSourceType" + } + ] } } }, @@ -15824,6 +17348,18 @@ "description": "閲戦", "type": "number" }, + "amountReceivable": { + "description": "搴旀敹閲戦", + "type": "number" + }, + "amountReceived": { + "description": "宸叉敹閲戦", + "type": "number" + }, + "amountTotal": { + "description": "鎬婚", + "type": "number" + }, "collectionDate": { "description": "璁″垝鏀舵鏃ユ湡", "type": "string" @@ -15861,10 +17397,14 @@ }, "sourceType": { "description": "婧愬崟绫诲瀷锛�1閿�鍞槑缁�2鏈嶅姟鍚堝悓3閿�鍞彂绁級", - "type": "integer" + "allOf": [ + { + "$ref": "#/definitions/constvar.CollectionSourceType" + } + ] }, "status": { - "description": "鐘舵�侊紙1鏈敹2宸叉敹锛�", + "description": "鐘舵�侊紙1鏈敹2閮ㄥ垎宸叉敹3宸叉敹锛�", "allOf": [ { "$ref": "#/definitions/constvar.CollectionStatus" @@ -15879,14 +17419,14 @@ }, "request.UpdateServiceContract": { "type": "object", + "required": [ + "memberId" + ], "properties": { "clientId": { "type": "integer" }, "contactId": { - "type": "integer" - }, - "contractId": { "type": "integer" }, "endTime": { @@ -15914,6 +17454,9 @@ "type": "string" }, "saleChanceId": { + "type": "integer" + }, + "salesDetailsId": { "type": "integer" }, "serviceTimes": { @@ -16022,6 +17565,10 @@ }, "contact": { "$ref": "#/definitions/request.Contact" + }, + "contact_id": { + "description": "鑱旂郴浜篒D", + "type": "integer" }, "country_id": { "type": "integer" @@ -16137,7 +17684,7 @@ "satisfaction": { "type": "integer" }, - "serviceId": { + "serviceOrderId": { "type": "integer" }, "solveRate": { @@ -16175,10 +17722,6 @@ "description": "鑱旂郴浜篿d", "type": "integer" }, - "contractId": { - "description": "鍚堝悓id", - "type": "integer" - }, "expectTime": { "description": "甯屾湜澶勭悊鏃堕棿", "type": "string" @@ -16194,10 +17737,6 @@ "id": { "type": "integer" }, - "orderId": { - "description": "閿�鍞鍗昳d", - "type": "integer" - }, "priorityLevelId": { "description": "浼樺厛绾у埆id", "type": "integer" @@ -16206,9 +17745,13 @@ "description": "闂鎻忚堪", "type": "string" }, - "productId": { - "description": "浜у搧id", - "type": "integer" + "productName": { + "description": "浜у搧鍚嶇О", + "type": "string" + }, + "productTypeName": { + "description": "浜у搧鍒嗙被鍚嶇О", + "type": "string" }, "realTime": { "description": "瀹為檯澶勭悊鏃堕棿", @@ -16222,6 +17765,14 @@ "description": "閿�鍞満浼歩d", "type": "integer" }, + "salesDetailsId": { + "description": "閿�鍞鍗昳d", + "type": "integer" + }, + "serviceContractId": { + "description": "鍚堝悓id", + "type": "integer" + }, "serviceManId": { "description": "鏈嶅姟浜哄憳", "type": "integer" @@ -16229,6 +17780,10 @@ "serviceNumber": { "description": "鏈嶅姟鍗曠紪鍙�", "type": "string" + }, + "serviceOrderStatusId": { + "description": "澶勭悊鐘舵��", + "type": "integer" }, "serviceTypeId": { "description": "鏈嶅姟鏂瑰紡id", @@ -16246,10 +17801,6 @@ "description": "鍐呴儴澶囨敞", "type": "string" }, - "status": { - "description": "澶勭悊鐘舵��", - "type": "integer" - }, "subject": { "description": "涓婚", "type": "string" @@ -16257,6 +17808,17 @@ "timeSpentId": { "description": "鑺辫垂鏃堕棿", "type": "integer" + } + } + }, + "request.UpdateServiceOrderStatus": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" } } }, @@ -16421,6 +17983,17 @@ } } }, + "request.UpdateWechatOrderStatus": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + } + } + }, "response.AccountIdResponse": { "type": "object", "properties": { @@ -16501,6 +18074,17 @@ } } }, + "response.ContactInformationResponse": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/model.ContactInformation" + } + } + } + }, "response.ContactResponse": { "type": "object", "properties": { -- Gitblit v1.8.0