user_customer_models.go 2.3KB

123456789101112131415161718192021222324252627282930313233343536
  1. package models
  2. type UserCustomer struct {
  3. ID int64 `gorm:"column:id" json:"id" form:"id"`
  4. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  5. UserId int64 `gorm:"column:user_id" json:"user_id" form:"user_id"`
  6. Mobile string `gorm:"column:mobile" json:"mobile" form:"mobile"`
  7. Name string `gorm:"column:name" json:"name" form:"name"`
  8. Gender int64 `gorm:"column:gender" json:"gender" form:"gender"`
  9. ProvinceId int64 `gorm:"column:province_id" json:"province_id" form:"province_id"`
  10. CityId int64 `gorm:"column:city_id" json:"city_id" form:"city_id"`
  11. Address string `gorm:"column:address" json:"address" form:"address"`
  12. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  13. TreatType int64 `gorm:"column:treat_type" json:"treat_type" form:"treat_type"`
  14. Relationship int64 `gorm:"column:relationship" json:"relationship" form:"relationship"`
  15. IllnessId int64 `gorm:"column:illness_id" json:"illness_id" form:"illness_id"`
  16. WechatOpenid string `gorm:"column:wechat_openid" json:"wechat_openid" form:"wechat_openid"`
  17. Membership int64 `gorm:"column:membership" json:"membership" form:"membership"`
  18. Sources int64 `gorm:"column:sources" json:"sources" form:"sources"`
  19. Status int64 `gorm:"column:status" json:"status" form:"status"`
  20. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  21. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  22. Avatar string `gorm:"column:avatar" json:"avatar" form:"avatar"`
  23. WechatUnionid string `gorm:"column:wechat_unionid" json:"wechat_unionid" form:"wechat_unionid"`
  24. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  25. MedicalDiagnose string `gorm:"column:medical_diagnose" json:"medical_diagnose" form:"medical_diagnose"`
  26. YzUid int64 `gorm:"column:yz_uid" json:"yz_uid" form:"yz_uid"`
  27. Tttime int64 `gorm:"column:tttime" json:"tttime" form:"tttime"`
  28. IllDate int64 `gorm:"column:ill_date" json:"ill_date" form:"ill_date"`
  29. DistrictId int64 `gorm:"column:district_id" json:"district_id" form:"district_id"`
  30. }
  31. func (UserCustomer) TableName() string {
  32. return "sgj_user_customer"
  33. }