add
wangpengfei
2023-07-06 c394edd0b3c3fda6741d09c494cda96606d27501
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
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
}
 
type UpdateContact struct {
    Id int `json:"id"`
    Contact
}