yinbentan
2024-09-26 2030ec81f18f4ec9ea1800f13046acafff6d50f7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package request
 
type AddContact struct {
    Contact
}
 
type Contact struct {
    Name       string `json:"name"`                                   // 联系人名称
    Number     string `json:"number"`                                 // 联系人编号
    MemberId   int    `json:"member_id"`                              // 所属成员ID
    ClientId   int    `json:"client_id"`                              // 所属公司ID
    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 {
    Id int `json:"id"`
    Contact
}
 
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": "销售负责人", "client_status": "客户状态", "client_level": "重要级别", "is_first": "是否是首要联系人", "client_id": "clientId 用于返回首要联系人"}
    ClientId  int                    `json:"clientId"`   //客户id
}
 
type DeleteContact struct {
    Ids []int `json:"ids"`
}