From 3e5480a69ab4d6c3494eb517e69e141b80fac3de Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期二, 17 十月 2023 17:25:11 +0800
Subject: [PATCH] 联系人去除编码
---
model/request/salesLeads.go | 37 ++++++++++++++++++++++++++++---------
1 files changed, 28 insertions(+), 9 deletions(-)
diff --git a/model/request/salesLeads.go b/model/request/salesLeads.go
index 578feb7..821be06 100644
--- a/model/request/salesLeads.go
+++ b/model/request/salesLeads.go
@@ -1,18 +1,26 @@
package request
+import (
+ "aps_crm/constvar"
+ "aps_crm/proto/code"
+)
+
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"` // 澶囨敞
+ 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
+ CodeRule code.CodeStandard `json:"codeRule"`
Address
}
@@ -23,5 +31,16 @@
type GetSalesLeadsList struct {
PageInfo
- Keyword string `json:"keyword"`
+ 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