1
This commit is contained in:
@@ -114,10 +114,10 @@ type ImMessageSend struct {
|
||||
type PayLoad struct {
|
||||
SenderID string `json:"senderId"` //角色+随机数字串;角色:10(用户)、20(骑手)、30(商家)、32(连锁账号登录)
|
||||
ReceiverIDs []string `json:"receiverIds"` //角色+随机数字串;角色:10(用户)、20(骑手)、30(商家)、32(连锁账号登录)
|
||||
CreateTime int64 `json:"createTime"` //时间戳
|
||||
CreateTime int `json:"createTime"` //时间戳
|
||||
GroupID string `json:"groupId"` //会话id
|
||||
MsgID string `json:"msgId"` //消息ID
|
||||
ContentType int `json:"contentType"` //消息类型,枚举值:1-普通文本
|
||||
ContentType string `json:"contentType"` //消息类型,枚举值:1-普通文本
|
||||
Content string `json:"content"`
|
||||
}
|
||||
|
||||
|
||||
@@ -32,3 +32,9 @@ func TestSendMsg(t *testing.T) {
|
||||
})
|
||||
fmt.Println(err)
|
||||
}
|
||||
|
||||
func TestNew(t *testing.T) {
|
||||
a := 1698388286149
|
||||
b := int(a / 1000)
|
||||
fmt.Println(b)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user