doctor_schedule_models.go 7.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  37. }
  38. func (StaffSchedule) TableName() string {
  39. return "xt_staff_schedule"
  40. }
  41. type XtStaffSchedule struct {
  42. ID int64 `gorm:"column:id" json:"id" form:"id"`
  43. DoctorId int64 `gorm:"column:doctor_id" json:"doctor_id" form:"doctor_id"`
  44. DoctorType int64 `gorm:"column:doctor_type" json:"doctor_type" form:"doctor_type"`
  45. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  46. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  47. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  48. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  49. EndTime int64 `gorm:"column:end_time" json:"end_time" form:"end_time"`
  50. Status int64 `gorm:"column:status" json:"status" form:"status"`
  51. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  52. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  53. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  54. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  55. ClassName string `gorm:"column:class_name" json:"class_name" form:"class_name"`
  56. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  57. UserType int64 `gorm:"column:user_type" json:"user_type" form:"user_type"`
  58. ClassAttributes int64 `gorm:"column:class_attributes" json:"class_attributes" form:"class_attributes"`
  59. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  60. IsSort int64 `gorm:"column:is_sort" json:"is_sort" form:"is_sort"`
  61. WorkTime string `gorm:"column:work_time" json:"work_time" form:"work_time"`
  62. Minute int64 `gorm:"column:minute" json:"minute" form:"minute"`
  63. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  64. }
  65. type XTSgjUserAdminRole struct {
  66. ID int64 `gorm:"column:id" json:"id" form:"id"`
  67. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  68. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  69. UserType int64 `gorm:"column:user_type" json:"user_type" form:"user_type"`
  70. UserTitle int64 `gorm:"column:user_title" json:"user_title" form:"user_title"`
  71. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  72. IsSort int64 `gorm:"column:is_sort" json:"is_sort" form:"is_sort"`
  73. }
  74. func (XTSgjUserAdminRole) TableName() string {
  75. return "sgj_users.sgj_user_admin_role"
  76. }
  77. type ContinueSchedule struct {
  78. IsStatus int64 `gorm:"column:is_status" json:"is_status" form:"is_status"`
  79. Status int64 `gorm:"column:status" json:"status" form:"status"`
  80. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  81. ID int64 `gorm:"column:id" json:"id" form:"id"`
  82. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  83. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  84. }
  85. func (ContinueSchedule) TableName() string {
  86. return "xt_continue_schedule"
  87. }
  88. type CountStaffSchedule struct {
  89. ID int64 `gorm:"column:id" json:"id" form:"id"`
  90. DoctorId int64 `gorm:"column:doctor_id" json:"doctor_id" form:"doctor_id"`
  91. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  92. EndTime int64 `gorm:"column:end_time" json:"end_time" form:"end_time"`
  93. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  94. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  95. ClassName string `gorm:"column:class_name" json:"class_name" form:"class_name"`
  96. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  97. Count int64
  98. TotalMininute int64 `gorm:"column:totalminute" json:"totalminute" form:"totalminute"`
  99. WorkMinute int64 `gorm:"column:workminute" json:"workminute" form:"workminute"`
  100. }
  101. type XtStaffScheduleRemark struct {
  102. ID int64 `gorm:"column:id" json:"id" form:"id"`
  103. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  104. EndTime int64 `gorm:"column:end_time" json:"end_time" form:"end_time"`
  105. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  106. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  107. Status int64 `gorm:"column:status" json:"status" form:"status"`
  108. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  109. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  110. }
  111. func (XtStaffScheduleRemark) TableName() string {
  112. return "xt_staff_schedule_remark"
  113. }