-
Notifications
You must be signed in to change notification settings - Fork 0
/
notify.go
35 lines (29 loc) · 923 Bytes
/
notify.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package reply
import (
"time"
"github.com/0RAJA/chat_app/src/model"
)
type GroupNotify struct {
ID int64 `json:"id"`
RelationID int64 `json:"relation_id"`
MsgContent string `json:"msg_content"`
MsgExpand *model.MsgExtend `json:"msg_expand"`
AccountID int64 `json:"account_id"`
CreateAt time.Time `json:"create_at"`
ReadIds []int64 `json:"read_ids"`
}
type UpdateNotify struct {
}
type Notify struct {
ID int64 `json:"id"`
RelationID int64 `json:"relation_id"`
MsgContent string `json:"msg_content"`
MsgExpand *model.MsgExtend `json:"msg_expand"`
AccountID int64 `json:"account_id"`
CreateAt time.Time `json:"create_at"`
ReadIds []int64 `json:"read_ids"`
}
type GetNotify struct {
List []Notify `json:"list"`
Total int64 `json:"total,omitempty"`
}