illness_models.go 1.1KB

12345678910111213141516171819202122232425262728
  1. package models
  2. type Illness struct {
  3. ID int64 `gorm:"column:id" json:"id" form:"id"`
  4. IllnessName string `gorm:"column:illness_name" json:"illness_name" form:"illness_name"`
  5. Status int64 `gorm:"column:status" json:"status" form:"status"`
  6. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  7. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  8. }
  9. func (Illness) TableName() string {
  10. return "sgj_user_illness"
  11. }
  12. type CustomerIllness struct {
  13. ID int64 `gorm:"column:id" json:"id" form:"id"`
  14. CustomerId int64 `gorm:"column:customer_id" json:"customer_id" form:"customer_id"`
  15. IllnessId int64 `gorm:"column:illness_id" json:"illness_id" form:"illness_id"`
  16. Status int64 `gorm:"column:status" json:"status" form:"status"`
  17. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  18. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  19. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  20. }
  21. func (Illness) CustomerIllness() string {
  22. return "sgj_user_customer_illness"
  23. }