plat_schedule.go 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. SchType string `json:"schType"` // 类型:10非全天日程;20全天日程
  20. BizType string `json:"bizType,omitempty"` //关联业务类型
  21. BizBillId int `json:"bizBillId,omitempty"` //关联业务单据
  22. UserIds []string `json:"userIds" v:"required#用户不能为空"` // 用户unionId
  23. }
  24. // ScheduleSearchReq 日程表列表搜索参数
  25. type ScheduleSearchReq struct {
  26. SchDate *gtime.Time `json:"schDate"` // 日期
  27. DataType string `json:"dataType"` // 数据类型:(前后端约定)10 查询参与者,其他 查询组织者
  28. request.PageReq
  29. }
  30. // GetScheduleRes 日程管理列表返回
  31. type GetScheduleRes struct {
  32. PlatSchedule
  33. Attendees []*PlatScheduleAttendee `json:"attendees"` // 参与者
  34. }
  35. // UserBusyStatusReq 用户闲忙信息请求
  36. type UserBusyStatusReq struct {
  37. BeginTime *gtime.Time `json:"beginTime" v:"required#开始时间不能为空"` // 开始时间
  38. EndTime *gtime.Time `json:"endTime" v:"required#结束时间不能为空"` // 结束时间
  39. UserIds []string `json:"userIds" v:"required#用户不能为空"` // 用户unionId
  40. }
  41. // DingScheduleEvent 钉钉事件回调,接收参数
  42. type DingScheduleEvent struct {
  43. ChangeType string
  44. EventType string
  45. CalendarEventId string
  46. UnionIdList []string
  47. }