fix
wangpengfei
2023-08-09 c229f8922a4142a8ae2ac161bb6c121b9c9de672
model/request/contact.go
@@ -1,37 +1,37 @@
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
}
type GetContactList struct {
   PageInfo
   Keyword string `json:"keyword"`
}
type DeleteContact struct {
   Ids []int `json:"ids"`
}
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
}
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": "重要级别"}
}
type DeleteContact struct {
   Ids []int `json:"ids"`
}