6
0

meeting_reservation.go 5.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. // ==========================================================================
  2. // This is auto-generated by gf cli tool. Fill this file as you wish.
  3. // ==========================================================================
  4. package model
  5. import (
  6. "github.com/gogf/gf/os/gtime"
  7. "lims_adapter/model/internal"
  8. )
  9. // MeetingReservation is the golang structure for table meeting_reservation.
  10. type MeetingReservation internal.MeetingReservation
  11. // Fill with you ideas below.
  12. type ReservationReq struct {
  13. Id int `orm:"Id,primary" json:"id"` // 主键ID
  14. Title string `orm:"Title" json:"title" v:"required#会议名称不能为空"` // 标题/会议名称
  15. StartTime *gtime.Time `orm:"StartTime" json:"start_time" v:"required#会议开始时间不能为空"` // 开始时间
  16. EndTime *gtime.Time `orm:"EndTime" json:"end_time" v:"required#会议结束时间不能为空"` // 结束时间
  17. UserId int `orm:"UserId" json:"user_id"` // 预约人
  18. DepartmentId int `orm:"DepartmentId" json:"department_id"` // 部门
  19. Remark string `orm:"Remark" json:"remark"` // 备注
  20. EntityId int `orm:"EntityId" json:"entity_id"` // 关联ID
  21. SignInTime *gtime.Time `orm:"SignInTime" json:"sign_in_time"` // 签到时间
  22. SignOutTime *gtime.Time `orm:"SignOutTime" json:"sign_out_time"` // 签退时间
  23. RealityUseDuration float64 `orm:"RealityUseDuration" json:"reality_use_duration"` // 实际使用时长
  24. UserName string `orm:"UserName" json:"user_name"` // 预约人姓名
  25. Status int `orm:"Status" json:"status"` // 预约状态(1:预定 2:取消)
  26. TimeSplit []string `json:"time_split"` // 预约时间
  27. }
  28. type List struct {
  29. Id uint `orm:"Id,primary" json:"id"` // 主键ID
  30. CreatedBy string `orm:"CreatedBy" json:"created_by"` // 创建人姓名
  31. CreatedAt *gtime.Time `orm:"CreatedAt" json:"created_at"` // 创建时间
  32. UpdatedAt *gtime.Time `orm:"UpdatedAt" json:"updated_at"` // 更新时间
  33. UpdatedBy string `orm:"UpdatedBy" json:"updated_by"` // 更新人姓名
  34. DeletedAt *gtime.Time `orm:"DeletedAt" json:"deleted_at"` // 删除时间
  35. UpdatedById int `orm:"UpdatedById" json:"updated_by_id"` // 更新人ID
  36. CreatedById int `orm:"CreatedById" json:"created_by_id"` // 创建人ID
  37. Title string `orm:"Title" json:"title"` // 标题
  38. StartTime *gtime.Time `orm:"StartTime" json:"start_time"` // 开始时间
  39. EndTime *gtime.Time `orm:"EndTime" json:"end_time"` // 结束时间
  40. UserId int `orm:"UserId" json:"user_id"` // 预约人
  41. DepartmentId int `orm:"DepartmentId" json:"department_id"` // 部门
  42. Remark string `orm:"Remark" json:"remark"` // 备注
  43. EntityId int `orm:"EntityId" json:"entity_id"` // 关联ID
  44. SignInTime *gtime.Time `orm:"SignInTime" json:"sign_in_time"` // 签到时间
  45. SignOutTime *gtime.Time `orm:"SignOutTime" json:"sign_out_time"` // 签退时间
  46. RealityUseDuration float64 `orm:"RealityUseDuration" json:"reality_use_duration"` // 实际使用时长
  47. UserName string `orm:"UserName" json:"user_name"` // 预约人姓名
  48. Status int `orm:"Status" json:"status"` // 预约状态(1:预定 2:取消)
  49. Name string `json:"name"` // 会议室名称
  50. DepartmentName string `json:"department_name"` // 部门名称
  51. }
  52. // CurrentDate 周时间信息
  53. type CurrentDate struct {
  54. Date string `json:"date"`
  55. Day int `json:"day"`
  56. }
  57. // OverviewReq 概况请求
  58. type OverviewReq struct {
  59. Date *gtime.Time `json:"date"`
  60. }
  61. type ShortList struct {
  62. Id int `orm:"Id,primary" json:"id"` // 主键ID
  63. Title string `orm:"Title" json:"title"` // 标题/会议名称
  64. StartTime *gtime.Time `orm:"StartTime" json:"startTime"` // 开始时间
  65. EndTime *gtime.Time `orm:"EndTime" json:"endTime"` // 结束时间
  66. UserId int `orm:"UserId" json:"user_id"` // 预约人
  67. EntityId int `orm:"EntityId" json:"entity_id"` // 关联ID
  68. }
  69. // ReserveReq 预约请求
  70. type ReserveReq struct {
  71. EntityId int `json:"entity_id"` // 实体Id
  72. Date *gtime.Time `json:"date"` // 当前时间
  73. }
  74. // ReservationList 预约详情
  75. type ReservationList struct {
  76. Day int `json:"day"` // 日期
  77. Dept string `json:"dept"` // 部门
  78. StartTime string `json:"start_time"` // 预约开始时间
  79. Tel string `json:"tel"` // 手机号
  80. Uid int `json:"uid"` // 用户ID
  81. Uname string `json:"uname"` // 用户名称
  82. Week int `json:"week"` // 本周时间
  83. }