sys_message.go 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. // ==========================================================================
  2. // This is auto-generated by gf cli tool. Fill this file as you wish.
  3. // ==========================================================================
  4. package model
  5. import (
  6. "dashoo.cn/micro/app/model/internal"
  7. "dashoo.cn/opms_libary/request"
  8. "github.com/gogf/gf/os/gtime"
  9. )
  10. // SysMessage is the golang structure for table sys_message.
  11. type SysMessage internal.SysMessage
  12. // Fill with you ideas below.
  13. type SysMessageSearchReq struct {
  14. MsgTitle string `json:"msgTitle"`
  15. MsgType string `json:"msgType"`
  16. request.PageReq
  17. }
  18. type CreateSysMessageReq struct {
  19. MsgTitle string `json:"msgTitle" v:"required#消息标题不能为空"` // 消息标题
  20. MsgContent string `json:"msgContent" v:"required#消息内容不能为空"` // 消息内容
  21. MsgType string `json:"msgType" v:"required|in:10,20,30#消息类别不能为空|消息类别只能为10、20、30"` // 消息类别(10公告20消息30审批)
  22. MsgStatus string `json:"msgStatus" v:"required|in:10,20#消息状态不能为空|消息状态只能为10或20"` // 消息状态(10正常20关闭)
  23. RecvUserIds string `json:"recvUserIds"` // 接收用户
  24. SendType string `json:"sendType"` // 发送方式
  25. OpnUrl string `json:"opnUrl"` // 操作链接
  26. IsRead string `json:"isRead"` // 是否已读(10否20是)
  27. Remark string `json:"remark"` // 备注
  28. }
  29. type UpdateSysMessageReq struct {
  30. Id int64 `json:"id" v:"required|min:1#主键ID不能为空|主键ID参数错误"`
  31. CreateSysMessageReq
  32. }
  33. type SysMessageUserRes struct {
  34. SysMessage
  35. IsRead string `orm:"is_read" json:"isRead"` // 是否已读(10否20是)
  36. ReadTime *gtime.Time `orm:"read_time" json:"readTime"` // 已读时间
  37. }