patient_schedule_template_models.go 2.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. package models
  2. type PatientScheduleTemplateMode struct {
  3. ID int64 `gorm:"column:id" json:"id" form:"id"`
  4. OrgID int64 `gorm:"column:org_id" json:"-" form:"org_id"`
  5. Mode int8 `gorm:"column:mode" json:"mode" form:"mode"` // 模式:0.不启用模板 1.单周模板 2.双周模板
  6. ExecuteTimes int64 `gorm:"column:execute_times" json:"execute_times"` // 已定期执行的次数(每次修改 mode 都重置为0)
  7. Status int8 `gorm:"column:status" json:"-" form:"status"`
  8. CreateTime int64 `gorm:"column:ctime" json:"-" form:"ctime"`
  9. ModifyTime int64 `gorm:"column:mtime" json:"-" form:"mtime"`
  10. }
  11. func (PatientScheduleTemplateMode) TableName() string {
  12. return "xt_patient_schedule_template_mode"
  13. }
  14. type PatientScheduleTemplateId struct {
  15. ID int64 `gorm:"column:id" json:"id" form:"id"`
  16. OrgID int64 `gorm:"column:org_id" json:"-" form:"org_id"`
  17. Status int8 `gorm:"column:status" json:"-" form:"status"`
  18. CreateTime int64 `gorm:"column:ctime" json:"-" form:"ctime"`
  19. ModifyTime int64 `gorm:"column:mtime" json:"-" form:"mtime"`
  20. }
  21. func (PatientScheduleTemplateId) TableName() string {
  22. return "xt_patient_schedule_template_id"
  23. }
  24. type PatientScheduleTemplateItem struct {
  25. ID int64 `gorm:"column:id" json:"id" form:"id"`
  26. OrgID int64 `gorm:"column:org_id" json:"-" form:"org_id"`
  27. TemplateID int64 `gorm:"column:template_id" json:"template_id" form:"template_id"`
  28. DeviceNumberID int64 `gorm:"column:device_number_id" json:"device_number_id" form:"device_number_id"`
  29. PatientID int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  30. TreatMode int64 `gorm:"column:treat_mode" json:"treat_mode" form:"treat_mode"` // 治疗模式
  31. Weekday int8 `gorm:"column:weekday" json:"weekday" form:"weekday"` // 周一-周日 1-7
  32. TimeType int8 `gorm:"column:time_type" json:"time_type" form:"time_type"` // 上下晚 123
  33. Status int8 `gorm:"column:status" json:"-" form:"status"`
  34. CreateTime int64 `gorm:"column:ctime" json:"-" form:"ctime"`
  35. ModifyTime int64 `gorm:"column:mtime" json:"-" form:"mtime"`
  36. }
  37. func (PatientScheduleTemplateItem) TableName() string {
  38. return "xt_patient_schedule_template_item"
  39. }