doctor_schedule_models.go 4.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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. }
  19. func (DoctorSchedules) TableName() string {
  20. return "xt_doctor_schedules"
  21. }
  22. type StaffSchedule struct {
  23. ID int64 `gorm:"column:id" json:"id" form:"id"`
  24. DoctorId int64 `gorm:"column:doctor_id" json:"doctor_id" form:"doctor_id"`
  25. DoctorType int64 `gorm:"column:doctor_type" json:"doctor_type" form:"doctor_type"`
  26. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  27. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  28. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  29. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  30. EndTime int64 `gorm:"column:end_time" json:"end_time" form:"end_time"`
  31. Status int64 `gorm:"column:status" json:"status" form:"status"`
  32. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  33. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  34. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  35. }
  36. func (StaffSchedule) TableName() string {
  37. return "xt_staff_schedule"
  38. }
  39. type XtStaffSchedule struct {
  40. ID int64 `gorm:"column:id" json:"id" form:"id"`
  41. DoctorId int64 `gorm:"column:doctor_id" json:"doctor_id" form:"doctor_id"`
  42. DoctorType int64 `gorm:"column:doctor_type" json:"doctor_type" form:"doctor_type"`
  43. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  44. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  45. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  46. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  47. EndTime int64 `gorm:"column:end_time" json:"end_time" form:"end_time"`
  48. Status int64 `gorm:"column:status" json:"status" form:"status"`
  49. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  50. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  51. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  52. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  53. ClassName string `gorm:"column:class_name" json:"class_name" form:"class_name"`
  54. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  55. UserType int64 `gorm:"column:user_type" json:"user_type" form:"user_type"`
  56. }
  57. type XTSgjUserAdminRole struct {
  58. ID int64 `gorm:"column:id" json:"id" form:"id"`
  59. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  60. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  61. UserType int64 `gorm:"column:user_type" json:"user_type" form:"user_type"`
  62. }
  63. func (XTSgjUserAdminRole) TableName() string {
  64. return "sgj_user_admin_role"
  65. }
  66. type ContinueSchedule struct {
  67. IsStatus int64 `gorm:"column:is_status" json:"is_status" form:"is_status"`
  68. Status int64 `gorm:"column:status" json:"status" form:"status"`
  69. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  70. ID int64 `gorm:"column:id" json:"id" form:"id"`
  71. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  72. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  73. }
  74. func (ContinueSchedule) TableName() string {
  75. return "xt_continue_schedule"
  76. }