add context.Context with message struct

This commit is contained in:
Ivy1996-encode 2021-02-20 23:07:59 +08:00
parent e3639eb1f3
commit c50194ff84

View File

@ -1,6 +1,7 @@
package openwechat
import (
"context"
"errors"
"os"
"strings"
@ -44,6 +45,7 @@ type Message struct {
senderInGroupUserName string
mu sync.RWMutex
item map[string]interface{}
Context context.Context
}
// 获取消息的发送者