plat_schedule.go 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. // ==========================================================================
  2. // This is auto-generated by gf cli tool. Fill this file as you wish.
  3. // ==========================================================================
  4. package plat
  5. import (
  6. "dashoo.cn/opms_libary/request"
  7. "github.com/gogf/gf/os/gtime"
  8. "dashoo.cn/micro/app/model/plat/internal"
  9. )
  10. // PlatSchedule is the golang structure for table plat_schedule.
  11. type PlatSchedule internal.PlatSchedule
  12. // Fill with you ideas below.
  13. //AddScheduleSeq 添加日程表
  14. type AddScheduleSeq struct {
  15. SchTitle string `json:"schTitle" v:"required#日程标题不能为空"` //标题
  16. SchContent string `json:"schContent" v:"required#日程内容不能为空"` //内容
  17. SchDate *gtime.Time `json:"schDate" v:"required#开始时间不能为空"` //日程开始时间
  18. SchDateEnd *gtime.Time `json:"schDateEnd" v:"required#结束时间不能为空"` //日程结束时间
  19. BizType string `json:"bizType,omitempty"` //关联业务类型
  20. BizBillId int `json:"bizBillId,omitempty"` //关联业务单据
  21. UserIds []string `json:"userIds" v:"required#用户不能为空"` // 用户unionId
  22. }
  23. // ScheduleSearchReq 日程表列表搜索参数
  24. type ScheduleSearchReq struct {
  25. SchDate *gtime.Time `json:"schDate"` // 日期
  26. DataType string `json:"dataType"` // 数据类型:(前后端约定)10 查询参与者,其他 查询组织者
  27. request.PageReq
  28. }
  29. // GetScheduleRes 日程管理列表返回
  30. type GetScheduleRes struct {
  31. PlatSchedule
  32. Attendees []*PlatScheduleAttendee `json:"attendees"` // 参与者
  33. }
  34. // UserBusyStatusReq 用户闲忙信息请求
  35. type UserBusyStatusReq struct {
  36. BeginTime *gtime.Time `json:"beginTime" v:"required#开始时间不能为空"` // 开始时间
  37. EndTime *gtime.Time `json:"endTime" v:"required#结束时间不能为空"` // 结束时间
  38. UserIds []string `json:"userIds" v:"required#用户不能为空"` // 用户unionId
  39. }
  40. // DingScheduleEvent 钉钉事件回调,接收参数
  41. type DingScheduleEvent struct {
  42. ChangeType string
  43. EventType string
  44. CalendarEventId string
  45. UnionIdList []string
  46. }