ws update

This commit is contained in:
Gordon
2023-03-24 19:21:08 +08:00
parent 7975a377a0
commit 9843d5c7ba
2 changed files with 13 additions and 3 deletions
+5
View File
@@ -31,6 +31,11 @@ type Resp struct {
ErrMsg string `json:"errMsg"`
Data []byte `json:"data"`
}
func (r *Resp) String() string {
return utils.StructToJsonString(r)
}
type MessageHandler interface {
GetSeq(context context.Context, data Req) ([]byte, error)
SendMessage(context context.Context, data Req) ([]byte, error)