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.
go-fly/controller/response.go

34 lines
811 B

package controller
var (
Port string
)
type Response struct {
Code int `json:"code"`
Msg string `json:"msg"`
result interface{} `json:"result"`
}
type ChatMessage struct {
Time string `json:"time"`
Content string `json:"content"`
MesType string `json:"mes_type"`
Name string `json:"name"`
Avator string `json:"avator"`
}
type VisitorOnline struct {
Uid string `json:"uid"`
Username string `json:"username"`
Avator string `json:"avator"`
LastMessage string `json:"last_message"`
}
type GetuiResponse struct {
Code float64 `json:"code"`
Msg string `json:"msg"`
Data map[string]interface{} `json:"data"`
}
type VisitorExtra struct {
VisitorName string `json:"visitorName"`
VisitorAvatar string `json:"visitorAvatar"`
}