patient_schedule_template_models.go 3.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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:"mtime" 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. IsExport int64 `gorm:"column:is_export" json:"is_export" form:"is_export"`
  37. }
  38. func (PatientScheduleTemplateItem) TableName() string {
  39. return "xt_patient_schedule_template_item"
  40. }
  41. type VmPatientScheduleTemplateItem struct {
  42. ID int64 `gorm:"column:id" json:"id" form:"id"`
  43. OrgID int64 `gorm:"column:org_id" json:"-" form:"org_id"`
  44. TemplateID int64 `gorm:"column:template_id" json:"template_id" form:"template_id"`
  45. DeviceNumberID int64 `gorm:"column:device_number_id" json:"device_number_id" form:"device_number_id"`
  46. PatientID int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  47. TreatMode int64 `gorm:"column:treat_mode" json:"treat_mode" form:"treat_mode"` // 治疗模式
  48. Weekday int64 `gorm:"column:weekday" json:"weekday" form:"weekday"` // 周一-周日 1-7
  49. TimeType int64 `gorm:"column:time_type" json:"time_type" form:"time_type"` // 上下晚 123
  50. Status int64 `gorm:"column:status" json:"-" form:"status"`
  51. CreateTime int64 `gorm:"column:ctime" json:"-" form:"ctime"`
  52. ModifyTime int64 `gorm:"column:mtime" json:"-" form:"mtime"`
  53. IsExport int64 `gorm:"column:is_export" json:"is_export" form:"is_export"`
  54. ScheduleDate int64
  55. ZoneId int64
  56. }
  57. func (VmPatientScheduleTemplateItem) TableName() string {
  58. return "xt_patient_schedule_template_item"
  59. }