doctor_schedule_models.go 6.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. package models
  2. type DoctorSchedules struct {
  3. ID int64 `gorm:"column:id" json:"id" form:"id"`
  4. ClassName string `gorm:"column:class_name" json:"class_name" form:"class_name"`
  5. ClassAttributes int64 `gorm:"column:class_attributes" json:"class_attributes" form:"class_attributes"`
  6. TimeoneStart string `gorm:"column:timeone_start" json:"timeone_start" form:"timeone_start"`
  7. TimeoneType int64 `gorm:"column:timeone_type" json:"timeone_type" form:"timeone_type"`
  8. TimeoneEnd string `gorm:"column:timeone_end" json:"timeone_end" form:"timeone_end"`
  9. TimetwoStart string `gorm:"column:timetwo_start" json:"timetwo_start" form:"timetwo_start"`
  10. TimetwoType int64 `gorm:"column:timetwo_type" json:"timetwo_type" form:"timetwo_type"`
  11. TimetwoEnd string `gorm:"column:timetwo_end" json:"timetwo_end" form:"timetwo_end"`
  12. WorkTime string `gorm:"column:work_time" json:"work_time" form:"work_time"`
  13. Remarks string `gorm:"column:remarks" json:"remarks" form:"remarks"`
  14. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  15. Status int64 `gorm:"column:status" json:"status" form:"status"`
  16. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  17. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  18. Minute int64 `gorm:"column:minute" json:"minute" form:"minute"`
  19. }
  20. func (DoctorSchedules) TableName() string {
  21. return "xt_doctor_schedules"
  22. }
  23. type StaffSchedule struct {
  24. ID int64 `gorm:"column:id" json:"id" form:"id"`
  25. DoctorId int64 `gorm:"column:doctor_id" json:"doctor_id" form:"doctor_id"`
  26. DoctorType int64 `gorm:"column:doctor_type" json:"doctor_type" form:"doctor_type"`
  27. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  28. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  29. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  30. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  31. EndTime int64 `gorm:"column:end_time" json:"end_time" form:"end_time"`
  32. Status int64 `gorm:"column:status" json:"status" form:"status"`
  33. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  34. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  35. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  36. }
  37. func (StaffSchedule) TableName() string {
  38. return "xt_staff_schedule"
  39. }
  40. type XtStaffSchedule struct {
  41. ID int64 `gorm:"column:id" json:"id" form:"id"`
  42. DoctorId int64 `gorm:"column:doctor_id" json:"doctor_id" form:"doctor_id"`
  43. DoctorType int64 `gorm:"column:doctor_type" json:"doctor_type" form:"doctor_type"`
  44. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  45. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  46. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  47. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  48. EndTime int64 `gorm:"column:end_time" json:"end_time" form:"end_time"`
  49. Status int64 `gorm:"column:status" json:"status" form:"status"`
  50. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  51. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  52. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  53. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  54. ClassName string `gorm:"column:class_name" json:"class_name" form:"class_name"`
  55. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  56. UserType int64 `gorm:"column:user_type" json:"user_type" form:"user_type"`
  57. ClassAttributes int64 `gorm:"column:class_attributes" json:"class_attributes" form:"class_attributes"`
  58. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  59. IsSort int64 `gorm:"column:is_sort" json:"is_sort" form:"is_sort"`
  60. WorkTime string `gorm:"column:work_time" json:"work_time" form:"work_time"`
  61. Minute int64 `gorm:"column:minute" json:"minute" form:"minute"`
  62. }
  63. type XTSgjUserAdminRole struct {
  64. ID int64 `gorm:"column:id" json:"id" form:"id"`
  65. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  66. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  67. UserType int64 `gorm:"column:user_type" json:"user_type" form:"user_type"`
  68. UserTitle int64 `gorm:"column:user_title" json:"user_title" form:"user_title"`
  69. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  70. IsSort int64 `gorm:"column:is_sort" json:"is_sort" form:"is_sort"`
  71. }
  72. func (XTSgjUserAdminRole) TableName() string {
  73. return "sgj_users.sgj_user_admin_role"
  74. }
  75. type ContinueSchedule struct {
  76. IsStatus int64 `gorm:"column:is_status" json:"is_status" form:"is_status"`
  77. Status int64 `gorm:"column:status" json:"status" form:"status"`
  78. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  79. ID int64 `gorm:"column:id" json:"id" form:"id"`
  80. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  81. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  82. }
  83. func (ContinueSchedule) TableName() string {
  84. return "xt_continue_schedule"
  85. }
  86. type CountStaffSchedule struct {
  87. ID int64 `gorm:"column:id" json:"id" form:"id"`
  88. DoctorId int64 `gorm:"column:doctor_id" json:"doctor_id" form:"doctor_id"`
  89. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  90. EndTime int64 `gorm:"column:end_time" json:"end_time" form:"end_time"`
  91. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  92. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  93. ClassName string `gorm:"column:class_name" json:"class_name" form:"class_name"`
  94. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  95. Count int64
  96. TotalMininute int64 `gorm:"column:totalminute" json:"totalminute" form:"totalminute"`
  97. WorkMinute int64 `gorm:"column:workminute" json:"workminute" form:"workminute"`
  98. }