From 6befd5f2fe9779883993b87f2e686885c147bc34 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期三, 20 三月 2024 14:43:20 +0800
Subject: [PATCH] fix
---
model/request/salesLeads.go | 75 ++++++++++++++++++++++---------------
1 files changed, 44 insertions(+), 31 deletions(-)
diff --git a/model/request/salesLeads.go b/model/request/salesLeads.go
index 5f95598..3c4de2f 100644
--- a/model/request/salesLeads.go
+++ b/model/request/salesLeads.go
@@ -1,31 +1,44 @@
-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"` // 澶囨敞
+ DetailAddress string `json:"detail_address"` // 璇︾粏鍦板潃
+ CodeStandID string `json:"codeStandID"` //缂栫爜id
+ 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