From 4a598a4d1289039928bab05e14dd5735ad219a0f Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期五, 13 十月 2023 16:48:22 +0800
Subject: [PATCH] bug修改
---
model/request/contact.go | 35 ++++++++++++++++++++---------------
1 files changed, 20 insertions(+), 15 deletions(-)
diff --git a/model/request/contact.go b/model/request/contact.go
index de6601f..84dd141 100644
--- a/model/request/contact.go
+++ b/model/request/contact.go
@@ -1,25 +1,29 @@
package request
+import "aps_crm/proto/code"
+
type AddContact struct {
Contact
}
type Contact struct {
- Name string `json:"name"` // 鑱旂郴浜哄悕绉�
- Number string `json:"number"` // 鑱旂郴浜虹紪鍙�
- MemberId int `json:"member_id"` // 鎵�灞炴垚鍛業D
- ClientId int `json:"client_id"` // 鎵�灞炲叕鍙窱D
- Position string `json:"position"` // 鑱屼綅
- Phone string `json:"phone"` // 鎵嬫満鍙�
- IsFirst bool `json:"is_first"` // 鏄惁棣栬鑱旂郴浜�
- Wechat string `json:"wechat"` // 寰俊鍙�
- Birthday string `json:"birthday" example:"1970-01-01 08:00:00"` // 鐢熸棩
- Email string `json:"email"` // 閭
- Desc string `json:"desc"` // 澶囨敞
- CountryId int `json:"country_id"` // 鍥藉ID
- ProvinceId int `json:"province_id"` // 鐪佷唤ID
- CityId int `json:"city_id"` // 鍩庡競ID
- RegionId int `json:"region_id"` // 鍖哄煙ID
+ Name string `json:"name"` // 鑱旂郴浜哄悕绉�
+ Number string `json:"number"` // 鑱旂郴浜虹紪鍙�
+ MemberId int `json:"member_id"` // 鎵�灞炴垚鍛業D
+ ClientId int `json:"client_id"` // 鎵�灞炲叕鍙窱D
+ Position string `json:"position"` // 鑱屼綅
+ Phone string `json:"phone"` // 鎵嬫満鍙�
+ IsFirst bool `json:"is_first"` // 鏄惁棣栬鑱旂郴浜�
+ Wechat string `json:"wechat"` // 寰俊鍙�
+ Birthday string `json:"birthday" example:"1970-01-01 08:00:00"` // 鐢熸棩
+ Email string `json:"email"` // 閭
+ Desc string `json:"desc"` // 澶囨敞
+ CountryId int `json:"country_id"` // 鍥藉ID
+ ProvinceId int `json:"province_id"` // 鐪佷唤ID
+ CityId int `json:"city_id"` // 鍩庡競ID
+ RegionId int `json:"region_id"` // 鍖哄煙ID
+ CodeStandID string `json:"codeStandID"` //缂栫爜id
+ CodeRule code.CodeStandard `json:"codeRule"`
}
type UpdateContact struct {
@@ -30,6 +34,7 @@
type GetContactList struct {
PageInfo
SearchMap map[string]interface{} `json:"search_map"` // 鎼滅储鏉′欢: map[string]interface{}{"name": "xxx"}; {"name": "瀹㈡埛鍚嶇О", "phone": "鎵嬫満鍙风爜", "detail_address":"璇︾粏鍦板潃", "next_visit_time":"涓嬪洖鍥炶鏃ユ湡", "member_name": "閿�鍞礋璐d汉", "client_status": "瀹㈡埛鐘舵��", "client_level": "閲嶈绾у埆", "is_first": "鏄惁鏄瑕佽仈绯讳汉", "client_id": "clientId 鐢ㄤ簬杩斿洖棣栬鑱旂郴浜�"}
+ ClientId int `json:"clientId"` //瀹㈡埛id
}
type DeleteContact struct {
--
Gitblit v1.8.0