From 87cad05224d857ec0e113ae03b006d2a52ec3049 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期三, 16 八月 2023 11:55:26 +0800
Subject: [PATCH] Merge branch 'zq'

---
 model/request/salesLeads.go |   71 ++++++++++++++++++++---------------
 1 files changed, 40 insertions(+), 31 deletions(-)

diff --git a/model/request/salesLeads.go b/model/request/salesLeads.go
index 5f95598..d4684b2 100644
--- a/model/request/salesLeads.go
+++ b/model/request/salesLeads.go
@@ -1,31 +1,40 @@
-package request
-
-type AddSalesLeads struct {
-	SalesLeads
-}
-
-type SalesLeads struct {
-	Name            string `json:"name"`             // 鍏徃鍚嶇О
-	Number          string `json:"number"`           // 閿�鍞嚎绱㈢紪鍙�
-	ContactName     string `json:"contact_name"`     // 鑱旂郴浜哄鍚�
-	ContactPhone    string `json:"contact_phone"`    // 鑱旂郴浜虹數璇�
-	ContactPosition string `json:"contact_position"` // 鑱旂郴浜鸿亴浣�
-	SalesSourcesId  int    `json:"sales_sources_id"` // 鍟嗘満鏉ユ簮ID
-	MemberId        int    `json:"member_id"`        // 閿�鍞礋璐d汉ID
-	Desc            string `json:"desc"`             // 澶囨敞
-	Address
-}
-
-type UpdateSalesLeads struct {
-	Id int `json:"id"`
-	SalesLeads
-}
-
-type GetSalesLeadsList struct {
-	PageInfo
-	Keyword string `json:"keyword"`
-}
-
-type DeleteSalesLeads struct {
-	Ids []int `json:"ids"`
-}
+package request
+
+import "aps_crm/constvar"
+
+type AddSalesLeads struct {
+	SalesLeads
+}
+
+type SalesLeads struct {
+	Name            string `json:"name"`             // 鍏徃鍚嶇О
+	Number          string `json:"number"`           // 閿�鍞嚎绱㈢紪鍙�
+	ContactName     string `json:"contact_name"`     // 鑱旂郴浜哄鍚�
+	ContactPhone    string `json:"contact_phone"`    // 鑱旂郴浜虹數璇�
+	ContactPosition string `json:"contact_position"` // 鑱旂郴浜鸿亴浣�
+	SalesSourcesId  int    `json:"sales_sources_id"` // 鍟嗘満鏉ユ簮ID
+	MemberId        int    `json:"member_id"`        // 閿�鍞礋璐d汉ID
+	Desc            string `json:"desc"`             // 澶囨敞
+	Address
+}
+
+type UpdateSalesLeads struct {
+	Id int `json:"id"`
+	SalesLeads
+}
+
+type GetSalesLeadsList struct {
+	PageInfo
+	SearchMap map[string]interface{} `json:"search_map"` // 鎼滅储鏉′欢: map[string]interface{}{"name": "xxx"} {"name": "瀹㈡埛鍚嶇О", "number": "閿�鍞嚎绱㈢紪鍙�", "contact_name": "鑱旂郴浜哄鍚�", "phone": "鎵嬫満鍙风爜", "sales_resources": "鍟嗘満鏉ユ簮", "city": "鍩庡競", "province": "鐪佷唤", "member_name": "璐熻矗浜�"}
+}
+
+type DeleteSalesLeads struct {
+	Ids []int `json:"ids"`
+}
+
+// swagger:model PushSalesLeads
+type PushSalesLeads struct {
+	Id     int                  `json:"id"`
+	Step   constvar.SalesStatus `json:"step"` // 鍟嗘満鐘舵��: 1: 璺熻繘涓�; -1:澶辫触
+	Reason string               `json:"reason"`
+}

--
Gitblit v1.8.0