From 530fed8ec225453572d57b15c200ab062c335457 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期三, 01 十一月 2023 19:20:21 +0800
Subject: [PATCH] 公海member_id使用0

---
 model/response/response.go |  212 ++++++++++++++++++++++++++++++++++++++++++++++++----
 1 files changed, 194 insertions(+), 18 deletions(-)

diff --git a/model/response/response.go b/model/response/response.go
index 08d86e3..0c6991f 100644
--- a/model/response/response.go
+++ b/model/response/response.go
@@ -47,11 +47,13 @@
 	}
 
 	ContactResponse struct {
-		List []*model.ContactDetail `json:"list"`
+		List  []*model.ContactDetail `json:"list"`
+		Count int                    `json:"count"`
 	}
 
 	ClientResponse struct {
-		List []*model.Client `json:"list"`
+		List  []*model.Client `json:"list"`
+		Count int             `json:"count"`
 	}
 
 	ClientStatusResponse struct {
@@ -87,7 +89,8 @@
 	}
 
 	SalesLeadsResponse struct {
-		List []*model.SalesLeads `json:"list"`
+		List  []*model.SalesLeads `json:"list"`
+		Count int                 `json:"count"`
 	}
 
 	SalesSourceResponse struct {
@@ -95,11 +98,13 @@
 	}
 
 	FollowRecordResponse struct {
-		List []*model.FollowRecord `json:"list"`
+		List  []*model.FollowRecord `json:"list"`
+		Count int                   `json:"count"`
 	}
 
 	SaleChanceResponse struct {
-		List []*model.SaleChance `json:"list"`
+		List  []*model.SaleChance `json:"list"`
+		Count int                 `json:"count"`
 	}
 
 	SaleStageResponse struct {
@@ -123,47 +128,58 @@
 	}
 
 	QuotationResponse struct {
-		List []*model.Quotation `json:"list"`
+		List  []*model.Quotation `json:"list"`
+		Count int                `json:"count"`
 	}
 
 	MasterOrderResponse struct {
-		List []*model.MasterOrder `json:"list"`
+		List  []*model.MasterOrder `json:"list"`
+		Count int                  `json:"count"`
 	}
 
 	SubOrderResponse struct {
-		List []*model.SubOrder `json:"list"`
+		List  []*model.SubOrder `json:"list"`
+		Count int               `json:"count"`
 	}
 
 	SalesDetailsResponse struct {
-		List []*model.SalesDetails `json:"list"`
+		List  []*model.SalesDetails `json:"list"`
+		Count int                   `json:"count"`
 	}
 
 	SalesReturnResponse struct {
-		List []*model.SalesReturn `json:"list"`
+		List  []*model.SalesReturn `json:"list"`
+		Count int                  `json:"count"`
 	}
 
 	SalesRefundResponse struct {
-		List []*model.SalesRefund `json:"list"`
+		List  []*model.SalesRefund `json:"list"`
+		Count int                  `json:"count"`
 	}
 
 	ContractResponse struct {
-		List []*model.Contract `json:"list"`
+		List  []*model.Contract `json:"list"`
+		Count int               `json:"count"`
 	}
 
 	PlanResponse struct {
-		List []*model.Plan `json:"list"`
+		List  []*model.Plan `json:"list"`
+		Count int           `json:"count"`
 	}
 
 	ServiceContractsResponse struct {
-		List []*model.ServiceContract `json:"list"`
+		List  []*model.ServiceContract `json:"list"`
+		Count int                      `json:"count"`
 	}
 
 	OrderManageResponse struct {
-		List []*model.OrderManage `json:"list"`
+		List  []*model.OrderManage `json:"list"`
+		Count int                  `json:"count"`
 	}
 
 	ServiceFollowupResponse struct {
-		List []*model.ServiceFollowup `json:"list"`
+		List  []*model.ServiceFollowup `json:"list"`
+		Count int                      `json:"count"`
 	}
 
 	CustomerServiceSheetResponse struct {
@@ -171,10 +187,170 @@
 	}
 
 	ServiceFeeManageResponse struct {
-		List []*model.ServiceFeeManage `json:"list"`
+		List  []*model.ServiceFeeManage `json:"list"`
+		Count int                       `json:"count"`
 	}
 
 	MenuTreeResponse struct {
-		List []*model.Menu `json:"list"`
+		List []model.Menu `json:"list"`
+	}
+
+	DataResponse struct {
+
+		// 甯佺
+		Currency []*model.Currency `json:"currency"`
+
+		// 鎶ヤ环鍗曠姸鎬�
+		QuotationStatus []*model.QuotationStatus `json:"quotationStatus"`
+
+		// 閫�璐т粨搴�
+		Repository []*model.Repository `json:"repository"`
+
+		// 閫�璐у崟鐘舵��
+		SalesReturnStatus []*model.SalesReturnStatus `json:"salesReturnStatus"`
+
+		// 璐︽埛
+		AccountId []*model.AccountId `json:"accountId"`
+
+		// 鏄惁寮�绁�
+		IsInvoice []*model.IsInvoice `json:"isInvoice"`
+
+		// 閫�娆炬柟寮�
+		RefundMethod []*model.RefundMethod `json:"refundMethod"`
+
+		// 鏈嶅姟鍚堝悓绫诲瀷
+		ServiceContractType []*model.ServiceContractType `json:"serviceContractType"`
+
+		// 鏈嶅姟鍚堝悓鐘舵��
+		ServiceContractStatus []*model.ServiceContractStatus `json:"serviceContractStatus"`
+
+		// 宸ュ崟绫诲瀷
+		OrderType []*model.OrderType `json:"orderType"`
+
+		// 鎶ヨ〃鏉ユ簮
+		ReportSource []*model.ReportSource `json:"reportSource"`
+
+		// 鏈嶅姟浜哄憳鏄惁鏉ヨ繃
+		IsVisit []*model.IsVisit `json:"isVisit"`
+
+		// 鍥藉鏁版嵁
+		Country []*model.Country `json:"country"`
+		// 鐪佷唤鏁版嵁
+		Province []*model.Province `json:"province"`
+		// 鍩庡競鏁版嵁
+		City []*model.City `json:"city"`
+		// 鍖哄煙鏁版嵁
+		Region []*model.Region `json:"region"`
+		// 瀹㈡埛绛夌骇
+		ClientLevel []*model.ClientLevel `json:"client_level"`
+		// 瀹㈡埛鐘舵��
+		ClientStatus []*model.ClientStatus `json:"client_status"`
+		// 瀹㈡埛绫诲瀷
+		ClientType []*model.ClientType `json:"client_type"`
+		// 瀹㈡埛鏉ユ簮
+		ClientOrigin []*model.ClientOrigin `json:"client_origin"`
+		// 琛屼笟
+		Industry []*model.Industry `json:"industry"`
+		// 浼佷笟鎬ц川
+		EnterpriseNature []*model.EnterpriseNature `json:"enterprise_nature"`
+		// 娉ㄥ唽璧勯噾
+		RegisteredCapital []*model.RegisteredCapital `json:"registered_capital"`
+		// 浼佷笟瑙勬ā
+		EnterpriseScale []*model.EnterpriseScale `json:"enterprise_scale"`
+		// 閿�鍞樁娈�
+		SaleStage []*model.SaleStage `json:"sale_stage"`
+		// 閿�鍞被鍨�
+		SaleType []*model.SaleType `json:"sale_type"`
+		// 鍟嗘満鏉ユ簮
+		SalesSource []*model.SalesSources `json:"sales_source"`
+		// 鑰佸鎴疯惀閿�
+		RegularCustomers []*model.RegularCustomers `json:"regular_customers"`
+		// Member
+		Member []*model.User `json:"member"`
+		// 閮ㄩ棬
+		Department []*model.Department `json:"department"`
+		// 婊℃剰搴�
+		Satisfaction []*model.Satisfaction `json:"satisfaction"`
+		// 鍙婃椂鐜�
+		TimelyRate []*model.TimelyRate `json:"timely_rate"`
+		// 瑙e喅鐜�
+		SolveRate []*model.SolveRate `json:"solve_rate"`
+		// 鍙兘鎬�
+		Possibility []*model.Possibility `json:"possibility"`
+		// 鐘舵��
+		Status []*model.Status `json:"status"`
+	}
+
+	DepartmentResponse struct {
+		List []*model.Department `json:"list"`
+	}
+
+	SatisfactionResponse struct {
+		List []*model.Satisfaction `json:"list"`
+	}
+
+	TimelyRateResponse struct {
+		List []*model.TimelyRate `json:"list"`
+	}
+
+	SolveRateResponse struct {
+		List []*model.SolveRate `json:"list"`
+	}
+
+	IsVisitResponse struct {
+		List []*model.IsVisit `json:"list"`
+	}
+
+	ReportSourceResponse struct {
+		List []*model.ReportSource `json:"list"`
+	}
+
+	OrderTypeResponse struct {
+		List []*model.OrderType `json:"list"`
+	}
+
+	ServiceContractStatusResponse struct {
+		List []*model.ServiceContractStatus `json:"list"`
+	}
+
+	ServiceContractTypeResponse struct {
+		List []*model.ServiceContractType `json:"list"`
+	}
+
+	RefundMethodResponse struct {
+		List []*model.RefundMethod `json:"list"`
+	}
+
+	IsInvoiceResponse struct {
+		List []*model.IsInvoice `json:"list"`
+	}
+
+	AccountIdResponse struct {
+		List []*model.AccountId `json:"list"`
+	}
+
+	SalesReturnStatusResponse struct {
+		List []*model.SalesReturnStatus `json:"list"`
+	}
+
+	RepositoryResponse struct {
+		List []*model.Repository `json:"list"`
+	}
+
+	QuotationStatusResponse struct {
+		List []*model.QuotationStatus `json:"list"`
+	}
+
+	CurrencyResponse struct {
+		List []*model.Currency `json:"list"`
+	}
+
+	CollectionProjectionListResponse struct {
+		List  []*model.CollectionProjection `json:"list"`
+		Count int                           `json:"count"`
+	}
+
+	ContactInformationResponse struct {
+		List []*model.ContactInformation `json:"list"`
 	}
 )

--
Gitblit v1.8.0