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