From 0f15e7b48d064fa6faf99832ca5f4be9bc54e199 Mon Sep 17 00:00:00 2001 From: wangpengfei <274878379@qq.com> Date: 星期五, 11 八月 2023 13:41:09 +0800 Subject: [PATCH] fix --- docs/docs.go | 1350 +++++++++++++++++++++++++++++++++++++++++++++++++++------ 1 files changed, 1,191 insertions(+), 159 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index 54c4026..f31661e 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -1242,6 +1242,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": [ @@ -2727,76 +2848,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" } } } @@ -4771,6 +4877,106 @@ } } }, + "/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" + } + } + } + } + ] + } + } + } + } + }, "/api/province/add": { "post": { "produces": [ @@ -6682,6 +6888,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" + } + } + } + } + }, "/api/salesLeads/update": { "put": { "produces": [ @@ -7505,7 +7741,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/request.DeleteserviceContract" + "$ref": "#/definitions/request.DeleteServiceContract" } } ], @@ -7527,7 +7763,7 @@ "tags": [ "ServiceContract" ], - "summary": "鐢熸垚璁″垝鍒楄〃", + "summary": "鏈嶅姟鍚堝悓鍒楄〃", "parameters": [ { "description": "鍙傛暟", @@ -8152,7 +8388,7 @@ } }, "/api/serviceOrder/list": { - "get": { + "post": { "produces": [ "application/json" ], @@ -8160,6 +8396,17 @@ "鏈嶅姟鍗曠鐞�" ], "summary": "鑾峰彇鏈嶅姟鍗曞垪琛�", + "parameters": [ + { + "description": "鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.GetServiceOrderList" + } + } + ], "responses": { "200": { "description": "OK", @@ -8202,6 +8449,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" } } ], @@ -9368,6 +9778,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": { @@ -9438,24 +10011,6 @@ ], "x-enum-varnames": [ "FaqQueryClassExpireLessThen60Days" - ] - }, - "constvar.FileKeywordType": { - "type": "string", - "enum": [ - "" - ], - "x-enum-varnames": [ - "FileKeywordCustomerName" - ] - }, - "constvar.FileQueryClass": { - "type": "string", - "enum": [ - "" - ], - "x-enum-varnames": [ - "FileQueryClassExpireLessThen60Days" ] }, "constvar.InvoiceKeywordType": { @@ -9559,31 +10114,45 @@ "ReceiptQueryClassExpireLessThen60Days" ] }, + "constvar.SalesDetailsKeywordType": { + "type": "string", + "enum": [ + "瀹㈡埛鍚嶇О", + "璁㈠崟缂栧彿", + "绛剧害鏃ユ湡", + "閿�鍞礋璐d汉", + "浜у搧鍚嶇О" + ], + "x-enum-varnames": [ + "SalesDetailsKeywordTypeCustomerName", + "SalesDetailsKeywordTypeOrderNumber", + "SalesDetailsKeywordTypeSignTime", + "SalesDetailsKeywordTypePrincipal", + "SalesDetailsKeywordTypeProductName" + ] + }, "constvar.SalesStatus": { "type": "integer", "enum": [ - -1, + 0, 1, 2, 3, - 4, - 5 + -1 ], "x-enum-comments": { "SalesStatusFail": "澶辫触", "SalesStatusIng": "杩涜涓�", "SalesStatusLevelUptoClient": "鍗囩骇涓哄鎴�", "SalesStatusLevelUptoClientAndSalesChance": "鍗囩骇涓哄鎴峰苟涓旀湁閿�鍞満浼�", - "SalesStatusNew": "鏂板缓", - "SalesStatusSuccess": "鎴愬姛" + "SalesStatusNew": "鏂板缓" }, "x-enum-varnames": [ - "SalesStatusFail", "SalesStatusNew", "SalesStatusIng", - "SalesStatusSuccess", "SalesStatusLevelUptoClient", - "SalesStatusLevelUptoClientAndSalesChance" + "SalesStatusLevelUptoClientAndSalesChance", + "SalesStatusFail" ] }, "constvar.ServiceContractKeywordType": { @@ -9691,6 +10260,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": [ @@ -9707,6 +10326,24 @@ "UserTypeSuper", "UserTypePrimary", "UserTypeSub" + ] + }, + "constvar.WechatOrderStatusKeywordType": { + "type": "string", + "enum": [ + "" + ], + "x-enum-varnames": [ + "WechatOrderStatusKeywordCustomerName" + ] + }, + "constvar.WechatOrderStatusQueryClass": { + "type": "string", + "enum": [ + "" + ], + "x-enum-varnames": [ + "WechatOrderStatusQueryClassExpireLessThen60Days" ] }, "contextx.Response": { @@ -9864,6 +10501,9 @@ "latest_service_time": { "type": "string" }, + "member": { + "$ref": "#/definitions/model.User" + }, "member_id": { "type": "integer" }, @@ -9948,6 +10588,42 @@ "type": "integer" }, "name": { + "type": "string" + } + } + }, + "model.CollectionProjection": { + "type": "object", + "properties": { + "created_at": { + "description": "The date when the item was created\nexample: 2023-08-10 15:48:25", + "type": "string" + }, + "creator": { + "type": "integer" + }, + "deleted_at": { + "description": "The date when the item was deleted\nexample: 2023-08-10 15:48:25", + "type": "string" + }, + "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" } } @@ -10240,50 +10916,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": { @@ -10313,6 +10945,9 @@ }, "id": { "type": "integer" + }, + "member": { + "$ref": "#/definitions/model.User" }, "member_id": { "type": "integer" @@ -10400,6 +11035,12 @@ "principalId": { "description": "閿�鍞礋璐d汉id", "type": "integer" + }, + "products": { + "type": "array", + "items": { + "$ref": "#/definitions/model.Product" + } }, "sourceId": { "description": "婧愬崟id", @@ -10650,7 +11291,7 @@ "type": "object", "properties": { "amount": { - "type": "integer" + "type": "number" }, "desc": { "type": "string" @@ -10718,6 +11359,12 @@ }, "number": { "type": "string" + }, + "products": { + "type": "array", + "items": { + "$ref": "#/definitions/model.Product" + } }, "quotation_status_id": { "type": "integer" @@ -10882,6 +11529,12 @@ "client_id": { "type": "integer" }, + "collection_projections": { + "type": "array", + "items": { + "$ref": "#/definitions/model.CollectionProjection" + } + }, "competitors": { "type": "string" }, @@ -11017,6 +11670,22 @@ "addressee": { "type": "string" }, + "amountInvoiced": { + "description": "宸插紑绁ㄩ噾棰�", + "type": "number" + }, + "amountReceivable": { + "description": "搴旀敹閲戦", + "type": "number" + }, + "amountReceived": { + "description": "宸叉敹閲戦", + "type": "number" + }, + "amountUnInvoiced": { + "description": "鏈紑绁ㄩ噾棰�", + "type": "number" + }, "client": { "$ref": "#/definitions/model.Client" }, @@ -11059,6 +11728,9 @@ "remark": { "type": "string" }, + "saleChance": { + "$ref": "#/definitions/model.SaleChance" + }, "saleChanceId": { "type": "integer" }, @@ -11069,6 +11741,9 @@ "type": "string" }, "wechatOrderStatus": { + "$ref": "#/definitions/model.WechatOrderStatus" + }, + "wechatOrderStatusId": { "type": "integer" } } @@ -11123,6 +11798,9 @@ }, "province_id": { "type": "integer" + }, + "reason": { + "type": "string" }, "region": { "$ref": "#/definitions/model.Region" @@ -11307,6 +11985,9 @@ "model.ServiceContract": { "type": "object", "properties": { + "SaleChance": { + "$ref": "#/definitions/model.SaleChance" + }, "amountInvoiced": { "description": "宸插紑绁ㄩ噾棰�", "type": "number" @@ -11319,13 +12000,20 @@ "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": { @@ -11346,6 +12034,9 @@ "$ref": "#/definitions/model.Product" } }, + "quotation": { + "$ref": "#/definitions/model.Quotation" + }, "quotationId": { "type": "integer" }, @@ -11355,8 +12046,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" @@ -11426,8 +12129,17 @@ "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" @@ -11441,6 +12153,9 @@ "id": { "type": "integer" }, + "isVisit": { + "$ref": "#/definitions/model.IsVisit" + }, "isVisitId": { "type": "integer" }, @@ -11449,6 +12164,9 @@ }, "number": { "type": "string" + }, + "oldMember": { + "$ref": "#/definitions/model.User" }, "oldMemberId": { "type": "integer" @@ -11459,6 +12177,9 @@ "remark": { "type": "string" }, + "satisfaction": { + "$ref": "#/definitions/model.Satisfaction" + }, "satisfactionId": { "type": "integer" }, @@ -11468,8 +12189,14 @@ "serviceOrder": { "$ref": "#/definitions/model.ServiceOrder" }, + "solveRate": { + "$ref": "#/definitions/model.SolveRate" + }, "solveRateId": { "type": "integer" + }, + "timelyRate": { + "$ref": "#/definitions/model.TimelyRate" }, "timelyRateId": { "type": "integer" @@ -11488,11 +12215,11 @@ "type": "string" }, "carFare": { - "description": "浜ら�氳垂", + "description": "浜ら�氳垂 // 浜ら�氳垂", "type": "number" }, "chargeAmount": { - "description": "鏀惰垂閲戦", + "description": "鏀惰垂閲戦 // 鏀惰垂閲戦", "type": "number" }, "client": { @@ -11585,6 +12312,9 @@ "description": "鏈嶅姟鍗曠紪鍙�", "type": "string" }, + "serviceOrderStatus": { + "$ref": "#/definitions/model.ServiceOrderStatus" + }, "serviceType": { "$ref": "#/definitions/model.ServiceType" }, @@ -11617,6 +12347,17 @@ "timeSpentId": { "description": "鑺辫垂鏃堕棿", "type": "integer" + } + } + }, + "model.ServiceOrderStatus": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" } } }, @@ -11763,6 +12504,55 @@ "type": "string" }, "uuid": { + "type": "string" + } + } + }, + "model.WechatOrderStatus": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + } + } + }, + "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" } } @@ -11945,6 +12735,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" } } }, @@ -12200,6 +13007,13 @@ "description": "閿�鍞礋璐d汉id", "type": "integer" }, + "products": { + "description": "鍙戠エ瀵瑰簲浜у搧锛屼粠鐩稿簲婧愬崟閲岃幏鍙�", + "type": "array", + "items": { + "$ref": "#/definitions/model.Product" + } + }, "sourceId": { "description": "婧愬崟id", "type": "integer" @@ -12402,6 +13216,12 @@ }, "number": { "type": "string" + }, + "products": { + "type": "array", + "items": { + "$ref": "#/definitions/model.Product" + } }, "quotation_status_id": { "type": "integer" @@ -12666,8 +13486,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" } } }, @@ -12785,14 +13656,14 @@ }, "request.AddServiceContract": { "type": "object", + "required": [ + "memberId" + ], "properties": { "clientId": { "type": "integer" }, "contactId": { - "type": "integer" - }, - "contractId": { "type": "integer" }, "endTime": { @@ -12817,6 +13688,9 @@ "type": "string" }, "saleChanceId": { + "type": "integer" + }, + "salesDetailsId": { "type": "integer" }, "serviceTimes": { @@ -13120,6 +13994,17 @@ } } }, + "request.AddServiceOrderStatus": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + } + } + }, "request.AddServiceType": { "type": "object", "properties": { @@ -13236,6 +14121,17 @@ } } }, + "request.AddWechatOrderStatus": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + } + } + }, "request.Assign": { "type": "object", "properties": { @@ -13249,6 +14145,7 @@ "type": "integer" }, "type": { + "description": "绫诲瀷: client: 瀹㈡埛; salesLead: 閿�鍞嚎绱�; contact: 鑱旂郴浜�; followRecord: 璺熻繘璁板綍", "type": "string" } } @@ -13438,6 +14335,17 @@ } } }, + "request.DeleteServiceContract": { + "type": "object", + "properties": { + "ids": { + "type": "array", + "items": { + "type": "integer" + } + } + } + }, "request.DeleteServiceFeeManage": { "type": "object", "properties": { @@ -13469,14 +14377,30 @@ } } }, - "request.DeleteserviceContract": { + "request.DownloadFile": { "type": "object", + "required": [ + "id", + "key", + "sourceId", + "sourceType" + ], "properties": { - "ids": { - "type": "array", - "items": { - "type": "integer" - } + "id": { + "description": "闄勪欢id", + "type": "integer" + }, + "key": { + "description": "闄勪欢瀛樺偍key", + "type": "string" + }, + "sourceId": { + "description": "鏉ユ簮id", + "type": "integer" + }, + "sourceType": { + "description": "闄勪欢鏉ユ簮", + "type": "string" } } }, @@ -13539,6 +14463,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\": \"閲嶈绾у埆\"}", "type": "object", "additionalProperties": true } @@ -13547,9 +14472,6 @@ "request.GetContactList": { "type": "object", "properties": { - "keyword": { - "type": "string" - }, "page": { "description": "椤电爜", "type": "integer" @@ -13557,6 +14479,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\": \"閲嶈绾у埆\", \"is_first\": \"鏄惁鏄瑕佽仈绯讳汉\"}", + "type": "object", + "additionalProperties": true } } }, @@ -13601,9 +14528,6 @@ "request.GetFollowRecordList": { "type": "object", "properties": { - "keyword": { - "type": "string" - }, "page": { "description": "椤电爜", "type": "integer" @@ -13611,6 +14535,11 @@ "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\": \"鑱旂郴浜哄鍚峔"}", + "type": "object", + "additionalProperties": true } } }, @@ -13700,6 +14629,9 @@ "keyword": { "type": "string" }, + "keywordType": { + "$ref": "#/definitions/constvar.SalesDetailsKeywordType" + }, "page": { "description": "椤电爜", "type": "integer" @@ -13713,9 +14645,6 @@ "request.GetSalesLeadsList": { "type": "object", "properties": { - "keyword": { - "type": "string" - }, "page": { "description": "椤电爜", "type": "integer" @@ -13723,6 +14652,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 } } }, @@ -13821,6 +14755,28 @@ } } }, + "request.GetServiceOrderList": { + "type": "object", + "properties": { + "keyword": { + "type": "string" + }, + "keywordType": { + "$ref": "#/definitions/constvar.ServiceOrderKeywordType" + }, + "page": { + "description": "椤电爜", + "type": "integer" + }, + "pageSize": { + "description": "姣忛〉澶у皬", + "type": "integer" + }, + "queryClass": { + "$ref": "#/definitions/constvar.ServiceOrderQueryClass" + } + } + }, "request.GetSubOrderList": { "type": "object", "properties": { @@ -13904,6 +14860,25 @@ }, "subOrderId": { "type": "integer" + } + } + }, + "request.PushSalesLeads": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "reason": { + "type": "string" + }, + "step": { + "description": "鍟嗘満鐘舵��: 1: 璺熻繘涓�; -1:澶辫触", + "allOf": [ + { + "$ref": "#/definitions/constvar.SalesStatus" + } + ] } } }, @@ -14007,7 +14982,7 @@ "signTime": { "type": "string" }, - "wechatOrderStatus": { + "wechatOrderStatusId": { "type": "integer" } } @@ -14422,6 +15397,22 @@ } } }, + "request.UpdateCollectionProjection": { + "type": "object", + "properties": { + "estimated_collection_amount": { + "description": "棰勮鏀舵閲戦", + "type": "number" + }, + "estimated_collection_time": { + "description": "棰勮鏀舵鏃堕棿", + "type": "string" + }, + "id": { + "type": "integer" + } + } + }, "request.UpdateContact": { "type": "object", "properties": { @@ -14741,6 +15732,9 @@ }, "request.UpdateInvoice": { "type": "object", + "required": [ + "id" + ], "properties": { "clientId": { "description": "瀹㈡埛id", @@ -14776,6 +15770,13 @@ "principalId": { "description": "閿�鍞礋璐d汉id", "type": "integer" + }, + "products": { + "description": "鍙戠エ瀵瑰簲浜у搧锛屼粠鐩稿簲婧愬崟閲岃幏鍙�", + "type": "array", + "items": { + "$ref": "#/definitions/model.Product" + } }, "sourceId": { "description": "婧愬崟id", @@ -15075,6 +16076,12 @@ }, "number": { "type": "string" + }, + "products": { + "type": "array", + "items": { + "$ref": "#/definitions/model.Product" + } }, "quotation_status_id": { "type": "integer" @@ -15730,14 +16737,14 @@ }, "request.UpdateServiceContract": { "type": "object", + "required": [ + "memberId" + ], "properties": { "clientId": { "type": "integer" }, "contactId": { - "type": "integer" - }, - "contractId": { "type": "integer" }, "endTime": { @@ -15765,6 +16772,9 @@ "type": "string" }, "saleChanceId": { + "type": "integer" + }, + "salesDetailsId": { "type": "integer" }, "serviceTimes": { @@ -16111,6 +17121,17 @@ } } }, + "request.UpdateServiceOrderStatus": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + } + } + }, "request.UpdateServiceType": { "type": "object", "properties": { @@ -16272,6 +17293,17 @@ } } }, + "request.UpdateWechatOrderStatus": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + } + } + }, "response.AccountIdResponse": { "type": "object", "properties": { -- Gitblit v1.8.0