You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
700 B
29 lines
700 B
/**
|
|
* Created by GoLand.
|
|
* User: link1st
|
|
* Date: 2019-07-27
|
|
* Time: 14:41
|
|
*/
|
|
|
|
package models
|
|
|
|
/************************ 请求数据 **************************/
|
|
// 通用请求数据格式
|
|
type Request struct {
|
|
Seq string `json:"seq"` // 消息的唯一Id
|
|
Cmd string `json:"cmd"` // 请求命令字
|
|
Data interface{} `json:"data,omitempty"` // 数据 json
|
|
}
|
|
|
|
// 登录请求数据
|
|
type Login struct {
|
|
ServiceToken string `json:"serviceToken"` // 验证用户是否登录
|
|
AppId uint32 `json:"appId,omitempty"`
|
|
UserId string `json:"userId,omitempty"`
|
|
}
|
|
|
|
// 心跳请求数据
|
|
type HeartBeat struct {
|
|
UserId string `json:"userId,omitempty"`
|
|
}
|