user_membership_card_models.go 2.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. package models
  2. type UserMembershipCard 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. CardName string `gorm:"column:card_name" json:"card_name" form:"card_name"`
  6. CardLevel int64 `gorm:"column:card_level" json:"card_level" form:"card_level"`
  7. UpgradeIntegral int64 `gorm:"column:upgrade_integral" json:"upgrade_integral" form:"upgrade_integral"`
  8. CardRight string `gorm:"column:card_right" json:"card_right" form:"card_right"`
  9. UseNotice string `gorm:"column:use_notice" json:"use_notice" form:"use_notice"`
  10. BackgroundType int64 `gorm:"column:background_type" json:"background_type" form:"background_type"`
  11. Background string `gorm:"column:background" json:"background" form:"background"`
  12. ServicePhone string `gorm:"column:service_phone" json:"service_phone" form:"service_phone"`
  13. Status int64 `gorm:"column:status" json:"status" form:"status"`
  14. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  15. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  16. }
  17. func (UserMembershipCard) TableName() string {
  18. return "sgj_user_membership_card"
  19. }
  20. type UserCard struct {
  21. ID int64 `gorm:"column:id" json:"id" form:"id"`
  22. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  23. CustomerId int64 `gorm:"column:customer_id" json:"customer_id" form:"customer_id"`
  24. CardId int64 `gorm:"column:card_id" json:"card_id" form:"card_id"`
  25. CardNo string `gorm:"column:card_no" json:"card_no" form:"card_no"`
  26. CardName string `gorm:"column:card_name" json:"card_name" form:"card_name"`
  27. CardIntegral int64 `gorm:"column:card_integral" json:"card_integral" form:"card_integral"`
  28. Status int64 `gorm:"column:status" json:"status" form:"status"`
  29. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  30. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  31. }
  32. func (UserCard) TableName() string {
  33. return "sgj_user_user_card"
  34. }
  35. type MembershipRights struct {
  36. ID int64 `gorm:"column:id" json:"id" form:"id"`
  37. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  38. Rights string `gorm:"column:rights" json:"rights" form:"rights"`
  39. Status int64 `gorm:"column:status" json:"status" form:"status"`
  40. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  41. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  42. }
  43. func (MembershipRights) TableName() string {
  44. return "sgj_user_membership_rights"
  45. }