user_linker.go 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. package entity
  2. import "gopkg.in/guregu/null.v3"
  3. type UserLinker struct {
  4. Id int `db:"id"`
  5. CustomId int `db:"custom_id"`
  6. Name string `db:"name"` //联系人姓名
  7. Gender int `db:"gender"`
  8. Mobile string `db:"mobile"`
  9. Age int `db:"age"`
  10. Birthday string `db:"birthday"`
  11. Province string `db:"province"`
  12. CityId int `db:"city_id"`
  13. City string `db:"city"`
  14. County string `db:"county"`
  15. CountyId int `db:"county_id"`
  16. Address string `db:"address"`
  17. DetailAddress string `db:"detail_address"`
  18. Long float32 `db:"longitude"`
  19. Lat float32 `db:"latitude"`
  20. IsDefault int `db:"is_default"`
  21. CreatedAt string `db:"created_at"`
  22. UpdatedAt string `db:"updated_at"`
  23. RelId int `db:"rel_id"`
  24. IdNumber string `db:"id_number",json:"IdNumber"`
  25. IdType string `db:"id_type",json:"IdType"`
  26. }
  27. type UserLinkerDB struct {
  28. Id int `db:"id"`
  29. CustomId int `db:"custom_id"`
  30. Name string `db:"name"` //联系人姓名
  31. Gender int `db:"gender"`
  32. Mobile string `db:"mobile"`
  33. Age int `db:"age"`
  34. Birthday null.String `db:"birthday"`
  35. Province null.String `db:"province"`
  36. CityId int `db:"city_id"`
  37. City null.String `db:"city"`
  38. CountyId int `db:"county_id"`
  39. County null.String `db:"county"`
  40. Address null.String `db:"address"`
  41. DetailAddress null.String `db:"detail_address"`
  42. Long null.Float `db:"longitude"`
  43. Lat null.Float `db:"latitude"`
  44. RelId null.Int `db:"rel_id"`
  45. IsDefault int `db:"is_default"`
  46. CreatedAt string `db:"created_at"`
  47. UpdatedAt string `db:"updated_at"`
  48. IdNumber string `db:"id_number"`
  49. IdType string `db:"id_type"`
  50. }