gofmt
This commit is contained in:
parent
c424b75cf6
commit
14401c831a
1 changed files with 12 additions and 12 deletions
|
@ -23,15 +23,15 @@ var (
|
|||
|
||||
type Type string
|
||||
type MsgBase struct {
|
||||
ID *int `json:"id,omitempty"`
|
||||
ID *int `json:"id,omitempty"`
|
||||
Type Type `json:"type"`
|
||||
}
|
||||
|
||||
type (
|
||||
wsSession struct {
|
||||
conn *websocket.Conn
|
||||
b core.Blas
|
||||
ec echo.Context
|
||||
conn *websocket.Conn
|
||||
b core.Blas
|
||||
ec echo.Context
|
||||
write chan<- interface{}
|
||||
|
||||
user *auth.User
|
||||
|
@ -213,13 +213,13 @@ func (ws *wsSession) handleMsg(ctx context.Context, msgMap map[string]interface{
|
|||
idFl, ok := msgMap["id"].(float64)
|
||||
if !ok {
|
||||
ws.Write(WSError{
|
||||
Type: ResultMsgType,
|
||||
Success: false,
|
||||
Error: Error{
|
||||
Code: "invalid_id",
|
||||
Message: "command has no ID",
|
||||
},
|
||||
})
|
||||
Type: ResultMsgType,
|
||||
Success: false,
|
||||
Error: Error{
|
||||
Code: "invalid_id",
|
||||
Message: "command has no ID",
|
||||
},
|
||||
})
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue