user_models.go 3.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. package models
  2. type User struct {
  3. ID int64 `gorm:"column:id" json:"id" form:"id"`
  4. Password string `gorm:"column:password" json:"password" form:"password"`
  5. Mobile string `gorm:"column:mobile" json:"mobile" form:"mobile"`
  6. Username string `gorm:"column:username" json:"username" form:"username"`
  7. Remarkname string `gorm:"column:remarkname" json:"remarkname" form:"remarkname"`
  8. Realname string `gorm:"column:realname" json:"realname" form:"realname"`
  9. Introduce string `gorm:"column:introduce" json:"introduce" form:"introduce"`
  10. Avatar string `gorm:"column:avatar" json:"avatar" form:"avatar"`
  11. AvatarThumb string `gorm:"column:avatar_thumb" json:"avatar_thumb" form:"avatar_thumb"`
  12. Gender int64 `gorm:"column:gender" json:"gender" form:"gender"`
  13. ReceivingPhone string `gorm:"column:receiving_phone" json:"receiving_phone" form:"receiving_phone"`
  14. ProvinceId int64 `gorm:"column:province_id" json:"province_id" form:"province_id"`
  15. CityId int64 `gorm:"column:city_id" json:"city_id" form:"city_id"`
  16. DistrictId int64 `gorm:"column:district_id" json:"district_id" form:"district_id"`
  17. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  18. Address string `gorm:"column:address" json:"address" form:"address"`
  19. Recipient string `gorm:"column:recipient" json:"recipient" form:"recipient"`
  20. TreatType int64 `gorm:"column:treat_type" json:"treat_type" form:"treat_type"`
  21. Token string `gorm:"column:token" json:"token" form:"token"`
  22. Imei string `gorm:"column:imei" json:"imei" form:"imei"`
  23. Relationship int64 `gorm:"column:relationship" json:"relationship" form:"relationship"`
  24. Platform string `gorm:"column:platform" json:"platform" form:"platform"`
  25. IllnessId int64 `gorm:"column:illness_id" json:"illness_id" form:"illness_id"`
  26. Sources int64 `gorm:"column:sources" json:"sources" form:"sources"`
  27. Status int64 `gorm:"column:status" json:"status" form:"status"`
  28. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  29. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  30. WechatOpenid string `gorm:"column:wechat_openid" json:"wechat_openid" form:"wechat_openid"`
  31. MedicalDiagnose string `gorm:"column:medical_diagnose" json:"medical_diagnose" form:"medical_diagnose"`
  32. }
  33. func (User) TableName() string {
  34. return "sgj_user_user"
  35. }
  36. type SgjUserStaffInfo struct {
  37. ID int64 `gorm:"column:id" json:"id" form:"id"`
  38. Name string `gorm:"column:name" json:"name" form:"name"`
  39. Phone string `gorm:"column:phone" json:"phone" form:"phone"`
  40. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  41. Gender int64 `gorm:"column:gender" json:"gender" form:"gender"`
  42. UserType int64 `gorm:"column:user_type" json:"user_type" form:"user_type"`
  43. UserTitle int64 `gorm:"column:user_title" json:"user_title" form:"user_title"`
  44. Dochead string `gorm:"column:dochead" json:"dochead" form:"dochead"`
  45. Content string `gorm:"column:content" json:"content" form:"content"`
  46. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  47. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  48. Status int64 `gorm:"column:status" json:"status" form:"status"`
  49. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  50. }
  51. func (SgjUserStaffInfo) TableName() string {
  52. return "sgj_user_staff_info"
  53. }