patient_schedule_template_models.go 3.6KB

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