123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195 |
- // Code generated by goctl. DO NOT EDIT.
- package types
- type MessageDeleteReq struct {
- Id string `form:"id"`
- AppId string `form:"appId"`
- }
- type Response struct {
- Code int64 `json:"code"`
- Message string `json:"message"`
- }
- type MessageDetailReq struct {
- Id string `form:"id"`
- }
- type MessageDetailResp struct {
- Code int64 `json:"code"`
- Message string `json:"message"`
- Data map[string]interface{} `json:"data"`
- }
- type MessageGetLastReq struct {
- UserId string `form:"userId"`
- AppId string `form:"appId"`
- MsgType int64 `form:"msgType"`
- IsRead int64 `form:"isRead"` // 1 0 -1
- }
- type MessageGetLastRes struct {
- Code int64 `json:"code"`
- Message string `json:"message"`
- Data map[string]interface{} `json:"data"`
- }
- type MessageFindReq struct {
- UserId string `form:"userId"`
- AppId string `form:"appId"`
- ReceiveUserId string `form:"receiveUserId"`
- MsgType int64 `form:"msgType"` // 是否限制消息类型 -1 不限制
- IsRead int64 `form:"isRead"` // 是否限制未读 -1 不限制
- Offset int64 `form:"offset"` // 页数
- PageSize int64 `form:"pageSize"` //
- }
- type MessageFindRes struct {
- Code int64 `json:"code"`
- Message string `json:"message"`
- Data []map[string]interface{} `json:"data"`
- Total int64 `json:"total"`
- }
- type MessageUnreadClassCountReq struct {
- UserId string `form:"userId"`
- AppId string `form:"appId"`
- }
- type MessageUnreadClassCountRes struct {
- Code int64 `json:"code"`
- Message string `json:"message"`
- Data []map[string]interface{} `json:"data"`
- }
- type MessageUnreadCountReq struct {
- UserId string `header:"mgoUserId"`
- AppId string `header:"appId"`
- }
- type MessageUnreadCountRes struct {
- Code int64 `json:"code"`
- Message string `json:"message"`
- Data map[string]interface{} `json:"data"`
- }
- type MessageTypeReq struct {
- UserId string `form:"userId"`
- AppId string `form:"appId"`
- }
- type MessageTypeRes struct {
- Code int64 `json:"code"`
- Message string `json:"message"`
- Data []int64 `json:"data"`
- }
- type MsgReadStatusReq struct {
- UserId string `form:"userId"`
- AppId string `form:"appId"`
- MsgType int `form:"msgType"`
- }
- type MsgReadStatusResp struct {
- Code int64 `json:"code"`
- Message string `json:"message"`
- Status int64 `json:"status"`
- }
- type MarkReadReq struct {
- MsgId string `form:"msgId"`
- AppId string `form:"appId"`
- }
- type MarkReadRes struct {
- Code int64 `json:"code"`
- Message string `json:"message"`
- Data int64 `json:"data"`
- }
- type SendMsgReq struct {
- ReceiveUserId string `form:"receiveUserId"` //接收方的用户id
- ReceiveName string `form:"receiveName,optional"` //接收方的用户名
- SendUserId string `form:"sendUserId"` //发送方的用户id
- SendName string `form:"sendName"` //发送方的用户名
- Title string `form:"title"` //标题
- Content string `form:"content"` //内容
- MsgType int64 `form:"msgType"` // 消息类型
- Link string `form:"link,optional"` //连接
- CiteId int64 `form:"citeId,optional"` //应用id
- Appid string `form:"appid"`
- }
- type SendMsgResp struct {
- Code int64 `json:"code"`
- Message string `json:"message"`
- Status int64 `json:"status"`
- }
- type MultipleSaveMsgReq struct {
- MsgInfo map[string]interface{} `json:"msgInfo"`
- UserIds string `json:"userIds"`
- UserNames string `json:"userNames"`
- PositionIds string `json:"positionIds,optional"` // 职位id 如果是多个就逗号分割 和用户id一一对应
- }
- type MultipleSaveMsgResp struct {
- Code int64 `json:"code"`
- Message string `json:"message"`
- ErrCount int64 `json:"errCount"`
- }
- type GetBuoyMsgReq struct {
- UserId string `header:"mgoUserId"`
- AppId string `header:"appId"`
- Size int64 `json:"size,optional"`
- }
- type GetBuoyMsgResp struct {
- Code int64 `json:"error_code"`
- Message string `json:"error_msg"`
- Data []map[string]interface{} `json:"data"`
- }
- type ClearUnreadMsgReq struct {
- UserId string `header:"mgoUserId"`
- AppId string `header:"appId"`
- EntId int64 `header:"entId,optional"`
- PositionId int64 `header:"positionId,optional"`
- }
- type MessageListReq struct {
- UserId string `header:"mgoUserId"`
- AppId string `header:"appId"`
- EntId int64 `header:"entId,optional"`
- SortSize int64 `json:"sortSize,optional"` //分类获取数
- Offset int64 `json:"offset"` //
- Size int64 `json:"size,optional"`
- MsgType int64 `json:"msgType,optional"`
- IsRead int64 `json:"isRead,optional"`
- IsPc bool `json:"isPc"`
- MobileHome bool `json:"mobileHome"`
- }
- type MessageListResp struct {
- Code int64 `json:"code"`
- Message string `json:"message"`
- Data []map[string]interface{} `json:"data"`
- Last map[string]interface{} `json:"last"`
- Total int64 `json:"total"`
- Column []map[string]interface{} `json:"column"`
- }
- type UnreadMessageReq struct {
- UserId string `header:"mgoUserId"`
- AppId string `header:"appId"`
- Offset int64 `json:"offset"` //
- PageSize int64 `json:"pageSize"`
- }
- type UnreadMessageResp struct {
- Code int64 `json:"code"`
- Message string `json:"message"`
- Data []map[string]interface{} `json:"data"`
- Total int64 `json:"total"`
- }
|