fix
wangpengfei
2023-08-07 cddf1d93735052590755460f4b3c8264e0d57399
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
   Keyword string `json:"keyword"`
}
type DeleteContact struct {
   Ids []int `json:"ids"`
}