25 lines
718 B
Go
25 lines
718 B
Go
package proto
|
|
|
|
import "time"
|
|
|
|
type ImKeyReq struct {
|
|
To_user_id int `json:"to_user_id" form:"to_user_id" binding:"required"`
|
|
}
|
|
|
|
// 定义WebSocket消息格式
|
|
type Message struct {
|
|
Type string `json:"type"`
|
|
Msg string `json:"data"`
|
|
To_user_id int `json:"to_user_id"`
|
|
From_user_id int `json:"from_user_id"`
|
|
Session string `json:"session"`
|
|
}
|
|
|
|
// cid正在运行结构
|
|
type CIDRunning struct {
|
|
ID int `json:"id" form:"id"` //cid的id
|
|
CID string `json:"cid" form:"cid"` //cid名称
|
|
AuthID int `json:"auth_id" form:"auth_id"` //所属用户
|
|
StartTime time.Time `json:"start_time" form:"start_time"` //开始时间
|
|
}
|