patient_schedule_template_models.go 3.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. Week int64 `gorm:"column:week" json:"-" form:"week"`
  11. OriginalWeek int64 `gorm:"column:original_week" json:"original_week" form:"original_week"`
  12. }
  13. func (PatientScheduleTemplateMode) TableName() string {
  14. return "xt_patient_schedule_template_mode"
  15. }
  16. type PatientScheduleTemplateId struct {
  17. ID int64 `gorm:"column:id" json:"id" form:"id"`
  18. OrgID int64 `gorm:"column:org_id" json:"-" form:"org_id"`
  19. Status int8 `gorm:"column:status" json:"-" form:"status"`
  20. Week int `gorm:"column:week" json:"week" form:"week"`
  21. }
  22. func (PatientScheduleTemplateId) TableName() string {
  23. return "xt_patient_schedule_template_id"
  24. }
  25. type PatientScheduleTemplateItem struct {
  26. ID int64 `gorm:"column:id" json:"id" form:"id"`
  27. OrgID int64 `gorm:"column:org_id" json:"-" form:"org_id"`
  28. TemplateID int64 `gorm:"column:template_id" json:"template_id" form:"template_id"`
  29. DeviceNumberID int64 `gorm:"column:device_number_id" json:"device_number_id" form:"device_number_id"`
  30. PatientID int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  31. TreatMode int64 `gorm:"column:treat_mode" json:"treat_mode" form:"treat_mode"` // 治疗模式
  32. Weekday int8 `gorm:"column:weekday" json:"weekday" form:"weekday"` // 周一-周日 1-7
  33. TimeType int8 `gorm:"column:time_type" json:"time_type" form:"time_type"` // 上下晚 123
  34. Status int8 `gorm:"column:status" json:"-" form:"status"`
  35. CreateTime int64 `gorm:"column:ctime" json:"-" form:"ctime"`
  36. ModifyTime int64 `gorm:"column:mtime" json:"-" form:"mtime"`
  37. IsExport int64 `gorm:"column:is_export" json:"is_export" form:"is_export"`
  38. }
  39. func (PatientScheduleTemplateItem) TableName() string {
  40. return "xt_patient_schedule_template_item"
  41. }
  42. type VmPatientScheduleTemplateItem struct {
  43. ID int64 `gorm:"column:id" json:"id" form:"id"`
  44. OrgID int64 `gorm:"column:org_id" json:"-" form:"org_id"`
  45. TemplateID int64 `gorm:"column:template_id" json:"template_id" form:"template_id"`
  46. DeviceNumberID int64 `gorm:"column:device_number_id" json:"device_number_id" form:"device_number_id"`
  47. PatientID int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  48. TreatMode int64 `gorm:"column:treat_mode" json:"treat_mode" form:"treat_mode"` // 治疗模式
  49. Weekday int64 `gorm:"column:weekday" json:"weekday" form:"weekday"` // 周一-周日 1-7
  50. TimeType int64 `gorm:"column:time_type" json:"time_type" form:"time_type"` // 上下晚 123
  51. Status int64 `gorm:"column:status" json:"-" form:"status"`
  52. CreateTime int64 `gorm:"column:ctime" json:"-" form:"ctime"`
  53. ModifyTime int64 `gorm:"column:mtime" json:"-" form:"mtime"`
  54. IsExport int64 `gorm:"column:is_export" json:"is_export" form:"is_export"`
  55. ScheduleDate int64
  56. ZoneId int64
  57. }
  58. func (VmPatientScheduleTemplateItem) TableName() string {
  59. return "xt_patient_schedule_template_item"
  60. }