| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- // ==========================================================================
- // This is auto-generated by gf cli tool. Fill this file as you wish.
- // ==========================================================================
- package model
- import (
- "github.com/gogf/gf/os/gtime"
- "lims_adapter/model/internal"
- )
- // MeetingReservation is the golang structure for table meeting_reservation.
- type MeetingReservation internal.MeetingReservation
- // Fill with you ideas below.
- type ReservationReq struct {
- Id int `orm:"Id,primary" json:"id"` // 主键ID
- Title string `orm:"Title" json:"title" v:"required#会议名称不能为空"` // 标题/会议名称
- StartTime *gtime.Time `orm:"StartTime" json:"start_time" v:"required#会议开始时间不能为空"` // 开始时间
- EndTime *gtime.Time `orm:"EndTime" json:"end_time" v:"required#会议结束时间不能为空"` // 结束时间
- UserId int `orm:"UserId" json:"user_id"` // 预约人
- DepartmentId int `orm:"DepartmentId" json:"department_id"` // 部门
- Remark string `orm:"Remark" json:"remark"` // 备注
- EntityId int `orm:"EntityId" json:"entity_id"` // 关联ID
- SignInTime *gtime.Time `orm:"SignInTime" json:"sign_in_time"` // 签到时间
- SignOutTime *gtime.Time `orm:"SignOutTime" json:"sign_out_time"` // 签退时间
- RealityUseDuration float64 `orm:"RealityUseDuration" json:"reality_use_duration"` // 实际使用时长
- UserName string `orm:"UserName" json:"user_name"` // 预约人姓名
- Status int `orm:"Status" json:"status"` // 预约状态(1:预定 2:取消)
- TimeSplit []string `json:"time_split"` // 预约时间
- }
- type List struct {
- Id uint `orm:"Id,primary" json:"id"` // 主键ID
- CreatedBy string `orm:"CreatedBy" json:"created_by"` // 创建人姓名
- CreatedAt *gtime.Time `orm:"CreatedAt" json:"created_at"` // 创建时间
- UpdatedAt *gtime.Time `orm:"UpdatedAt" json:"updated_at"` // 更新时间
- UpdatedBy string `orm:"UpdatedBy" json:"updated_by"` // 更新人姓名
- DeletedAt *gtime.Time `orm:"DeletedAt" json:"deleted_at"` // 删除时间
- UpdatedById int `orm:"UpdatedById" json:"updated_by_id"` // 更新人ID
- CreatedById int `orm:"CreatedById" json:"created_by_id"` // 创建人ID
- Title string `orm:"Title" json:"title"` // 标题
- StartTime *gtime.Time `orm:"StartTime" json:"start_time"` // 开始时间
- EndTime *gtime.Time `orm:"EndTime" json:"end_time"` // 结束时间
- UserId int `orm:"UserId" json:"user_id"` // 预约人
- DepartmentId int `orm:"DepartmentId" json:"department_id"` // 部门
- Remark string `orm:"Remark" json:"remark"` // 备注
- EntityId int `orm:"EntityId" json:"entity_id"` // 关联ID
- SignInTime *gtime.Time `orm:"SignInTime" json:"sign_in_time"` // 签到时间
- SignOutTime *gtime.Time `orm:"SignOutTime" json:"sign_out_time"` // 签退时间
- RealityUseDuration float64 `orm:"RealityUseDuration" json:"reality_use_duration"` // 实际使用时长
- UserName string `orm:"UserName" json:"user_name"` // 预约人姓名
- Status int `orm:"Status" json:"status"` // 预约状态(1:预定 2:取消)
- Name string `json:"name"` // 会议室名称
- DepartmentName string `json:"department_name"` // 部门名称
- }
- // CurrentDate 周时间信息
- type CurrentDate struct {
- Date string `json:"date"`
- Day int `json:"day"`
- }
- // OverviewReq 概况请求
- type OverviewReq struct {
- Date *gtime.Time `json:"date"`
- }
- type ShortList struct {
- Id int `orm:"Id,primary" json:"id"` // 主键ID
- Title string `orm:"Title" json:"title"` // 标题/会议名称
- StartTime *gtime.Time `orm:"StartTime" json:"startTime"` // 开始时间
- EndTime *gtime.Time `orm:"EndTime" json:"endTime"` // 结束时间
- UserId int `orm:"UserId" json:"user_id"` // 预约人
- EntityId int `orm:"EntityId" json:"entity_id"` // 关联ID
- SignOutTime *gtime.Time `orm:"SignOutTime" json:"sign_out_time"` // 签退时间
- }
- // ReserveReq 预约请求
- type ReserveReq struct {
- EntityId int `json:"entity_id"` // 实体Id
- Date *gtime.Time `json:"date"` // 当前时间
- }
- // ReservationList 预约详情
- type ReservationList struct {
- Day int `json:"day"` // 日期
- Dept string `json:"dept"` // 部门
- StartTime string `json:"start_time"` // 预约开始时间
- Tel string `json:"tel"` // 手机号
- Uid int `json:"uid"` // 用户ID
- Uname string `json:"uname"` // 用户名称
- Week int `json:"week"` // 本周时间
- }
- // EndingReq 预约请求
- type EndingReq struct {
- Id int `json:"id"` // Id
- Date *gtime.Time `json:"date"` // 当前时间
- }
|