diff --git a/clients/go_wcf_http/README.MD b/clients/go_wcf_http/README.MD new file mode 100644 index 0000000..19bc228 --- /dev/null +++ b/clients/go_wcf_http/README.MD @@ -0,0 +1,16 @@ +# wechatFerry 的 go版本http端 + +接口文档:https://apifox.com/apidoc/shared-6e6950ec-1a6d-4545-90d6-d27d31af2b7c + +http服务器的端口是 8000 需要修改的自行编译懒得写配置文件 +localhost:8000是本地接口文档 + +由于用到了cgo 编译需要安装Mingw +Mingw下载地址:https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/8.1.0/threads-win32/sjlj/x86_64-8.1.0-release-win32-sjlj-rt_v6-rev0.7z/download + +打包命令 + +#x86 win 编译 +set GOOS=windows +set GOARCH=amd64 +go build -ldflags="-s -w" -o go_wcf_http3.9.10.27.exe .\main.go diff --git a/clients/go_wcf_http/app/api.go b/clients/go_wcf_http/app/api.go new file mode 100644 index 0000000..af34556 --- /dev/null +++ b/clients/go_wcf_http/app/api.go @@ -0,0 +1,450 @@ +package app + +import ( + "fmt" + "github.com/gin-gonic/gin" + "net/http" +) + +type Result struct { + Code int `json:"code"` + Message string `json:"message"` + Data interface{} `json:"data"` +} + +// SetMessageCallbackUrl 设置消息回调地址 +func SetMessageCallbackUrl(c *gin.Context) { + var result Result + var RequestData struct { + CallbackUrl string `json:"callback_url"` + } + if err := c.BindJSON(&RequestData); err != nil { + result.Code = 0 + result.Message = "json解析失败" + var data = make(map[string]interface{}) + result.Data = data + c.JSON(http.StatusOK, result) + return + } + result.Code = 1 + result.Message = "回调url设置成功" + var data = map[string]string{"callback_url": RequestData.CallbackUrl} + result.Data = data + WxClient.MessageCallbackUrl = RequestData.CallbackUrl + c.JSON(http.StatusOK, result) +} + +// GetSelfWXID 获取登录者的wxid +func GetSelfWXID(c *gin.Context) { + var result Result + wxId := WxClient.GetSelfWXID() + if wxId == "" { + result.Code = 0 + result.Message = "获取登录者的wx_id失败" + var data = map[string]string{"wx_id": wxId} + result.Data = data + c.JSON(http.StatusOK, result) + return + } + result.Code = 1 + result.Message = "获取登录者的wx_id成功" + var data = map[string]string{"wx_id": wxId} + result.Data = data + c.JSON(http.StatusOK, result) +} + +// GetUserInfo 获取自己的信息 +func GetUserInfo(c *gin.Context) { + var result Result + result.Code = 1 + result.Message = "获取个人信息成功" + result.Data = WxClient.GetUserInfo() + c.JSON(http.StatusOK, result) +} + +// GetMsgTypes 获取消息类型列表 +func GetMsgTypes(c *gin.Context) { + var result Result + result.Code = 1 + result.Message = "获取消息类型列表成功" + result.Data = WxClient.GetMsgTypes() + c.JSON(http.StatusOK, result) +} + +// GetContacts 获取通讯录 +func GetContacts(c *gin.Context) { + var result Result + // 此处手动修改了wcf.pd.go文件 原文件为json字段为空时不返回 如有需要可以自行补上, omitempty + result.Code = 1 + result.Message = "获取通讯录成功" + result.Data = WxClient.GetContacts() + c.JSON(http.StatusOK, result) +} + +// GetRoomMembersAll 获取全部群的群成员 +func GetRoomMembersAll(c *gin.Context) { + var result Result + var RoomMemberList = make(map[string]string) + contacts := WxClient.ExecDBQuery("MicroMsg.db", "SELECT UserName, NickName FROM Contact;") + for _, v := range contacts { + RoomMemberList[string(v.GetFields()[0].Content)] = string(v.GetFields()[1].Content) + } + result.Code = 1 + result.Message = "获取全部数据成功" + result.Data = RoomMemberList + c.JSON(http.StatusOK, result) +} + +// GetRoomMember 获取指定群成员 +func GetRoomMember(c *gin.Context) { + var result Result + var RequestData struct { + RoomId string `json:"room_id"` + } + if err := c.BindJSON(&RequestData); err != nil { + result.Code = 0 + result.Message = "json解析失败" + var data = make(map[string]interface{}) + result.Data = data + c.JSON(http.StatusOK, result) + return + } + contacts := WxClient.ExecDBQuery("MicroMsg.db", "SELECT RoomData FROM ChatRoom WHERE ChatRoomName = '"+RequestData.RoomId+"';") + for _, v := range contacts { + fmt.Print(v.GetFields()[0].Content) + } +} + +// GetDBNames 获取全部的数据库 +func GetDBNames(c *gin.Context) { + var result Result + // 此处手动修改了wcf.pd.go文件 原文件为json字段为空时不返回 如有需要可以自行补上, omitempty + result.Code = 1 + result.Message = "获取全部的数据库成功" + result.Data = WxClient.GetDBNames() + c.JSON(http.StatusOK, result) +} + +// GetDBTables 获取表 +func GetDBTables(c *gin.Context) { + var result Result + var RequestData struct { + DbName string `json:"db_name"` + } + if err := c.BindJSON(&RequestData); err != nil { + result.Code = 0 + result.Message = "json解析失败" + var data = make(map[string]interface{}) + result.Data = data + c.JSON(http.StatusOK, result) + return + } + result.Code = 1 + result.Message = "获取成功" + result.Data = WxClient.GetDBTables(RequestData.DbName) + c.JSON(http.StatusOK, result) +} + +// ExecDBQuery 执行sql +func ExecDBQuery(c *gin.Context) { + var result Result + var RequestData struct { + Db string `json:"db"` + Sql string `json:"sql"` + } + if err := c.BindJSON(&RequestData); err != nil { + result.Code = 0 + result.Message = "json解析失败" + var data = make(map[string]interface{}) + result.Data = data + c.JSON(http.StatusOK, result) + return + } + result.Code = 1 + result.Message = "获取成功" + var data = WxClient.ExecDBQuery(RequestData.Db, RequestData.Sql) + result.Data = data + c.JSON(http.StatusOK, result) +} + +// SendTxt 发送文本内容 +func SendTxt(c *gin.Context) { + var result Result + var RequestData struct { + Msg string `json:"msg"` + Receiver string `json:"receiver"` + Ates []string `json:"ates"` + } + if err := c.BindJSON(&RequestData); err != nil { + result.Code = 0 + result.Message = "json解析失败" + var data = make(map[string]interface{}) + result.Data = data + c.JSON(http.StatusOK, result) + return + } + result.Code = 1 + result.Message = "发送完成" + var data = WxClient.SendTxt(RequestData.Msg, RequestData.Receiver, RequestData.Ates) + result.Data = data + c.JSON(http.StatusOK, result) +} + +// SendIMG 发送图片 +func SendIMG(c *gin.Context) { + var result Result + var RequestData struct { + Path string `json:"path"` + Receiver string `json:"receiver"` + } + if err := c.BindJSON(&RequestData); err != nil { + result.Code = 0 + result.Message = "json解析失败" + var data = make(map[string]interface{}) + result.Data = data + c.JSON(http.StatusOK, result) + return + } + result.Code = 1 + result.Message = "发送完成" + var data = WxClient.SendIMG(RequestData.Path, RequestData.Receiver) + result.Data = data + c.JSON(http.StatusOK, result) +} + +// SendFile 发送文件 +func SendFile(c *gin.Context) { + var result Result + var RequestData struct { + Path string `json:"path"` + Receiver string `json:"receiver"` + } + if err := c.BindJSON(&RequestData); err != nil { + result.Code = 0 + result.Message = "json解析失败" + var data = make(map[string]interface{}) + result.Data = data + c.JSON(http.StatusOK, result) + return + } + result.Code = 1 + result.Message = "发送完成" + var data = WxClient.SendFile(RequestData.Path, RequestData.Receiver) + result.Data = data + c.JSON(http.StatusOK, result) +} + +// SendRichText 发送卡片消息 +func SendRichText(c *gin.Context) { + var result Result + var RequestData struct { + Name string `json:"name"` + Account string `json:"account"` + Title string `json:"title"` + Digest string `json:"digest"` + Url string `json:"url"` + ThumbUrl string `json:"thumb_url"` + Receiver string `json:"receiver"` + } + if err := c.BindJSON(&RequestData); err != nil { + result.Code = 0 + result.Message = "json解析失败" + var data = make(map[string]interface{}) + result.Data = data + c.JSON(http.StatusOK, result) + return + } + result.Code = 1 + result.Message = "发送完成" + var data = WxClient.SendRichText(RequestData.Name, RequestData.Account, RequestData.Title, RequestData.Digest, RequestData.Url, RequestData.ThumbUrl, RequestData.Receiver) + result.Data = data + c.JSON(http.StatusOK, result) +} + +// SendPat 发送拍一拍消息 +func SendPat(c *gin.Context) { + var result Result + var RequestData struct { + RoomId string `json:"room_id"` + WxId string `json:"wx_id"` + } + if err := c.BindJSON(&RequestData); err != nil { + result.Code = 0 + result.Message = "json解析失败" + var data = make(map[string]interface{}) + result.Data = data + c.JSON(http.StatusOK, result) + return + } + result.Code = 1 + result.Message = "发送完成" + var data = WxClient.SendPat(RequestData.RoomId, RequestData.WxId) + result.Data = data + c.JSON(http.StatusOK, result) +} + +// ForwardMsg 发送拍一拍消息 +func ForwardMsg(c *gin.Context) { + var result Result + var RequestData struct { + Id uint64 `json:"id"` + Receiver string `json:"receiver"` + } + if err := c.BindJSON(&RequestData); err != nil { + result.Code = 0 + result.Message = "json解析失败" + var data = make(map[string]interface{}) + result.Data = data + c.JSON(http.StatusOK, result) + return + } + result.Code = 1 + result.Message = "转发完成" + var data = WxClient.ForwardMsg(RequestData.Id, RequestData.Receiver) + result.Data = data + c.JSON(http.StatusOK, result) +} + +// SendEmotion 发送gif +func SendEmotion(c *gin.Context) { + var result Result + var RequestData struct { + Path string `json:"path"` + Receiver string `json:"receiver"` + } + if err := c.BindJSON(&RequestData); err != nil { + result.Code = 0 + result.Message = "json解析失败" + var data = make(map[string]interface{}) + result.Data = data + c.JSON(http.StatusOK, result) + return + } + result.Code = 1 + result.Message = "发送完成" + var data = WxClient.SendEmotion(RequestData.Path, RequestData.Receiver) + result.Data = data + c.JSON(http.StatusOK, result) +} + +// AcceptFriend 接受好友请求 +func AcceptFriend(c *gin.Context) { + var result Result + var RequestData struct { + V3 string `json:"v3"` + V4 string `json:"v4"` + Scene int32 `json:"scene"` + } + if err := c.BindJSON(&RequestData); err != nil { + result.Code = 0 + result.Message = "json解析失败" + var data = make(map[string]interface{}) + result.Data = data + c.JSON(http.StatusOK, result) + return + } + result.Code = 1 + result.Message = "接收成功" + var data = WxClient.AcceptFriend(RequestData.V3, RequestData.V4, RequestData.Scene) + result.Data = data + c.JSON(http.StatusOK, result) +} + +// AddChatroomMembers 添加群成员 +func AddChatroomMembers(c *gin.Context) { + var result Result + var RequestData struct { + RoomId string `json:"room_id"` + WxId []string `json:"wx_ids"` + } + if err := c.BindJSON(&RequestData); err != nil { + result.Code = 0 + result.Message = "json解析失败" + var data = make(map[string]interface{}) + result.Data = data + c.JSON(http.StatusOK, result) + return + } + result.Code = 1 + result.Message = "发送完成" + var data = WxClient.AddChatRoomMembers(RequestData.RoomId, RequestData.WxId) + result.Data = data + c.JSON(http.StatusOK, result) +} + +// DelChatRoomMembers 添加群成员 +func DelChatRoomMembers(c *gin.Context) { + var result Result + var RequestData struct { + RoomId string `json:"room_id"` + WxId []string `json:"wx_ids"` + } + if err := c.BindJSON(&RequestData); err != nil { + result.Code = 0 + result.Message = "json解析失败" + var data = make(map[string]interface{}) + result.Data = data + c.JSON(http.StatusOK, result) + return + } + result.Code = 1 + result.Message = "发送完成" + var data = WxClient.DelChatRoomMembers(RequestData.RoomId, RequestData.WxId) + result.Data = data + c.JSON(http.StatusOK, result) +} + +// InvChatRoomMembers 邀请群成员 +func InvChatRoomMembers(c *gin.Context) { + var result Result + var RequestData struct { + RoomId string `json:"room_id"` + WxId []string `json:"wx_ids"` + } + if err := c.BindJSON(&RequestData); err != nil { + result.Code = 0 + result.Message = "json解析失败" + var data = make(map[string]interface{}) + result.Data = data + c.JSON(http.StatusOK, result) + return + } + result.Code = 1 + result.Message = "发送完成" + var data = WxClient.InvChatRoomMembers(RequestData.RoomId, RequestData.WxId) + result.Data = data + c.JSON(http.StatusOK, result) +} + +// RefreshPyq 刷新朋友圈 +func RefreshPyq(c *gin.Context) { + var result Result + result.Code = 1 + result.Message = "发送完成" + var data = WxClient.RefreshPYQ() + result.Data = data + c.JSON(http.StatusOK, result) +} + +// DownloadAttach 下载附件 +func DownloadAttach(c *gin.Context) { + var result Result + var RequestData struct { + Id uint64 `json:"id"` + Thumb string `json:"thumb"` + Extra string `json:"extra"` + } + if err := c.BindJSON(&RequestData); err != nil { + result.Code = 0 + result.Message = "json解析失败" + var data = make(map[string]interface{}) + result.Data = data + c.JSON(http.StatusOK, result) + return + } + result.Code = 1 + result.Message = "下载附件调用成功" + var data = WxClient.DownloadAttach(RequestData.Id, RequestData.Thumb, RequestData.Extra) + result.Data = data + c.JSON(http.StatusOK, result) +} diff --git a/clients/go_wcf_http/app/robot.go b/clients/go_wcf_http/app/robot.go new file mode 100644 index 0000000..ec9c6cd --- /dev/null +++ b/clients/go_wcf_http/app/robot.go @@ -0,0 +1,88 @@ +package app + +/* +#cgo LDFLAGS: -L../ -lsdk +#include +#include + +extern int WxInitSDK(bool, int); +extern int WxDestroySDK(); +*/ +import "C" +import ( + "fmt" + "go_wechatFerry/wcf" + "time" +) + +var WxClient *wcf.Client + +// Message 组装成一个结构体展示消息 +type Message struct { + IsGroup bool `json:"is_group,omitempty"` + MessageId uint64 `json:"message_id,omitempty"` + Type uint32 `json:"type,omitempty"` + Ts uint32 `json:"ts,omitempty"` + RoomId string `json:"room_id,omitempty"` + Content string `json:"content,omitempty"` + WxId string `json:"wx_id,omitempty"` + Sign string `json:"sign,omitempty"` + Xml string `json:"xml,omitempty"` +} + +// WechatFerryInit 调用sdk.dll中的WxInitSdk 进行启动微信并注入 +func WechatFerryInit() { + + // 调试模式 端口 + initSuccess := C.WxInitSDK(C.bool(false), C.int(10086)) + if initSuccess == 0 { + fmt.Println("SDK 初始化成功") + } else { + fmt.Println("SDK 初始化失败") + } + time.Sleep(time.Millisecond * 5000) + // 连接服务器 + client, errs := wcf.NewWCF("") + if errs != nil { + return + } + // 一定要在这里判断是否登录成功 否则会导致用户列表获取失败 + for true { + if client.IsLogin() == true { + fmt.Println("登录成功...等待初始化中...") + time.Sleep(2000 * time.Millisecond) + break + } + time.Sleep(1000 * time.Millisecond) + } + WxClient = client + ContactsInit() + fmt.Println("初始化完成") +} + +// ContactsInit 通讯录初始化 +func ContactsInit() { + var contactsMap []map[string]string + contacts := WxClient.GetContacts() + for _, v := range contacts { + gender := "" + if v.Gender == 1 { + gender = "男" + } + if v.Gender == 2 { + gender = "女" + } + contactsMaps := map[string]string{ + "wxId": v.Wxid, + "code": v.Code, + "remark": v.Remark, + "name": v.Name, + "country": v.Country, + "province": v.Province, + "city": v.City, + "gender": gender, + } + contactsMap = append(contactsMap, contactsMaps) + } + WxClient.ContactsMap = contactsMap +} diff --git a/clients/go_wcf_http/go.mod b/clients/go_wcf_http/go.mod new file mode 100644 index 0000000..a12ae38 --- /dev/null +++ b/clients/go_wcf_http/go.mod @@ -0,0 +1,43 @@ +module go_wechatFerry + +go 1.21.5 + +require ( + github.com/danbai225/go-logs v0.3.2 + github.com/gin-gonic/gin v1.10.0 + github.com/go-resty/resty/v2 v2.13.1 + github.com/gorilla/websocket v1.5.0 + go.nanomsg.org/mangos/v3 v3.4.2 + google.golang.org/protobuf v1.34.2 +) + +require ( + github.com/Microsoft/go-winio v0.5.2 // indirect + github.com/bytedance/sonic v1.11.6 // indirect + github.com/bytedance/sonic/loader v0.1.1 // indirect + github.com/cloudwego/base64x v0.1.4 // indirect + github.com/cloudwego/iasm v0.2.0 // indirect + github.com/gabriel-vasile/mimetype v1.4.3 // indirect + github.com/gin-contrib/sse v0.1.0 // indirect + github.com/go-playground/locales v0.14.1 // indirect + github.com/go-playground/universal-translator v0.18.1 // indirect + github.com/go-playground/validator/v10 v10.20.0 // indirect + github.com/goccy/go-json v0.10.2 // indirect + github.com/json-iterator/go v1.1.12 // indirect + github.com/klauspost/cpuid/v2 v2.2.7 // indirect + github.com/kpango/fastime v1.1.9 // indirect + github.com/kpango/glg v1.6.15 // indirect + github.com/leodido/go-urn v1.4.0 // indirect + github.com/mattn/go-isatty v0.0.20 // indirect + github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect + github.com/modern-go/reflect2 v1.0.2 // indirect + github.com/pelletier/go-toml/v2 v2.2.2 // indirect + github.com/twitchyliquid64/golang-asm v0.15.1 // indirect + github.com/ugorji/go/codec v1.2.12 // indirect + golang.org/x/arch v0.8.0 // indirect + golang.org/x/crypto v0.23.0 // indirect + golang.org/x/net v0.25.0 // indirect + golang.org/x/sys v0.20.0 // indirect + golang.org/x/text v0.15.0 // indirect + gopkg.in/yaml.v3 v3.0.1 // indirect +) diff --git a/clients/go_wcf_http/go.sum b/clients/go_wcf_http/go.sum new file mode 100644 index 0000000..648f5c6 --- /dev/null +++ b/clients/go_wcf_http/go.sum @@ -0,0 +1,181 @@ +github.com/Microsoft/go-winio v0.5.2 h1:a9IhgEQBCUEk6QCdml9CiJGhAws+YwffDHEMp1VMrpA= +github.com/Microsoft/go-winio v0.5.2/go.mod h1:WpS1mjBmmwHBEWmogvA2mj8546UReBk4v8QkMxJ6pZY= +github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= +github.com/bytedance/sonic v1.11.6 h1:oUp34TzMlL+OY1OUWxHqsdkgC/Zfc85zGqw9siXjrc0= +github.com/bytedance/sonic v1.11.6/go.mod h1:LysEHSvpvDySVdC2f87zGWf6CIKJcAvqab1ZaiQtds4= +github.com/bytedance/sonic/loader v0.1.1 h1:c+e5Pt1k/cy5wMveRDyk2X4B9hF4g7an8N3zCYjJFNM= +github.com/bytedance/sonic/loader v0.1.1/go.mod h1:ncP89zfokxS5LZrJxl5z0UJcsk4M4yY2JpfqGeCtNLU= +github.com/cloudwego/base64x v0.1.4 h1:jwCgWpFanWmN8xoIUHa2rtzmkd5J2plF/dnLS6Xd/0Y= +github.com/cloudwego/base64x v0.1.4/go.mod h1:0zlkT4Wn5C6NdauXdJRhSKRlJvmclQ1hhJgA0rcu/8w= +github.com/cloudwego/iasm v0.2.0 h1:1KNIy1I1H9hNNFEEH3DVnI4UujN+1zjpuk6gwHLTssg= +github.com/cloudwego/iasm v0.2.0/go.mod h1:8rXZaNYT2n95jn+zTI1sDr+IgcD2GVs0nlbbQPiEFhY= +github.com/danbai225/go-logs v0.3.2 h1:CXMudhrC9rj5hb3tyZvn2APZStioB68QZauZeBPFkmU= +github.com/danbai225/go-logs v0.3.2/go.mod h1:hHxvTTAIkZ3a6XRksnN50gxkqGIlQ1XkNl2U//2erH0= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/gabriel-vasile/mimetype v1.4.3 h1:in2uUcidCuFcDKtdcBxlR0rJ1+fsokWf+uqxgUFjbI0= +github.com/gabriel-vasile/mimetype v1.4.3/go.mod h1:d8uq/6HKRL6CGdk+aubisF/M5GcPfT7nKyLpA0lbSSk= +github.com/gdamore/optopia v0.2.0/go.mod h1:YKYEwo5C1Pa617H7NlPcmQXl+vG6YnSSNB44n8dNL0Q= +github.com/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE= +github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI= +github.com/gin-gonic/gin v1.10.0 h1:nTuyha1TYqgedzytsKYqna+DfLos46nTv2ygFy86HFU= +github.com/gin-gonic/gin v1.10.0/go.mod h1:4PMNQiOhvDRa013RKVbsiNwoyezlm2rm0uX/T7kzp5Y= +github.com/go-playground/assert/v2 v2.2.0 h1:JvknZsQTYeFEAhQwI4qEt9cyV5ONwRHC+lYKSsYSR8s= +github.com/go-playground/assert/v2 v2.2.0/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4= +github.com/go-playground/locales v0.14.1 h1:EWaQ/wswjilfKLTECiXz7Rh+3BjFhfDFKv/oXslEjJA= +github.com/go-playground/locales v0.14.1/go.mod h1:hxrqLVvrK65+Rwrd5Fc6F2O76J/NuW9t0sjnWqG1slY= +github.com/go-playground/universal-translator v0.18.1 h1:Bcnm0ZwsGyWbCzImXv+pAJnYK9S473LQFuzCbDbfSFY= +github.com/go-playground/universal-translator v0.18.1/go.mod h1:xekY+UJKNuX9WP91TpwSH2VMlDf28Uj24BCp08ZFTUY= +github.com/go-playground/validator/v10 v10.20.0 h1:K9ISHbSaI0lyB2eWMPJo+kOS/FBExVwjEviJTixqxL8= +github.com/go-playground/validator/v10 v10.20.0/go.mod h1:dbuPbCMFw/DrkbEynArYaCwl3amGuJotoKCe95atGMM= +github.com/go-resty/resty/v2 v2.13.1 h1:x+LHXBI2nMB1vqndymf26quycC4aggYJ7DECYbiz03g= +github.com/go-resty/resty/v2 v2.13.1/go.mod h1:GznXlLxkq6Nh4sU59rPmUw3VtgpO3aS96ORAI6Q7d+0= +github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU= +github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= +github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU= +github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= +github.com/gorilla/websocket v1.5.0 h1:PPwGk2jz7EePpoHN/+ClbZu8SPxiqlu12wZP/3sWmnc= +github.com/gorilla/websocket v1.5.0/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= +github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= +github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= +github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= +github.com/klauspost/cpuid/v2 v2.2.7 h1:ZWSB3igEs+d0qvnxR/ZBzXVmxkgt8DdzP6m9pfuVLDM= +github.com/klauspost/cpuid/v2 v2.2.7/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= +github.com/knz/go-libedit v1.10.1/go.mod h1:MZTVkCWyz0oBc7JOWP3wNAzd002ZbM/5hgShxwh4x8M= +github.com/kpango/fastime v1.1.9 h1:xVQHcqyPt5M69DyFH7g1EPRns1YQNap9d5eLhl/Jy84= +github.com/kpango/fastime v1.1.9/go.mod h1:vyD7FnUn08zxY4b/QFBZVG+9EWMYsNl+QF0uE46urD4= +github.com/kpango/glg v1.6.15 h1:nw0xSxpSyrDIWHeb3dvnE08PW+SCbK+aYFETT75IeLA= +github.com/kpango/glg v1.6.15/go.mod h1:cmsc7Yeu8AS3wHLmN7bhwENXOpxfq+QoqxCIk2FneRk= +github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI= +github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= +github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= +github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= +github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= +github.com/leodido/go-urn v1.4.0 h1:WT9HwE9SGECu3lg4d/dIA+jxlljEa1/ffXKmRjqdmIQ= +github.com/leodido/go-urn v1.4.0/go.mod h1:bvxc+MVxLKB4z00jd1z+Dvzr47oO32F/QSNjSBOlFxI= +github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= +github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= +github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= +github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= +github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= +github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M= +github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= +github.com/pelletier/go-toml/v2 v2.2.2 h1:aYUidT7k73Pcl9nb2gScu7NSrKCSHIDE89b3+6Wq+LM= +github.com/pelletier/go-toml/v2 v2.2.2/go.mod h1:1t835xjRzz80PqgE6HHgN2JOsmgYu/h4qDAS4n929Rs= +github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= +github.com/sirupsen/logrus v1.9.0 h1:trlNQbNUG3OdDrDil03MCb1H2o9nJ1x4/5LYw7byDE0= +github.com/sirupsen/logrus v1.9.0/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= +github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= +github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA= +github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= +github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= +github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= +github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= +github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= +github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= +github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +github.com/twitchyliquid64/golang-asm v0.15.1 h1:SU5vSMR7hnwNxj24w34ZyCi/FmDZTkS4MhqMhdFk5YI= +github.com/twitchyliquid64/golang-asm v0.15.1/go.mod h1:a1lVb/DtPvCB8fslRZhAngC2+aY1QWCk3Cedj/Gdt08= +github.com/ugorji/go/codec v1.2.12 h1:9LC83zGrHhuUA9l16C9AHXAqEV/2wBQ4nkvumAE65EE= +github.com/ugorji/go/codec v1.2.12/go.mod h1:UNopzCgEMSXjBc6AOMqYvWC1ktqTAfzJZUZgYf6w6lg= +github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= +github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= +go.nanomsg.org/mangos/v3 v3.4.2 h1:gHlopxjWvJcVCcUilQIsRQk9jdj6/HB7wrTiUN8Ki7Q= +go.nanomsg.org/mangos/v3 v3.4.2/go.mod h1:8+hjBMQub6HvXmuGvIq6hf19uxGQIjCofmc62lbedLA= +go.uber.org/atomic v1.7.0 h1:ADUqmZGgLDDfbSL9ZmPxKTybcoEYHgpYfELNoN+7hsw= +go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= +go.uber.org/goleak v1.1.11/go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ= +go.uber.org/multierr v1.6.0 h1:y6IPFStTAIT5Ytl7/XYmHvzXQ7S3g/IeZW9hyZ5thw4= +go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= +go.uber.org/zap v1.24.0 h1:FiJd5l1UOLj0wCgbSE0rwwXHzEdAZS6hiiSnxJN/D60= +go.uber.org/zap v1.24.0/go.mod h1:2kMP+WWQ8aoFoedH3T2sq6iJ2yDWpHbP0f6MQbS9Gkg= +golang.org/x/arch v0.0.0-20210923205945-b76863e36670/go.mod h1:5om86z9Hs0C8fWVUuoMHwpExlXzs5Tkyp9hOrfG7pp8= +golang.org/x/arch v0.8.0 h1:3wRIsP3pM4yUptoR96otTUOXI367OS0+c9eeRi9doIc= +golang.org/x/arch v0.8.0/go.mod h1:FEVrYAQjsQXMVJ1nsMoVVXPZg6p2JE2mx8psSWTDQys= +golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= +golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU= +golang.org/x/crypto v0.23.0 h1:dIJU/v2J8Mdglj/8rJ6UUOM3Zc9zLZxVZwwxMooUSAI= +golang.org/x/crypto v0.23.0/go.mod h1:CKFgDieR+mRhux2Lsu27y0fO304Db0wZe70UKqHu0v8= +golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= +golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= +golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= +golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= +golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44= +golang.org/x/net v0.25.0 h1:d/OCCoBEUq33pjydKrGQhw7IlUPI2Oylr+8qLx49kac= +golang.org/x/net v0.25.0/go.mod h1:JkAGAh7GEvH74S6FOH42FLoXpXbE/aqXSrIQjXgsiwM= +golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.20.0 h1:Od9JTbYCk261bKm4M/mw7AklTlFYIa0bIp9BgSm1S8Y= +golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= +golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= +golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= +golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo= +golang.org/x/term v0.17.0/go.mod h1:lLRBjIVuehSbZlaOtGMbcMncT+aqLLLmKrsjNrUguwk= +golang.org/x/term v0.20.0/go.mod h1:8UkIAJTvZgivsXaD6/pH6U9ecQzZ45awqEOzuCvwpFY= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= +golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= +golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= +golang.org/x/text v0.15.0 h1:h1V/4gjBv8v9cjcR6+AR5+/cIYK5N/WAgiv4xlsEtAk= +golang.org/x/text v0.15.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= +golang.org/x/time v0.5.0 h1:o7cqy6amK/52YcAKIPlM3a+Fpj35zvRj2TP+e1xFSfk= +golang.org/x/time v0.5.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= +golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= +golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= +golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE= +golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +google.golang.org/protobuf v1.34.2 h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg= +google.golang.org/protobuf v1.34.2/go.mod h1:qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY= +gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +nullprogram.com/x/optparse v1.0.0/go.mod h1:KdyPE+Igbe0jQUrVfMqDMeJQIJZEuyV7pjYmp6pbG50= +rsc.io/pdf v0.1.1/go.mod h1:n8OzWcQ6Sp37PL01nO98y4iUCRdTGarVfzxY20ICaU4= diff --git a/clients/go_wcf_http/mian.go b/clients/go_wcf_http/mian.go new file mode 100644 index 0000000..40268d9 --- /dev/null +++ b/clients/go_wcf_http/mian.go @@ -0,0 +1,213 @@ +package main + +import ( + "encoding/json" + "fmt" + "github.com/gin-gonic/gin" + resty "github.com/go-resty/resty/v2" + "github.com/gorilla/websocket" + "go_wechatFerry/app" + "go_wechatFerry/wcf" + "log" + "net" + "net/http" + "os" + "os/signal" + "strings" + "time" +) + +func init() { + // 运行sdk.dll中的函数 + app.WechatFerryInit() +} + +func httpInit() { + // 1.创建路由 + r := gin.New() + gin.SetMode(gin.ReleaseMode) + // 2.绑定路由规则,执行的函数 + // gin.Context,封装了request和response + // 设置模板目录 + r.LoadHTMLGlob("templates/*") + r.GET("/", func(c *gin.Context) { + c.HTML(http.StatusOK, "wechatFerryGoHttp.html", gin.H{}) + }) + + r.POST("/testHttp", func(c *gin.Context) { + type RequestData struct { + Code int `json:"code"` + Message string `json:"message"` + Data struct { + IsGroup bool `json:"is_group"` + MessageId uint64 `json:"message_id"` + Type uint32 `json:"type"` + Ts uint32 `json:"ts"` + RoomId string `json:"room_id"` + Content string `json:"content"` + WxId string `json:"wx_id"` + Sign string `json:"sign"` + Xml string `json:"xml"` + } `json:"data"` + } + var requestData RequestData + c.BindJSON(&requestData) + fmt.Println(requestData) + }) + + // 设置消息回调地址 + r.POST("/api/SetMessageCallbackUrl", app.SetMessageCallbackUrl) + // 获取登录的wx_id + r.GET("/api/GetSelfWXID", app.GetSelfWXID) + // 获取自己的信息 + r.GET("/api/GetUserInfo", app.GetUserInfo) + // 获取消息类型列表 + r.GET("/api/GetMsgTypes", app.GetMsgTypes) + // 获取通讯录成功 + r.GET("/api/GetContacts", app.GetContacts) + // 获取全部群的群成员 + r.GET("/api/GetRoomMembersAll", app.GetRoomMembersAll) + // 获取单个群成员列表 + r.POST("/api/GetRoomMember", app.GetRoomMember) + // 获取数据库名 + r.GET("/api/GetDBNames", app.GetDBNames) + // 获取表 + r.POST("/api/GetDBTables", app.GetDBTables) + // 执行sql + r.POST("/api/ExecDBQuery", app.ExecDBQuery) + // 发送文本消息 + r.POST("/api/SendTxt", app.SendTxt) + // 发送图片 + r.POST("/api/SendIMG", app.SendIMG) + // 发送文件 + r.POST("/api/SendFile", app.SendFile) + // 发送卡片消息 + r.POST("/api/SendRichText", app.SendRichText) + // 发送拍一拍消息 + r.POST("/api/SendPat", app.SendPat) + // 转发消息 + r.POST("/api/ForwardMsg", app.ForwardMsg) + + // 发送emoji消息 + r.POST("/api/SendEmotion", app.SendEmotion) + // 接受好友请求 + r.POST("/api/AcceptFriend", app.AcceptFriend) + // 添加群成员 + r.POST("/api/AddChatroomMembers", app.AddChatroomMembers) + // 邀请群成员 + r.POST("/api/InvChatRoomMembers", app.InvChatRoomMembers) + // 删除群成员 + r.POST("/api/DelChatRoomMembers", app.DelChatRoomMembers) + // 刷新朋友圈 + r.POST("/api/RefreshPyq", app.RefreshPyq) + // 下载附件 + r.POST("/api/DownloadAttach", app.DownloadAttach) + + r.Run(":8000") +} + +func OnMsg() { + err := app.WxClient.OnMSG(func(msg *wcf.WxMsg) { + var message app.Message + message.IsGroup = msg.IsGroup + message.MessageId = msg.Id + message.Type = msg.Type + message.Ts = msg.Ts + message.RoomId = msg.Roomid + message.Content = msg.Content + message.Sign = msg.Sign + message.WxId = msg.Sender + message.Xml = msg.Xml + if app.WxClient.MessageCallbackUrl != "" { + var data = map[string]interface{}{ + "code": 0, + "message": "微信消息", + "data": message, + } + jsonData, _ := json.Marshal(data) + if strings.Contains(app.WxClient.MessageCallbackUrl, "tcp://") { + conn, err := net.Dial("tcp", app.WxClient.MessageCallbackUrl) + defer conn.Close() + if err != nil { + fmt.Println("err :", err) + } else { + _, err := conn.Write(jsonData) + fmt.Println("err :", err) + } + } + if strings.Contains(app.WxClient.MessageCallbackUrl, "udp://") { + addr, err := net.ResolveUDPAddr("udp", app.WxClient.MessageCallbackUrl) + if err != nil { + fmt.Println("Error resolving address:", err) + return + } + // 创建 UDP 连接 + conn, err := net.DialUDP("udp", nil, addr) + if err != nil { + fmt.Println("Error dialing:", err) + return + } + defer conn.Close() + // 发送消息 + _, err = conn.Write(jsonData) + if err != nil { + fmt.Println("Error sending message:", err) + return + } + } + if strings.Contains(app.WxClient.MessageCallbackUrl, "ws://") { + // 创建 WebSocket 连接 + conn, _, err := websocket.DefaultDialer.Dial(app.WxClient.MessageCallbackUrl, nil) + if err != nil { + log.Fatal("Dial error:", err) + } + defer conn.Close() + // 设置写入超时 + conn.SetWriteDeadline(time.Now().Add(5 * time.Second)) + // 发送消息 + err = conn.WriteMessage(websocket.TextMessage, jsonData) + if err != nil { + log.Fatal("Write error:", err) + } + } + if strings.Contains(app.WxClient.MessageCallbackUrl, "http") { + _, err := resty.New().SetTimeout(5 * time.Second).R().SetBody(jsonData).Post(app.WxClient.MessageCallbackUrl) + if err != nil { + fmt.Println("http消息发送失败") + } + } + } else { + // 植入我自己的功能接口 + fmt.Println("请设置消息回调的url") + } + }) + fmt.Println(err) + if err != nil { + fmt.Println(err) + OnMsg() + } else { + fmt.Println("为正常接受消息状态") + } +} + +// 入口 +func main() { + // 注册Ctrl+C信号处理函数 + signalChan := make(chan os.Signal, 1) + signal.Notify(signalChan, os.Interrupt) + go func() { + <-signalChan + // 在收到Ctrl+C信号时执行清理操作 + fmt.Println("\n感谢温柔的ctrl+c关闭,下次可直接运行程序,无需重启微信。") + app.WxClient.Close() + os.Exit(0) + }() + // 开启接收消息 + _ = app.WxClient.EnableRecvTxt() + // 先启动http服务器 下面的会阻塞 + go httpInit() + // 启动推送消息的地方 + go OnMsg() + // 防止主goroutine退出 + select {} +} diff --git a/clients/go_wcf_http/proto/wcf.proto b/clients/go_wcf_http/proto/wcf.proto new file mode 100644 index 0000000..97083dd --- /dev/null +++ b/clients/go_wcf_http/proto/wcf.proto @@ -0,0 +1,236 @@ +syntax = "proto3"; + +package wcf; +option java_package = "com.iamteer"; +option go_package = "../wcf"; + +enum Functions { + FUNC_RESERVED = 0x00; + FUNC_IS_LOGIN = 0x01; + FUNC_GET_SELF_WXID = 0x10; + FUNC_GET_MSG_TYPES = 0x11; + FUNC_GET_CONTACTS = 0x12; + FUNC_GET_DB_NAMES = 0x13; + FUNC_GET_DB_TABLES = 0x14; + FUNC_GET_USER_INFO = 0x15; + FUNC_GET_AUDIO_MSG = 0x16; + FUNC_SEND_TXT = 0x20; + FUNC_SEND_IMG = 0x21; + FUNC_SEND_FILE = 0x22; + FUNC_SEND_XML = 0x23; + FUNC_SEND_EMOTION = 0x24; + FUNC_SEND_RICH_TXT = 0x25; + FUNC_SEND_PAT_MSG = 0x26; + FUNC_FORWARD_MSG = 0x27; + FUNC_ENABLE_RECV_TXT = 0x30; + FUNC_DISABLE_RECV_TXT = 0x40; + FUNC_EXEC_DB_QUERY = 0x50; + FUNC_ACCEPT_FRIEND = 0x51; + FUNC_RECV_TRANSFER = 0x52; + FUNC_REFRESH_PYQ = 0x53; + FUNC_DOWNLOAD_ATTACH = 0x54; + FUNC_GET_CONTACT_INFO = 0x55; + FUNC_REVOKE_MSG = 0x56; + FUNC_DECRYPT_IMAGE = 0x60; + FUNC_EXEC_OCR = 0x61; + FUNC_ADD_ROOM_MEMBERS = 0x70; + FUNC_DEL_ROOM_MEMBERS = 0x71; + FUNC_INV_ROOM_MEMBERS = 0x72; +} + +message Request +{ + Functions func = 1; + oneof msg + { + Empty empty = 2; + string str = 3; + TextMsg txt = 4; + PathMsg file = 5; + DbQuery query = 6; + Verification v = 7; + MemberMgmt m = 8; // 群成员管理,添加、删除、邀请 + XmlMsg xml = 9; + DecPath dec = 10; + Transfer tf = 11; + uint64 ui64 = 12; // 64 位整数,通用 + bool flag = 13; + AttachMsg att = 14; + AudioMsg am = 15; + RichText rt = 16; + PatMsg pm = 17; + ForwardMsg fm = 18; + } +} + +message Response +{ + Functions func = 1; + oneof msg + { + int32 status = 2; // Int 状态,通用 + string str = 3; // 字符串 + WxMsg wxmsg = 4; // 微信消息 + MsgTypes types = 5; // 消息类型 + RpcContacts contacts = 6; // 联系人 + DbNames dbs = 7; // 数据库列表 + DbTables tables = 8; // 表列表 + DbRows rows = 9; // 行列表 + UserInfo ui = 10; // 个人信息 + OcrMsg ocr = 11; // OCR 结果 + }; +} + +message Empty { } + +message WxMsg +{ + bool is_self = 1; // 是否自己发送的 + bool is_group = 2; // 是否群消息 + uint64 id = 3; // 消息 id + uint32 type = 4; // 消息类型 + uint32 ts = 5; // 消息类型 + string roomid = 6; // 群 id(如果是群消息的话) + string content = 7; // 消息内容 + string sender = 8; // 消息发送者 + string sign = 9; // Sign + string thumb = 10; // 缩略图 + string extra = 11; // 附加内容 + string xml = 12; // 消息 xml +} + +message TextMsg +{ + string msg = 1; // 要发送的消息内容 + string receiver = 2; // 消息接收人,当为群时可@ + string aters = 3; // 要@的人列表,逗号分隔 +} + +message PathMsg +{ + string path = 1; // 要发送的图片的路径 + string receiver = 2; // 消息接收人 +} + +message XmlMsg +{ + string receiver = 1; // 消息接收人 + string content = 2; // xml 内容 + string path = 3; // 图片路径 + int32 type = 4; // 消息类型 +} + +message MsgTypes { map types = 1; } + +message RpcContact +{ + string wxid = 1; // 微信 id + string code = 2; // 微信号 + string remark = 3; // 备注 + string name = 4; // 微信昵称 + string country = 5; // 国家 + string province = 6; // 省/州 + string city = 7; // 城市 + int32 gender = 8; // 性别 +} +message RpcContacts { repeated RpcContact contacts = 1; } + +message DbNames { repeated string names = 1; } + +message DbTable +{ + string name = 1; // 表名 + string sql = 2; // 建表 SQL +} +message DbTables { repeated DbTable tables = 1; } + +message DbQuery +{ + string db = 1; // 目标数据库 + string sql = 2; // 查询 SQL +} + +message DbField +{ + int32 type = 1; // 字段类型 + string column = 2; // 字段名称 + bytes content = 3; // 字段内容 +} +message DbRow { repeated DbField fields = 1; } +message DbRows { repeated DbRow rows = 1; } + +message Verification +{ + string v3 = 1; // 加密的用户名 + string v4 = 2; // Ticket + int32 scene = 3; // 添加方式:17 名片,30 扫码 +} + +message MemberMgmt +{ + string roomid = 1; // 要加的群ID + string wxids = 2; // 要加群的人列表,逗号分隔 +} + +message UserInfo +{ + string wxid = 1; // 微信ID + string name = 2; // 昵称 + string mobile = 3; // 手机号 + string home = 4; // 文件/图片等父路径 +} + +message DecPath +{ + string src = 1; // 源路径 + string dst = 2; // 目标路径 +} + +message Transfer +{ + string wxid = 1; // 转账人 + string tfid = 2; // 转账id transferid + string taid = 3; // Transaction id +} + +message AttachMsg +{ + uint64 id = 1; // 消息 id + string thumb = 2; // 消息中的 thumb + string extra = 3; // 消息中的 extra +} + +message AudioMsg +{ + uint64 id = 1; // 语音消息 id + string dir = 2; // 存放目录 +} + +message RichText +{ + string name = 1; // 显示名字 + string account = 2; // 公众号 id + string title = 3; // 标题 + string digest = 4; // 摘要 + string url = 5; // 链接 + string thumburl = 6; // 缩略图 + string receiver = 7; // 接收人 +} + +message PatMsg +{ + string roomid = 1; // 群 id + string wxid = 2; // wxid +} + +message OcrMsg +{ + int32 status = 1; // 状态 + string result = 2; // 结果 +} + +message ForwardMsg +{ + uint64 id = 1; // 待转发消息 ID + string receiver = 2; // 转发接收目标,群为 roomId,个人为 wxid +} diff --git a/clients/go_wcf_http/templates/wechatFerryGoHttp.html b/clients/go_wcf_http/templates/wechatFerryGoHttp.html new file mode 100644 index 0000000..a653024 --- /dev/null +++ b/clients/go_wcf_http/templates/wechatFerryGoHttp.html @@ -0,0 +1,224 @@ + + + + + + Apifox 接口文档 + + + + + + + +
+ + + + + + diff --git a/clients/go_wcf_http/wcf/wcf.go b/clients/go_wcf_http/wcf/wcf.go new file mode 100644 index 0000000..76d5ec5 --- /dev/null +++ b/clients/go_wcf_http/wcf/wcf.go @@ -0,0 +1,605 @@ +package wcf + +import ( + logs "github.com/danbai225/go-logs" + "go.nanomsg.org/mangos/v3" + "go.nanomsg.org/mangos/v3/protocol" + "go.nanomsg.org/mangos/v3/protocol/pair1" + _ "go.nanomsg.org/mangos/v3/transport/all" + "google.golang.org/protobuf/proto" + "strconv" + "strings" +) + +type Client struct { + add string + socket protocol.Socket + RecvTxt bool + ContactsMap []map[string]string + MessageCallbackUrl string +} + +func (c *Client) conn() error { + socket, err := pair1.NewSocket() + if err != nil { + return err + } + err = socket.Dial(c.add) + if err != nil { + return err + } + c.socket = socket + return err +} + +func (c *Client) send(data []byte) error { + return c.socket.Send(data) +} + +func (c *Client) Recv() (*Response, error) { + msg := &Response{} + recv, err := c.socket.Recv() + if err != nil { + return msg, err + } + err = proto.Unmarshal(recv, msg) + return msg, err +} + +// Close 退出 +func (c *Client) Close() error { + c.DisableRecvTxt() + return c.socket.Close() +} + +// IsLogin 查看是否登录 +func (c *Client) IsLogin() bool { + err := c.send(genFunReq(Functions_FUNC_IS_LOGIN).build()) + if err != nil { + logs.Err(err) + } + recv, err := c.Recv() + if err != nil { + logs.Err(err) + } + if recv.GetStatus() == 1 { + return true + } + return false +} + +// GetSelfWXID 获取登录的id +func (c *Client) GetSelfWXID() string { + err := c.send(genFunReq(Functions_FUNC_GET_SELF_WXID).build()) + if err != nil { + logs.Err(err) + } + recv, err := c.Recv() + if err != nil { + logs.Err(err) + } + return recv.GetStr() +} + +// GetMsgTypes 获取消息类型 +func (c *Client) GetMsgTypes() map[int32]string { + err := c.send(genFunReq(Functions_FUNC_GET_MSG_TYPES).build()) + if err != nil { + logs.Err(err) + } + recv, err := c.Recv() + if err != nil { + logs.Err(err) + } + return recv.GetTypes().GetTypes() +} + +// GetContacts 获取通讯录 +func (c *Client) GetContacts() []*RpcContact { + err := c.send(genFunReq(Functions_FUNC_GET_CONTACTS).build()) + if err != nil { + logs.Err(err) + } + recv, err := c.Recv() + if err != nil { + logs.Err(err) + } + return recv.GetContacts().GetContacts() +} + +// GetDBNames 获取数据库名 +func (c *Client) GetDBNames() []string { + err := c.send(genFunReq(Functions_FUNC_GET_DB_NAMES).build()) + if err != nil { + logs.Err(err) + } + recv, err := c.Recv() + if err != nil { + logs.Err(err) + } + return recv.GetDbs().Names +} + +// GetDBTables 获取表 +func (c *Client) GetDBTables(tab string) []*DbTable { + req := genFunReq(Functions_FUNC_GET_DB_TABLES) + str := &Request_Str{Str: tab} + req.Msg = str + err := c.send(req.build()) + if err != nil { + logs.Err(err) + } + recv, err := c.Recv() + if err != nil { + logs.Err(err) + } + return recv.GetTables().GetTables() +} + +// ExecDBQuery 执行sql +func (c *Client) ExecDBQuery(db, sql string) []*DbRow { + req := genFunReq(Functions_FUNC_EXEC_DB_QUERY) + q := Request_Query{ + Query: &DbQuery{ + Db: db, + Sql: sql, + }, + } + req.Msg = &q + err := c.send(req.build()) + if err != nil { + logs.Err(err) + } + recv, err := c.Recv() + if err != nil { + logs.Err(err) + } + return recv.GetRows().GetRows() +} + +// AcceptFriend 接收好友请求 +func (c *Client) AcceptFriend(v3, v4 string, scene int32) int32 { + req := genFunReq(Functions_FUNC_ACCEPT_FRIEND) + q := Request_V{ + V: &Verification{ + V3: v3, + V4: v4, + Scene: scene, + }} + + req.Msg = &q + err := c.send(req.build()) + if err != nil { + logs.Err(err) + } + recv, err := c.Recv() + if err != nil { + logs.Err(err) + } + return recv.GetStatus() +} + +func (c *Client) AddChatroomMembers(roomID, wxIDs string) int32 { + req := genFunReq(Functions_FUNC_ADD_ROOM_MEMBERS) + q := Request_M{ + M: &MemberMgmt{Roomid: roomID, Wxids: wxIDs}, + } + req.Msg = &q + err := c.send(req.build()) + if err != nil { + logs.Err(err) + } + recv, err := c.Recv() + if err != nil { + logs.Err(err) + } + return recv.GetStatus() +} + +// ReceiveTransfer 接收转账 +func (c *Client) ReceiveTransfer(wxid, tfid, taid string) int32 { + req := genFunReq(Functions_FUNC_RECV_TRANSFER) + q := Request_Tf{ + Tf: &Transfer{ + Wxid: wxid, + Tfid: tfid, + Taid: taid, + }, + } + req.Msg = &q + err := c.send(req.build()) + if err != nil { + logs.Err(err) + } + recv, err := c.Recv() + if err != nil { + logs.Err(err) + } + return recv.GetStatus() +} + +// RefreshPYQ 刷新朋友圈 +func (c *Client) RefreshPYQ() int32 { + req := genFunReq(Functions_FUNC_REFRESH_PYQ) + q := Request_Ui64{ + Ui64: 0, + } + req.Msg = &q + err := c.send(req.build()) + if err != nil { + logs.Err(err) + } + recv, err := c.Recv() + if err != nil { + logs.Err(err) + } + return recv.GetStatus() +} + +// DecryptImage 解密图片 加密路径,解密路径 +func (c *Client) DecryptImage(src, dst string) int32 { + req := genFunReq(Functions_FUNC_DECRYPT_IMAGE) + q := Request_Dec{ + Dec: &DecPath{Src: src, Dst: dst}, + } + req.Msg = &q + err := c.send(req.build()) + if err != nil { + logs.Err(err) + } + recv, err := c.Recv() + if err != nil { + logs.Err(err) + } + return recv.GetStatus() +} + +// AddChatRoomMembers 添加群成员 +func (c *Client) AddChatRoomMembers(roomId string, wxIds []string) int32 { + req := genFunReq(Functions_FUNC_ADD_ROOM_MEMBERS) + q := Request_M{ + M: &MemberMgmt{Roomid: roomId, + Wxids: strings.Join(wxIds, ",")}, + } + req.Msg = &q + err := c.send(req.build()) + if err != nil { + logs.Err(err) + } + recv, err := c.Recv() + if err != nil { + logs.Err(err) + } + return recv.GetStatus() +} + +// InvChatRoomMembers 邀请群成员 +func (c *Client) InvChatRoomMembers(roomId string, wxIds []string) int32 { + req := genFunReq(Functions_FUNC_INV_ROOM_MEMBERS) + q := Request_M{ + M: &MemberMgmt{Roomid: roomId, + Wxids: strings.Join(wxIds, ",")}, + } + req.Msg = &q + err := c.send(req.build()) + if err != nil { + logs.Err(err) + } + recv, err := c.Recv() + if err != nil { + logs.Err(err) + } + return recv.GetStatus() +} + +// DelChatRoomMembers 删除群成员 +func (c *Client) DelChatRoomMembers(roomId string, wxIds []string) int32 { + req := genFunReq(Functions_FUNC_DEL_ROOM_MEMBERS) + q := Request_M{ + M: &MemberMgmt{Roomid: roomId, + Wxids: strings.Join(wxIds, ",")}, + } + req.Msg = &q + err := c.send(req.build()) + if err != nil { + logs.Err(err) + } + recv, err := c.Recv() + if err != nil { + logs.Err(err) + } + return recv.GetStatus() +} + +// GetUserInfo 获取自己的信息 +func (c *Client) GetUserInfo() *UserInfo { + err := c.send(genFunReq(Functions_FUNC_GET_USER_INFO).build()) + if err != nil { + logs.Err(err) + } + recv, err := c.Recv() + if err != nil { + logs.Err(err) + } + return recv.GetUi() +} + +// SendTxt 发送文本内容 +func (c *Client) SendTxt(msg string, receiver string, ates []string) int32 { + req := genFunReq(Functions_FUNC_SEND_TXT) + req.Msg = &Request_Txt{ + Txt: &TextMsg{ + Msg: msg, + Receiver: receiver, + Aters: strings.Join(ates, ","), + }, + } + err := c.send(req.build()) + if err != nil { + logs.Err(err) + } + recv, err := c.Recv() + if err != nil { + logs.Err(err) + } + return recv.GetStatus() +} + +// ForwardMsg 转发消息 +func (c *Client) ForwardMsg(Id uint64, receiver string) int32 { + req := genFunReq(Functions_FUNC_FORWARD_MSG) + req.Msg = &Request_Fm{ + Fm: &ForwardMsg{ + Id: Id, + Receiver: receiver, + }, + } + err := c.send(req.build()) + if err != nil { + logs.Err(err) + } + recv, err := c.Recv() + if err != nil { + logs.Err(err) + } + return recv.GetStatus() +} + +// SendIMG 发送图片 +func (c *Client) SendIMG(path string, receiver string) int32 { + req := genFunReq(Functions_FUNC_SEND_IMG) + req.Msg = &Request_File{ + File: &PathMsg{ + Path: path, + Receiver: receiver, + }, + } + err := c.send(req.build()) + if err != nil { + logs.Err(err) + } + recv, err := c.Recv() + if err != nil { + logs.Err(err) + } + return recv.GetStatus() +} + +// SendFile 发送文件 +func (c *Client) SendFile(path string, receiver string) int32 { + req := genFunReq(Functions_FUNC_SEND_FILE) + req.Msg = &Request_File{ + File: &PathMsg{ + Path: path, + Receiver: receiver, + }, + } + err := c.send(req.build()) + if err != nil { + logs.Err(err) + } + recv, err := c.Recv() + if err != nil { + logs.Err(err) + } + return recv.GetStatus() +} + +// SendRichText 发送卡片消息 +func (c *Client) SendRichText(name string, account string, title string, digest string, url string, thumburl string, receiver string) int32 { + req := genFunReq(Functions_FUNC_SEND_RICH_TXT) + req.Msg = &Request_Rt{ + Rt: &RichText{ + Name: name, + Account: account, + Title: title, + Digest: digest, + Url: url, + Thumburl: thumburl, + Receiver: receiver, + }, + } + err := c.send(req.build()) + if err != nil { + logs.Err(err) + } + recv, err := c.Recv() + if err != nil { + logs.Err(err) + } + return recv.GetStatus() +} + +// SendXml 发送xml数据 +func (c *Client) SendXml(path, content, receiver string, Type int32) int32 { + req := genFunReq(Functions_FUNC_SEND_XML) + req.Msg = &Request_Xml{ + Xml: &XmlMsg{ + Receiver: receiver, + Content: content, + Path: path, + Type: Type, + }, + } + err := c.send(req.build()) + if err != nil { + logs.Err(err) + } + recv, err := c.Recv() + if err != nil { + logs.Err(err) + } + return recv.GetStatus() +} + +// SendEmotion 发送emoji +func (c *Client) SendEmotion(path, receiver string) int32 { + req := genFunReq(Functions_FUNC_SEND_EMOTION) + req.Msg = &Request_File{ + File: &PathMsg{ + Path: path, + Receiver: receiver, + }, + } + err := c.send(req.build()) + if err != nil { + logs.Err(err) + } + recv, err := c.Recv() + if err != nil { + logs.Err(err) + } + return recv.GetStatus() +} + +// SendPat 发送拍一拍消息 +func (c *Client) SendPat(roomId, wxId string) int32 { + req := genFunReq(Functions_FUNC_SEND_PAT_MSG) + req.Msg = &Request_Pm{ + Pm: &PatMsg{ + Roomid: roomId, + Wxid: wxId, + }, + } + err := c.send(req.build()) + if err != nil { + logs.Err(err) + } + recv, err := c.Recv() + if err != nil { + logs.Err(err) + } + return recv.GetStatus() +} + +// DownloadAttach 下载附件 +func (c *Client) DownloadAttach(id uint64, thumb, extra string) int32 { + req := genFunReq(Functions_FUNC_SEND_PAT_MSG) + req.Msg = &Request_Att{ + Att: &AttachMsg{ + Id: id, + Thumb: thumb, + Extra: extra, + }, + } + err := c.send(req.build()) + if err != nil { + logs.Err(err) + } + recv, err := c.Recv() + if err != nil { + logs.Err(err) + } + return recv.GetStatus() +} + +// EnableRecvTxt 开启接收数据 +func (c *Client) EnableRecvTxt() int32 { + req := genFunReq(Functions_FUNC_ENABLE_RECV_TXT) + req.Msg = &Request_Flag{ + Flag: true, + } + err := c.send(req.build()) + if err != nil { + logs.Err(err) + } + recv, err := c.Recv() + if err != nil { + logs.Err(err) + } + c.RecvTxt = true + return recv.GetStatus() +} + +// DisableRecvTxt 关闭接收消息 +func (c *Client) DisableRecvTxt() int32 { + err := c.send(genFunReq(Functions_FUNC_DISABLE_RECV_TXT).build()) + if err != nil { + logs.Err(err) + } + recv, err := c.Recv() + if err != nil { + logs.Err(err) + } + c.RecvTxt = false + return recv.GetStatus() +} + +// OnMSG 接收消息 +func (c *Client) OnMSG(f func(msg *WxMsg)) error { + socket, err := pair1.NewSocket() + if err != nil { + return err + } + _ = socket.SetOption(mangos.OptionRecvDeadline, 5000) + _ = socket.SetOption(mangos.OptionSendDeadline, 5000) + err = socket.Dial(addPort(c.add)) + if err != nil { + return err + } + defer socket.Close() + for c.RecvTxt { + msg := &Response{} + recv, err := socket.Recv() + if err != nil { + return err + } + _ = proto.Unmarshal(recv, msg) + go f(msg.GetWxmsg()) + + } + return err +} + +// NewWCF 连接 +func NewWCF(add string) (*Client, error) { + if add == "" { + add = "tcp://127.0.0.1:10086" + } + client := &Client{add: add} + err := client.conn() + return client, err +} + +type cmdMSG struct { + *Request +} + +func (c *cmdMSG) build() []byte { + marshal, _ := proto.Marshal(c) + return marshal +} + +func genFunReq(fun Functions) *cmdMSG { + return &cmdMSG{ + &Request{Func: fun, + Msg: nil}, + } +} + +func addPort(add string) string { + parts := strings.Split(add, ":") + port, _ := strconv.Atoi(parts[2]) + newPort := port + 1 + return parts[0] + ":" + parts[1] + ":" + strconv.Itoa(newPort) +} diff --git a/clients/go_wcf_http/wcf/wcf.pb.go b/clients/go_wcf_http/wcf/wcf.pb.go new file mode 100644 index 0000000..2d5c1c3 --- /dev/null +++ b/clients/go_wcf_http/wcf/wcf.pb.go @@ -0,0 +1,2982 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.21.12 +// source: wcf.proto + +package wcf + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type Functions int32 + +const ( + Functions_FUNC_RESERVED Functions = 0 + Functions_FUNC_IS_LOGIN Functions = 1 + Functions_FUNC_GET_SELF_WXID Functions = 16 + Functions_FUNC_GET_MSG_TYPES Functions = 17 + Functions_FUNC_GET_CONTACTS Functions = 18 + Functions_FUNC_GET_DB_NAMES Functions = 19 + Functions_FUNC_GET_DB_TABLES Functions = 20 + Functions_FUNC_GET_USER_INFO Functions = 21 + Functions_FUNC_GET_AUDIO_MSG Functions = 22 + Functions_FUNC_SEND_TXT Functions = 32 + Functions_FUNC_SEND_IMG Functions = 33 + Functions_FUNC_SEND_FILE Functions = 34 + Functions_FUNC_SEND_XML Functions = 35 + Functions_FUNC_SEND_EMOTION Functions = 36 + Functions_FUNC_SEND_RICH_TXT Functions = 37 + Functions_FUNC_SEND_PAT_MSG Functions = 38 + Functions_FUNC_FORWARD_MSG Functions = 39 + Functions_FUNC_ENABLE_RECV_TXT Functions = 48 + Functions_FUNC_DISABLE_RECV_TXT Functions = 64 + Functions_FUNC_EXEC_DB_QUERY Functions = 80 + Functions_FUNC_ACCEPT_FRIEND Functions = 81 + Functions_FUNC_RECV_TRANSFER Functions = 82 + Functions_FUNC_REFRESH_PYQ Functions = 83 + Functions_FUNC_DOWNLOAD_ATTACH Functions = 84 + Functions_FUNC_GET_CONTACT_INFO Functions = 85 + Functions_FUNC_REVOKE_MSG Functions = 86 + Functions_FUNC_DECRYPT_IMAGE Functions = 96 + Functions_FUNC_EXEC_OCR Functions = 97 + Functions_FUNC_ADD_ROOM_MEMBERS Functions = 112 + Functions_FUNC_DEL_ROOM_MEMBERS Functions = 113 + Functions_FUNC_INV_ROOM_MEMBERS Functions = 114 +) + +// Enum value maps for Functions. +var ( + Functions_name = map[int32]string{ + 0: "FUNC_RESERVED", + 1: "FUNC_IS_LOGIN", + 16: "FUNC_GET_SELF_WXID", + 17: "FUNC_GET_MSG_TYPES", + 18: "FUNC_GET_CONTACTS", + 19: "FUNC_GET_DB_NAMES", + 20: "FUNC_GET_DB_TABLES", + 21: "FUNC_GET_USER_INFO", + 22: "FUNC_GET_AUDIO_MSG", + 32: "FUNC_SEND_TXT", + 33: "FUNC_SEND_IMG", + 34: "FUNC_SEND_FILE", + 35: "FUNC_SEND_XML", + 36: "FUNC_SEND_EMOTION", + 37: "FUNC_SEND_RICH_TXT", + 38: "FUNC_SEND_PAT_MSG", + 39: "FUNC_FORWARD_MSG", + 48: "FUNC_ENABLE_RECV_TXT", + 64: "FUNC_DISABLE_RECV_TXT", + 80: "FUNC_EXEC_DB_QUERY", + 81: "FUNC_ACCEPT_FRIEND", + 82: "FUNC_RECV_TRANSFER", + 83: "FUNC_REFRESH_PYQ", + 84: "FUNC_DOWNLOAD_ATTACH", + 85: "FUNC_GET_CONTACT_INFO", + 86: "FUNC_REVOKE_MSG", + 96: "FUNC_DECRYPT_IMAGE", + 97: "FUNC_EXEC_OCR", + 112: "FUNC_ADD_ROOM_MEMBERS", + 113: "FUNC_DEL_ROOM_MEMBERS", + 114: "FUNC_INV_ROOM_MEMBERS", + } + Functions_value = map[string]int32{ + "FUNC_RESERVED": 0, + "FUNC_IS_LOGIN": 1, + "FUNC_GET_SELF_WXID": 16, + "FUNC_GET_MSG_TYPES": 17, + "FUNC_GET_CONTACTS": 18, + "FUNC_GET_DB_NAMES": 19, + "FUNC_GET_DB_TABLES": 20, + "FUNC_GET_USER_INFO": 21, + "FUNC_GET_AUDIO_MSG": 22, + "FUNC_SEND_TXT": 32, + "FUNC_SEND_IMG": 33, + "FUNC_SEND_FILE": 34, + "FUNC_SEND_XML": 35, + "FUNC_SEND_EMOTION": 36, + "FUNC_SEND_RICH_TXT": 37, + "FUNC_SEND_PAT_MSG": 38, + "FUNC_FORWARD_MSG": 39, + "FUNC_ENABLE_RECV_TXT": 48, + "FUNC_DISABLE_RECV_TXT": 64, + "FUNC_EXEC_DB_QUERY": 80, + "FUNC_ACCEPT_FRIEND": 81, + "FUNC_RECV_TRANSFER": 82, + "FUNC_REFRESH_PYQ": 83, + "FUNC_DOWNLOAD_ATTACH": 84, + "FUNC_GET_CONTACT_INFO": 85, + "FUNC_REVOKE_MSG": 86, + "FUNC_DECRYPT_IMAGE": 96, + "FUNC_EXEC_OCR": 97, + "FUNC_ADD_ROOM_MEMBERS": 112, + "FUNC_DEL_ROOM_MEMBERS": 113, + "FUNC_INV_ROOM_MEMBERS": 114, + } +) + +func (x Functions) Enum() *Functions { + p := new(Functions) + *p = x + return p +} + +func (x Functions) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Functions) Descriptor() protoreflect.EnumDescriptor { + return file_wcf_proto_enumTypes[0].Descriptor() +} + +func (Functions) Type() protoreflect.EnumType { + return &file_wcf_proto_enumTypes[0] +} + +func (x Functions) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use Functions.Descriptor instead. +func (Functions) EnumDescriptor() ([]byte, []int) { + return file_wcf_proto_rawDescGZIP(), []int{0} +} + +type Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Func Functions `protobuf:"varint,1,opt,name=func,proto3,enum=wcf.Functions" json:"func,omitempty"` + // Types that are assignable to Msg: + // + // *Request_Empty + // *Request_Str + // *Request_Txt + // *Request_File + // *Request_Query + // *Request_V + // *Request_M + // *Request_Xml + // *Request_Dec + // *Request_Tf + // *Request_Ui64 + // *Request_Flag + // *Request_Att + // *Request_Am + // *Request_Rt + // *Request_Pm + // *Request_Fm + Msg isRequest_Msg `protobuf_oneof:"msg"` +} + +func (x *Request) Reset() { + *x = Request{} + if protoimpl.UnsafeEnabled { + mi := &file_wcf_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Request) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Request) ProtoMessage() {} + +func (x *Request) ProtoReflect() protoreflect.Message { + mi := &file_wcf_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Request.ProtoReflect.Descriptor instead. +func (*Request) Descriptor() ([]byte, []int) { + return file_wcf_proto_rawDescGZIP(), []int{0} +} + +func (x *Request) GetFunc() Functions { + if x != nil { + return x.Func + } + return Functions_FUNC_RESERVED +} + +func (m *Request) GetMsg() isRequest_Msg { + if m != nil { + return m.Msg + } + return nil +} + +func (x *Request) GetEmpty() *Empty { + if x, ok := x.GetMsg().(*Request_Empty); ok { + return x.Empty + } + return nil +} + +func (x *Request) GetStr() string { + if x, ok := x.GetMsg().(*Request_Str); ok { + return x.Str + } + return "" +} + +func (x *Request) GetTxt() *TextMsg { + if x, ok := x.GetMsg().(*Request_Txt); ok { + return x.Txt + } + return nil +} + +func (x *Request) GetFile() *PathMsg { + if x, ok := x.GetMsg().(*Request_File); ok { + return x.File + } + return nil +} + +func (x *Request) GetQuery() *DbQuery { + if x, ok := x.GetMsg().(*Request_Query); ok { + return x.Query + } + return nil +} + +func (x *Request) GetV() *Verification { + if x, ok := x.GetMsg().(*Request_V); ok { + return x.V + } + return nil +} + +func (x *Request) GetM() *MemberMgmt { + if x, ok := x.GetMsg().(*Request_M); ok { + return x.M + } + return nil +} + +func (x *Request) GetXml() *XmlMsg { + if x, ok := x.GetMsg().(*Request_Xml); ok { + return x.Xml + } + return nil +} + +func (x *Request) GetDec() *DecPath { + if x, ok := x.GetMsg().(*Request_Dec); ok { + return x.Dec + } + return nil +} + +func (x *Request) GetTf() *Transfer { + if x, ok := x.GetMsg().(*Request_Tf); ok { + return x.Tf + } + return nil +} + +func (x *Request) GetUi64() uint64 { + if x, ok := x.GetMsg().(*Request_Ui64); ok { + return x.Ui64 + } + return 0 +} + +func (x *Request) GetFlag() bool { + if x, ok := x.GetMsg().(*Request_Flag); ok { + return x.Flag + } + return false +} + +func (x *Request) GetAtt() *AttachMsg { + if x, ok := x.GetMsg().(*Request_Att); ok { + return x.Att + } + return nil +} + +func (x *Request) GetAm() *AudioMsg { + if x, ok := x.GetMsg().(*Request_Am); ok { + return x.Am + } + return nil +} + +func (x *Request) GetRt() *RichText { + if x, ok := x.GetMsg().(*Request_Rt); ok { + return x.Rt + } + return nil +} + +func (x *Request) GetPm() *PatMsg { + if x, ok := x.GetMsg().(*Request_Pm); ok { + return x.Pm + } + return nil +} + +func (x *Request) GetFm() *ForwardMsg { + if x, ok := x.GetMsg().(*Request_Fm); ok { + return x.Fm + } + return nil +} + +type isRequest_Msg interface { + isRequest_Msg() +} + +type Request_Empty struct { + Empty *Empty `protobuf:"bytes,2,opt,name=empty,proto3,oneof"` +} + +type Request_Str struct { + Str string `protobuf:"bytes,3,opt,name=str,proto3,oneof"` +} + +type Request_Txt struct { + Txt *TextMsg `protobuf:"bytes,4,opt,name=txt,proto3,oneof"` +} + +type Request_File struct { + File *PathMsg `protobuf:"bytes,5,opt,name=file,proto3,oneof"` +} + +type Request_Query struct { + Query *DbQuery `protobuf:"bytes,6,opt,name=query,proto3,oneof"` +} + +type Request_V struct { + V *Verification `protobuf:"bytes,7,opt,name=v,proto3,oneof"` +} + +type Request_M struct { + M *MemberMgmt `protobuf:"bytes,8,opt,name=m,proto3,oneof"` // 群成员管理,添加、删除、邀请 +} + +type Request_Xml struct { + Xml *XmlMsg `protobuf:"bytes,9,opt,name=xml,proto3,oneof"` +} + +type Request_Dec struct { + Dec *DecPath `protobuf:"bytes,10,opt,name=dec,proto3,oneof"` +} + +type Request_Tf struct { + Tf *Transfer `protobuf:"bytes,11,opt,name=tf,proto3,oneof"` +} + +type Request_Ui64 struct { + Ui64 uint64 `protobuf:"varint,12,opt,name=ui64,proto3,oneof"` // 64 位整数,通用 +} + +type Request_Flag struct { + Flag bool `protobuf:"varint,13,opt,name=flag,proto3,oneof"` +} + +type Request_Att struct { + Att *AttachMsg `protobuf:"bytes,14,opt,name=att,proto3,oneof"` +} + +type Request_Am struct { + Am *AudioMsg `protobuf:"bytes,15,opt,name=am,proto3,oneof"` +} + +type Request_Rt struct { + Rt *RichText `protobuf:"bytes,16,opt,name=rt,proto3,oneof"` +} + +type Request_Pm struct { + Pm *PatMsg `protobuf:"bytes,17,opt,name=pm,proto3,oneof"` +} + +type Request_Fm struct { + Fm *ForwardMsg `protobuf:"bytes,18,opt,name=fm,proto3,oneof"` +} + +func (*Request_Empty) isRequest_Msg() {} + +func (*Request_Str) isRequest_Msg() {} + +func (*Request_Txt) isRequest_Msg() {} + +func (*Request_File) isRequest_Msg() {} + +func (*Request_Query) isRequest_Msg() {} + +func (*Request_V) isRequest_Msg() {} + +func (*Request_M) isRequest_Msg() {} + +func (*Request_Xml) isRequest_Msg() {} + +func (*Request_Dec) isRequest_Msg() {} + +func (*Request_Tf) isRequest_Msg() {} + +func (*Request_Ui64) isRequest_Msg() {} + +func (*Request_Flag) isRequest_Msg() {} + +func (*Request_Att) isRequest_Msg() {} + +func (*Request_Am) isRequest_Msg() {} + +func (*Request_Rt) isRequest_Msg() {} + +func (*Request_Pm) isRequest_Msg() {} + +func (*Request_Fm) isRequest_Msg() {} + +type Response struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Func Functions `protobuf:"varint,1,opt,name=func,proto3,enum=wcf.Functions" json:"func,omitempty"` + // Types that are assignable to Msg: + // + // *Response_Status + // *Response_Str + // *Response_Wxmsg + // *Response_Types + // *Response_Contacts + // *Response_Dbs + // *Response_Tables + // *Response_Rows + // *Response_Ui + // *Response_Ocr + Msg isResponse_Msg `protobuf_oneof:"msg"` +} + +func (x *Response) Reset() { + *x = Response{} + if protoimpl.UnsafeEnabled { + mi := &file_wcf_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Response) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Response) ProtoMessage() {} + +func (x *Response) ProtoReflect() protoreflect.Message { + mi := &file_wcf_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Response.ProtoReflect.Descriptor instead. +func (*Response) Descriptor() ([]byte, []int) { + return file_wcf_proto_rawDescGZIP(), []int{1} +} + +func (x *Response) GetFunc() Functions { + if x != nil { + return x.Func + } + return Functions_FUNC_RESERVED +} + +func (m *Response) GetMsg() isResponse_Msg { + if m != nil { + return m.Msg + } + return nil +} + +func (x *Response) GetStatus() int32 { + if x, ok := x.GetMsg().(*Response_Status); ok { + return x.Status + } + return 0 +} + +func (x *Response) GetStr() string { + if x, ok := x.GetMsg().(*Response_Str); ok { + return x.Str + } + return "" +} + +func (x *Response) GetWxmsg() *WxMsg { + if x, ok := x.GetMsg().(*Response_Wxmsg); ok { + return x.Wxmsg + } + return nil +} + +func (x *Response) GetTypes() *MsgTypes { + if x, ok := x.GetMsg().(*Response_Types); ok { + return x.Types + } + return nil +} + +func (x *Response) GetContacts() *RpcContacts { + if x, ok := x.GetMsg().(*Response_Contacts); ok { + return x.Contacts + } + return nil +} + +func (x *Response) GetDbs() *DbNames { + if x, ok := x.GetMsg().(*Response_Dbs); ok { + return x.Dbs + } + return nil +} + +func (x *Response) GetTables() *DbTables { + if x, ok := x.GetMsg().(*Response_Tables); ok { + return x.Tables + } + return nil +} + +func (x *Response) GetRows() *DbRows { + if x, ok := x.GetMsg().(*Response_Rows); ok { + return x.Rows + } + return nil +} + +func (x *Response) GetUi() *UserInfo { + if x, ok := x.GetMsg().(*Response_Ui); ok { + return x.Ui + } + return nil +} + +func (x *Response) GetOcr() *OcrMsg { + if x, ok := x.GetMsg().(*Response_Ocr); ok { + return x.Ocr + } + return nil +} + +type isResponse_Msg interface { + isResponse_Msg() +} + +type Response_Status struct { + Status int32 `protobuf:"varint,2,opt,name=status,proto3,oneof"` // Int 状态,通用 +} + +type Response_Str struct { + Str string `protobuf:"bytes,3,opt,name=str,proto3,oneof"` // 字符串 +} + +type Response_Wxmsg struct { + Wxmsg *WxMsg `protobuf:"bytes,4,opt,name=wxmsg,proto3,oneof"` // 微信消息 +} + +type Response_Types struct { + Types *MsgTypes `protobuf:"bytes,5,opt,name=types,proto3,oneof"` // 消息类型 +} + +type Response_Contacts struct { + Contacts *RpcContacts `protobuf:"bytes,6,opt,name=contacts,proto3,oneof"` // 联系人 +} + +type Response_Dbs struct { + Dbs *DbNames `protobuf:"bytes,7,opt,name=dbs,proto3,oneof"` // 数据库列表 +} + +type Response_Tables struct { + Tables *DbTables `protobuf:"bytes,8,opt,name=tables,proto3,oneof"` // 表列表 +} + +type Response_Rows struct { + Rows *DbRows `protobuf:"bytes,9,opt,name=rows,proto3,oneof"` // 行列表 +} + +type Response_Ui struct { + Ui *UserInfo `protobuf:"bytes,10,opt,name=ui,proto3,oneof"` // 个人信息 +} + +type Response_Ocr struct { + Ocr *OcrMsg `protobuf:"bytes,11,opt,name=ocr,proto3,oneof"` // OCR 结果 +} + +func (*Response_Status) isResponse_Msg() {} + +func (*Response_Str) isResponse_Msg() {} + +func (*Response_Wxmsg) isResponse_Msg() {} + +func (*Response_Types) isResponse_Msg() {} + +func (*Response_Contacts) isResponse_Msg() {} + +func (*Response_Dbs) isResponse_Msg() {} + +func (*Response_Tables) isResponse_Msg() {} + +func (*Response_Rows) isResponse_Msg() {} + +func (*Response_Ui) isResponse_Msg() {} + +func (*Response_Ocr) isResponse_Msg() {} + +type Empty struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *Empty) Reset() { + *x = Empty{} + if protoimpl.UnsafeEnabled { + mi := &file_wcf_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Empty) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Empty) ProtoMessage() {} + +func (x *Empty) ProtoReflect() protoreflect.Message { + mi := &file_wcf_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Empty.ProtoReflect.Descriptor instead. +func (*Empty) Descriptor() ([]byte, []int) { + return file_wcf_proto_rawDescGZIP(), []int{2} +} + +type WxMsg struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + IsSelf bool `protobuf:"varint,1,opt,name=is_self,json=isSelf,proto3" json:"is_self,omitempty"` // 是否自己发送的 + IsGroup bool `protobuf:"varint,2,opt,name=is_group,json=isGroup,proto3" json:"is_group,omitempty"` // 是否群消息 + Id uint64 `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty"` // 消息 id + Type uint32 `protobuf:"varint,4,opt,name=type,proto3" json:"type,omitempty"` // 消息类型 + Ts uint32 `protobuf:"varint,5,opt,name=ts,proto3" json:"ts,omitempty"` // 消息类型 + Roomid string `protobuf:"bytes,6,opt,name=roomid,proto3" json:"roomid,omitempty"` // 群 id(如果是群消息的话) + Content string `protobuf:"bytes,7,opt,name=content,proto3" json:"content,omitempty"` // 消息内容 + Sender string `protobuf:"bytes,8,opt,name=sender,proto3" json:"sender,omitempty"` // 消息发送者 + Sign string `protobuf:"bytes,9,opt,name=sign,proto3" json:"sign,omitempty"` // Sign + Thumb string `protobuf:"bytes,10,opt,name=thumb,proto3" json:"thumb,omitempty"` // 缩略图 + Extra string `protobuf:"bytes,11,opt,name=extra,proto3" json:"extra,omitempty"` // 附加内容 + Xml string `protobuf:"bytes,12,opt,name=xml,proto3" json:"xml,omitempty"` // 消息 xml +} + +func (x *WxMsg) Reset() { + *x = WxMsg{} + if protoimpl.UnsafeEnabled { + mi := &file_wcf_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *WxMsg) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WxMsg) ProtoMessage() {} + +func (x *WxMsg) ProtoReflect() protoreflect.Message { + mi := &file_wcf_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use WxMsg.ProtoReflect.Descriptor instead. +func (*WxMsg) Descriptor() ([]byte, []int) { + return file_wcf_proto_rawDescGZIP(), []int{3} +} + +func (x *WxMsg) GetIsSelf() bool { + if x != nil { + return x.IsSelf + } + return false +} + +func (x *WxMsg) GetIsGroup() bool { + if x != nil { + return x.IsGroup + } + return false +} + +func (x *WxMsg) GetId() uint64 { + if x != nil { + return x.Id + } + return 0 +} + +func (x *WxMsg) GetType() uint32 { + if x != nil { + return x.Type + } + return 0 +} + +func (x *WxMsg) GetTs() uint32 { + if x != nil { + return x.Ts + } + return 0 +} + +func (x *WxMsg) GetRoomid() string { + if x != nil { + return x.Roomid + } + return "" +} + +func (x *WxMsg) GetContent() string { + if x != nil { + return x.Content + } + return "" +} + +func (x *WxMsg) GetSender() string { + if x != nil { + return x.Sender + } + return "" +} + +func (x *WxMsg) GetSign() string { + if x != nil { + return x.Sign + } + return "" +} + +func (x *WxMsg) GetThumb() string { + if x != nil { + return x.Thumb + } + return "" +} + +func (x *WxMsg) GetExtra() string { + if x != nil { + return x.Extra + } + return "" +} + +func (x *WxMsg) GetXml() string { + if x != nil { + return x.Xml + } + return "" +} + +type TextMsg struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` // 要发送的消息内容 + Receiver string `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"` // 消息接收人,当为群时可@ + Aters string `protobuf:"bytes,3,opt,name=aters,proto3" json:"aters,omitempty"` // 要@的人列表,逗号分隔 +} + +func (x *TextMsg) Reset() { + *x = TextMsg{} + if protoimpl.UnsafeEnabled { + mi := &file_wcf_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TextMsg) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TextMsg) ProtoMessage() {} + +func (x *TextMsg) ProtoReflect() protoreflect.Message { + mi := &file_wcf_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TextMsg.ProtoReflect.Descriptor instead. +func (*TextMsg) Descriptor() ([]byte, []int) { + return file_wcf_proto_rawDescGZIP(), []int{4} +} + +func (x *TextMsg) GetMsg() string { + if x != nil { + return x.Msg + } + return "" +} + +func (x *TextMsg) GetReceiver() string { + if x != nil { + return x.Receiver + } + return "" +} + +func (x *TextMsg) GetAters() string { + if x != nil { + return x.Aters + } + return "" +} + +type PathMsg struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // 要发送的图片的路径 + Receiver string `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"` // 消息接收人 +} + +func (x *PathMsg) Reset() { + *x = PathMsg{} + if protoimpl.UnsafeEnabled { + mi := &file_wcf_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PathMsg) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PathMsg) ProtoMessage() {} + +func (x *PathMsg) ProtoReflect() protoreflect.Message { + mi := &file_wcf_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PathMsg.ProtoReflect.Descriptor instead. +func (*PathMsg) Descriptor() ([]byte, []int) { + return file_wcf_proto_rawDescGZIP(), []int{5} +} + +func (x *PathMsg) GetPath() string { + if x != nil { + return x.Path + } + return "" +} + +func (x *PathMsg) GetReceiver() string { + if x != nil { + return x.Receiver + } + return "" +} + +type XmlMsg struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Receiver string `protobuf:"bytes,1,opt,name=receiver,proto3" json:"receiver,omitempty"` // 消息接收人 + Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` // xml 内容 + Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` // 图片路径 + Type int32 `protobuf:"varint,4,opt,name=type,proto3" json:"type,omitempty"` // 消息类型 +} + +func (x *XmlMsg) Reset() { + *x = XmlMsg{} + if protoimpl.UnsafeEnabled { + mi := &file_wcf_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *XmlMsg) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*XmlMsg) ProtoMessage() {} + +func (x *XmlMsg) ProtoReflect() protoreflect.Message { + mi := &file_wcf_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use XmlMsg.ProtoReflect.Descriptor instead. +func (*XmlMsg) Descriptor() ([]byte, []int) { + return file_wcf_proto_rawDescGZIP(), []int{6} +} + +func (x *XmlMsg) GetReceiver() string { + if x != nil { + return x.Receiver + } + return "" +} + +func (x *XmlMsg) GetContent() string { + if x != nil { + return x.Content + } + return "" +} + +func (x *XmlMsg) GetPath() string { + if x != nil { + return x.Path + } + return "" +} + +func (x *XmlMsg) GetType() int32 { + if x != nil { + return x.Type + } + return 0 +} + +type MsgTypes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Types map[int32]string `protobuf:"bytes,1,rep,name=types,proto3" json:"types,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *MsgTypes) Reset() { + *x = MsgTypes{} + if protoimpl.UnsafeEnabled { + mi := &file_wcf_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgTypes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgTypes) ProtoMessage() {} + +func (x *MsgTypes) ProtoReflect() protoreflect.Message { + mi := &file_wcf_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use MsgTypes.ProtoReflect.Descriptor instead. +func (*MsgTypes) Descriptor() ([]byte, []int) { + return file_wcf_proto_rawDescGZIP(), []int{7} +} + +func (x *MsgTypes) GetTypes() map[int32]string { + if x != nil { + return x.Types + } + return nil +} + +type RpcContact struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Wxid string `protobuf:"bytes,1,opt,name=wxid,proto3" json:"wxid"` // 微信 id + Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code"` // 微信号 + Remark string `protobuf:"bytes,3,opt,name=remark,proto3" json:"remark"` // 备注 + Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name"` // 微信昵称 + Country string `protobuf:"bytes,5,opt,name=country,proto3" json:"country"` // 国家 + Province string `protobuf:"bytes,6,opt,name=province,proto3" json:"province"` // 省/州 + City string `protobuf:"bytes,7,opt,name=city,proto3" json:"city"` // 城市 + Gender int32 `protobuf:"varint,8,opt,name=gender,proto3" json:"gender"` // 性别 +} + +func (x *RpcContact) Reset() { + *x = RpcContact{} + if protoimpl.UnsafeEnabled { + mi := &file_wcf_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RpcContact) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RpcContact) ProtoMessage() {} + +func (x *RpcContact) ProtoReflect() protoreflect.Message { + mi := &file_wcf_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RpcContact.ProtoReflect.Descriptor instead. +func (*RpcContact) Descriptor() ([]byte, []int) { + return file_wcf_proto_rawDescGZIP(), []int{8} +} + +func (x *RpcContact) GetWxid() string { + if x != nil { + return x.Wxid + } + return "" +} + +func (x *RpcContact) GetCode() string { + if x != nil { + return x.Code + } + return "" +} + +func (x *RpcContact) GetRemark() string { + if x != nil { + return x.Remark + } + return "" +} + +func (x *RpcContact) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *RpcContact) GetCountry() string { + if x != nil { + return x.Country + } + return "" +} + +func (x *RpcContact) GetProvince() string { + if x != nil { + return x.Province + } + return "" +} + +func (x *RpcContact) GetCity() string { + if x != nil { + return x.City + } + return "" +} + +func (x *RpcContact) GetGender() int32 { + if x != nil { + return x.Gender + } + return 0 +} + +type RpcContacts struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Contacts []*RpcContact `protobuf:"bytes,1,rep,name=contacts,proto3" json:"contacts,omitempty"` +} + +func (x *RpcContacts) Reset() { + *x = RpcContacts{} + if protoimpl.UnsafeEnabled { + mi := &file_wcf_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RpcContacts) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RpcContacts) ProtoMessage() {} + +func (x *RpcContacts) ProtoReflect() protoreflect.Message { + mi := &file_wcf_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RpcContacts.ProtoReflect.Descriptor instead. +func (*RpcContacts) Descriptor() ([]byte, []int) { + return file_wcf_proto_rawDescGZIP(), []int{9} +} + +func (x *RpcContacts) GetContacts() []*RpcContact { + if x != nil { + return x.Contacts + } + return nil +} + +type DbNames struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Names []string `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"` +} + +func (x *DbNames) Reset() { + *x = DbNames{} + if protoimpl.UnsafeEnabled { + mi := &file_wcf_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DbNames) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DbNames) ProtoMessage() {} + +func (x *DbNames) ProtoReflect() protoreflect.Message { + mi := &file_wcf_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DbNames.ProtoReflect.Descriptor instead. +func (*DbNames) Descriptor() ([]byte, []int) { + return file_wcf_proto_rawDescGZIP(), []int{10} +} + +func (x *DbNames) GetNames() []string { + if x != nil { + return x.Names + } + return nil +} + +type DbTable struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // 表名 + Sql string `protobuf:"bytes,2,opt,name=sql,proto3" json:"sql,omitempty"` // 建表 SQL +} + +func (x *DbTable) Reset() { + *x = DbTable{} + if protoimpl.UnsafeEnabled { + mi := &file_wcf_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DbTable) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DbTable) ProtoMessage() {} + +func (x *DbTable) ProtoReflect() protoreflect.Message { + mi := &file_wcf_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DbTable.ProtoReflect.Descriptor instead. +func (*DbTable) Descriptor() ([]byte, []int) { + return file_wcf_proto_rawDescGZIP(), []int{11} +} + +func (x *DbTable) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *DbTable) GetSql() string { + if x != nil { + return x.Sql + } + return "" +} + +type DbTables struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Tables []*DbTable `protobuf:"bytes,1,rep,name=tables,proto3" json:"tables,omitempty"` +} + +func (x *DbTables) Reset() { + *x = DbTables{} + if protoimpl.UnsafeEnabled { + mi := &file_wcf_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DbTables) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DbTables) ProtoMessage() {} + +func (x *DbTables) ProtoReflect() protoreflect.Message { + mi := &file_wcf_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DbTables.ProtoReflect.Descriptor instead. +func (*DbTables) Descriptor() ([]byte, []int) { + return file_wcf_proto_rawDescGZIP(), []int{12} +} + +func (x *DbTables) GetTables() []*DbTable { + if x != nil { + return x.Tables + } + return nil +} + +type DbQuery struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Db string `protobuf:"bytes,1,opt,name=db,proto3" json:"db,omitempty"` // 目标数据库 + Sql string `protobuf:"bytes,2,opt,name=sql,proto3" json:"sql,omitempty"` // 查询 SQL +} + +func (x *DbQuery) Reset() { + *x = DbQuery{} + if protoimpl.UnsafeEnabled { + mi := &file_wcf_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DbQuery) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DbQuery) ProtoMessage() {} + +func (x *DbQuery) ProtoReflect() protoreflect.Message { + mi := &file_wcf_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DbQuery.ProtoReflect.Descriptor instead. +func (*DbQuery) Descriptor() ([]byte, []int) { + return file_wcf_proto_rawDescGZIP(), []int{13} +} + +func (x *DbQuery) GetDb() string { + if x != nil { + return x.Db + } + return "" +} + +func (x *DbQuery) GetSql() string { + if x != nil { + return x.Sql + } + return "" +} + +type DbField struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Type int32 `protobuf:"varint,1,opt,name=type,proto3" json:"type,omitempty"` // 字段类型 + Column string `protobuf:"bytes,2,opt,name=column,proto3" json:"column,omitempty"` // 字段名称 + Content []byte `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` // 字段内容 +} + +func (x *DbField) Reset() { + *x = DbField{} + if protoimpl.UnsafeEnabled { + mi := &file_wcf_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DbField) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DbField) ProtoMessage() {} + +func (x *DbField) ProtoReflect() protoreflect.Message { + mi := &file_wcf_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DbField.ProtoReflect.Descriptor instead. +func (*DbField) Descriptor() ([]byte, []int) { + return file_wcf_proto_rawDescGZIP(), []int{14} +} + +func (x *DbField) GetType() int32 { + if x != nil { + return x.Type + } + return 0 +} + +func (x *DbField) GetColumn() string { + if x != nil { + return x.Column + } + return "" +} + +func (x *DbField) GetContent() []byte { + if x != nil { + return x.Content + } + return nil +} + +type DbRow struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Fields []*DbField `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty"` +} + +func (x *DbRow) Reset() { + *x = DbRow{} + if protoimpl.UnsafeEnabled { + mi := &file_wcf_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DbRow) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DbRow) ProtoMessage() {} + +func (x *DbRow) ProtoReflect() protoreflect.Message { + mi := &file_wcf_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DbRow.ProtoReflect.Descriptor instead. +func (*DbRow) Descriptor() ([]byte, []int) { + return file_wcf_proto_rawDescGZIP(), []int{15} +} + +func (x *DbRow) GetFields() []*DbField { + if x != nil { + return x.Fields + } + return nil +} + +type DbRows struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Rows []*DbRow `protobuf:"bytes,1,rep,name=rows,proto3" json:"rows,omitempty"` +} + +func (x *DbRows) Reset() { + *x = DbRows{} + if protoimpl.UnsafeEnabled { + mi := &file_wcf_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DbRows) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DbRows) ProtoMessage() {} + +func (x *DbRows) ProtoReflect() protoreflect.Message { + mi := &file_wcf_proto_msgTypes[16] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DbRows.ProtoReflect.Descriptor instead. +func (*DbRows) Descriptor() ([]byte, []int) { + return file_wcf_proto_rawDescGZIP(), []int{16} +} + +func (x *DbRows) GetRows() []*DbRow { + if x != nil { + return x.Rows + } + return nil +} + +type Verification struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + V3 string `protobuf:"bytes,1,opt,name=v3,proto3" json:"v3,omitempty"` // 加密的用户名 + V4 string `protobuf:"bytes,2,opt,name=v4,proto3" json:"v4,omitempty"` // Ticket + Scene int32 `protobuf:"varint,3,opt,name=scene,proto3" json:"scene,omitempty"` // 添加方式:17 名片,30 扫码 +} + +func (x *Verification) Reset() { + *x = Verification{} + if protoimpl.UnsafeEnabled { + mi := &file_wcf_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Verification) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Verification) ProtoMessage() {} + +func (x *Verification) ProtoReflect() protoreflect.Message { + mi := &file_wcf_proto_msgTypes[17] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Verification.ProtoReflect.Descriptor instead. +func (*Verification) Descriptor() ([]byte, []int) { + return file_wcf_proto_rawDescGZIP(), []int{17} +} + +func (x *Verification) GetV3() string { + if x != nil { + return x.V3 + } + return "" +} + +func (x *Verification) GetV4() string { + if x != nil { + return x.V4 + } + return "" +} + +func (x *Verification) GetScene() int32 { + if x != nil { + return x.Scene + } + return 0 +} + +type MemberMgmt struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Roomid string `protobuf:"bytes,1,opt,name=roomid,proto3" json:"roomid,omitempty"` // 要加的群ID + Wxids string `protobuf:"bytes,2,opt,name=wxids,proto3" json:"wxids,omitempty"` // 要加群的人列表,逗号分隔 +} + +func (x *MemberMgmt) Reset() { + *x = MemberMgmt{} + if protoimpl.UnsafeEnabled { + mi := &file_wcf_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MemberMgmt) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MemberMgmt) ProtoMessage() {} + +func (x *MemberMgmt) ProtoReflect() protoreflect.Message { + mi := &file_wcf_proto_msgTypes[18] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use MemberMgmt.ProtoReflect.Descriptor instead. +func (*MemberMgmt) Descriptor() ([]byte, []int) { + return file_wcf_proto_rawDescGZIP(), []int{18} +} + +func (x *MemberMgmt) GetRoomid() string { + if x != nil { + return x.Roomid + } + return "" +} + +func (x *MemberMgmt) GetWxids() string { + if x != nil { + return x.Wxids + } + return "" +} + +type UserInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Wxid string `protobuf:"bytes,1,opt,name=wxid,proto3" json:"wxid,omitempty"` // 微信ID + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // 昵称 + Mobile string `protobuf:"bytes,3,opt,name=mobile,proto3" json:"mobile,omitempty"` // 手机号 + Home string `protobuf:"bytes,4,opt,name=home,proto3" json:"home,omitempty"` // 文件/图片等父路径 +} + +func (x *UserInfo) Reset() { + *x = UserInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_wcf_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UserInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserInfo) ProtoMessage() {} + +func (x *UserInfo) ProtoReflect() protoreflect.Message { + mi := &file_wcf_proto_msgTypes[19] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UserInfo.ProtoReflect.Descriptor instead. +func (*UserInfo) Descriptor() ([]byte, []int) { + return file_wcf_proto_rawDescGZIP(), []int{19} +} + +func (x *UserInfo) GetWxid() string { + if x != nil { + return x.Wxid + } + return "" +} + +func (x *UserInfo) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *UserInfo) GetMobile() string { + if x != nil { + return x.Mobile + } + return "" +} + +func (x *UserInfo) GetHome() string { + if x != nil { + return x.Home + } + return "" +} + +type DecPath struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Src string `protobuf:"bytes,1,opt,name=src,proto3" json:"src,omitempty"` // 源路径 + Dst string `protobuf:"bytes,2,opt,name=dst,proto3" json:"dst,omitempty"` // 目标路径 +} + +func (x *DecPath) Reset() { + *x = DecPath{} + if protoimpl.UnsafeEnabled { + mi := &file_wcf_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DecPath) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DecPath) ProtoMessage() {} + +func (x *DecPath) ProtoReflect() protoreflect.Message { + mi := &file_wcf_proto_msgTypes[20] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DecPath.ProtoReflect.Descriptor instead. +func (*DecPath) Descriptor() ([]byte, []int) { + return file_wcf_proto_rawDescGZIP(), []int{20} +} + +func (x *DecPath) GetSrc() string { + if x != nil { + return x.Src + } + return "" +} + +func (x *DecPath) GetDst() string { + if x != nil { + return x.Dst + } + return "" +} + +type Transfer struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Wxid string `protobuf:"bytes,1,opt,name=wxid,proto3" json:"wxid,omitempty"` // 转账人 + Tfid string `protobuf:"bytes,2,opt,name=tfid,proto3" json:"tfid,omitempty"` // 转账id transferid + Taid string `protobuf:"bytes,3,opt,name=taid,proto3" json:"taid,omitempty"` // Transaction id +} + +func (x *Transfer) Reset() { + *x = Transfer{} + if protoimpl.UnsafeEnabled { + mi := &file_wcf_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Transfer) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Transfer) ProtoMessage() {} + +func (x *Transfer) ProtoReflect() protoreflect.Message { + mi := &file_wcf_proto_msgTypes[21] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Transfer.ProtoReflect.Descriptor instead. +func (*Transfer) Descriptor() ([]byte, []int) { + return file_wcf_proto_rawDescGZIP(), []int{21} +} + +func (x *Transfer) GetWxid() string { + if x != nil { + return x.Wxid + } + return "" +} + +func (x *Transfer) GetTfid() string { + if x != nil { + return x.Tfid + } + return "" +} + +func (x *Transfer) GetTaid() string { + if x != nil { + return x.Taid + } + return "" +} + +type AttachMsg struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 消息 id + Thumb string `protobuf:"bytes,2,opt,name=thumb,proto3" json:"thumb,omitempty"` // 消息中的 thumb + Extra string `protobuf:"bytes,3,opt,name=extra,proto3" json:"extra,omitempty"` // 消息中的 extra +} + +func (x *AttachMsg) Reset() { + *x = AttachMsg{} + if protoimpl.UnsafeEnabled { + mi := &file_wcf_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AttachMsg) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AttachMsg) ProtoMessage() {} + +func (x *AttachMsg) ProtoReflect() protoreflect.Message { + mi := &file_wcf_proto_msgTypes[22] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use AttachMsg.ProtoReflect.Descriptor instead. +func (*AttachMsg) Descriptor() ([]byte, []int) { + return file_wcf_proto_rawDescGZIP(), []int{22} +} + +func (x *AttachMsg) GetId() uint64 { + if x != nil { + return x.Id + } + return 0 +} + +func (x *AttachMsg) GetThumb() string { + if x != nil { + return x.Thumb + } + return "" +} + +func (x *AttachMsg) GetExtra() string { + if x != nil { + return x.Extra + } + return "" +} + +type AudioMsg struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 语音消息 id + Dir string `protobuf:"bytes,2,opt,name=dir,proto3" json:"dir,omitempty"` // 存放目录 +} + +func (x *AudioMsg) Reset() { + *x = AudioMsg{} + if protoimpl.UnsafeEnabled { + mi := &file_wcf_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AudioMsg) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AudioMsg) ProtoMessage() {} + +func (x *AudioMsg) ProtoReflect() protoreflect.Message { + mi := &file_wcf_proto_msgTypes[23] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use AudioMsg.ProtoReflect.Descriptor instead. +func (*AudioMsg) Descriptor() ([]byte, []int) { + return file_wcf_proto_rawDescGZIP(), []int{23} +} + +func (x *AudioMsg) GetId() uint64 { + if x != nil { + return x.Id + } + return 0 +} + +func (x *AudioMsg) GetDir() string { + if x != nil { + return x.Dir + } + return "" +} + +type RichText struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // 显示名字 + Account string `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"` // 公众号 id + Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` // 标题 + Digest string `protobuf:"bytes,4,opt,name=digest,proto3" json:"digest,omitempty"` // 摘要 + Url string `protobuf:"bytes,5,opt,name=url,proto3" json:"url,omitempty"` // 链接 + Thumburl string `protobuf:"bytes,6,opt,name=thumburl,proto3" json:"thumburl,omitempty"` // 缩略图 + Receiver string `protobuf:"bytes,7,opt,name=receiver,proto3" json:"receiver,omitempty"` // 接收人 +} + +func (x *RichText) Reset() { + *x = RichText{} + if protoimpl.UnsafeEnabled { + mi := &file_wcf_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RichText) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RichText) ProtoMessage() {} + +func (x *RichText) ProtoReflect() protoreflect.Message { + mi := &file_wcf_proto_msgTypes[24] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RichText.ProtoReflect.Descriptor instead. +func (*RichText) Descriptor() ([]byte, []int) { + return file_wcf_proto_rawDescGZIP(), []int{24} +} + +func (x *RichText) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *RichText) GetAccount() string { + if x != nil { + return x.Account + } + return "" +} + +func (x *RichText) GetTitle() string { + if x != nil { + return x.Title + } + return "" +} + +func (x *RichText) GetDigest() string { + if x != nil { + return x.Digest + } + return "" +} + +func (x *RichText) GetUrl() string { + if x != nil { + return x.Url + } + return "" +} + +func (x *RichText) GetThumburl() string { + if x != nil { + return x.Thumburl + } + return "" +} + +func (x *RichText) GetReceiver() string { + if x != nil { + return x.Receiver + } + return "" +} + +type PatMsg struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Roomid string `protobuf:"bytes,1,opt,name=roomid,proto3" json:"roomid,omitempty"` // 群 id + Wxid string `protobuf:"bytes,2,opt,name=wxid,proto3" json:"wxid,omitempty"` // wxid +} + +func (x *PatMsg) Reset() { + *x = PatMsg{} + if protoimpl.UnsafeEnabled { + mi := &file_wcf_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PatMsg) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PatMsg) ProtoMessage() {} + +func (x *PatMsg) ProtoReflect() protoreflect.Message { + mi := &file_wcf_proto_msgTypes[25] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PatMsg.ProtoReflect.Descriptor instead. +func (*PatMsg) Descriptor() ([]byte, []int) { + return file_wcf_proto_rawDescGZIP(), []int{25} +} + +func (x *PatMsg) GetRoomid() string { + if x != nil { + return x.Roomid + } + return "" +} + +func (x *PatMsg) GetWxid() string { + if x != nil { + return x.Wxid + } + return "" +} + +type OcrMsg struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` // 状态 + Result string `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"` // 结果 +} + +func (x *OcrMsg) Reset() { + *x = OcrMsg{} + if protoimpl.UnsafeEnabled { + mi := &file_wcf_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OcrMsg) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OcrMsg) ProtoMessage() {} + +func (x *OcrMsg) ProtoReflect() protoreflect.Message { + mi := &file_wcf_proto_msgTypes[26] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OcrMsg.ProtoReflect.Descriptor instead. +func (*OcrMsg) Descriptor() ([]byte, []int) { + return file_wcf_proto_rawDescGZIP(), []int{26} +} + +func (x *OcrMsg) GetStatus() int32 { + if x != nil { + return x.Status + } + return 0 +} + +func (x *OcrMsg) GetResult() string { + if x != nil { + return x.Result + } + return "" +} + +type ForwardMsg struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 待转发消息 ID + Receiver string `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"` // 转发接收目标,群为 roomId,个人为 wxid +} + +func (x *ForwardMsg) Reset() { + *x = ForwardMsg{} + if protoimpl.UnsafeEnabled { + mi := &file_wcf_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ForwardMsg) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ForwardMsg) ProtoMessage() {} + +func (x *ForwardMsg) ProtoReflect() protoreflect.Message { + mi := &file_wcf_proto_msgTypes[27] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ForwardMsg.ProtoReflect.Descriptor instead. +func (*ForwardMsg) Descriptor() ([]byte, []int) { + return file_wcf_proto_rawDescGZIP(), []int{27} +} + +func (x *ForwardMsg) GetId() uint64 { + if x != nil { + return x.Id + } + return 0 +} + +func (x *ForwardMsg) GetReceiver() string { + if x != nil { + return x.Receiver + } + return "" +} + +var File_wcf_proto protoreflect.FileDescriptor + +var file_wcf_proto_rawDesc = []byte{ + 0x0a, 0x09, 0x77, 0x63, 0x66, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x03, 0x77, 0x63, 0x66, + 0x22, 0xd4, 0x04, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x04, + 0x66, 0x75, 0x6e, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0e, 0x2e, 0x77, 0x63, 0x66, + 0x2e, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x04, 0x66, 0x75, 0x6e, 0x63, + 0x12, 0x22, 0x0a, 0x05, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x0a, 0x2e, 0x77, 0x63, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x48, 0x00, 0x52, 0x05, 0x65, + 0x6d, 0x70, 0x74, 0x79, 0x12, 0x12, 0x0a, 0x03, 0x73, 0x74, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x48, 0x00, 0x52, 0x03, 0x73, 0x74, 0x72, 0x12, 0x20, 0x0a, 0x03, 0x74, 0x78, 0x74, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x77, 0x63, 0x66, 0x2e, 0x54, 0x65, 0x78, 0x74, + 0x4d, 0x73, 0x67, 0x48, 0x00, 0x52, 0x03, 0x74, 0x78, 0x74, 0x12, 0x22, 0x0a, 0x04, 0x66, 0x69, + 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x77, 0x63, 0x66, 0x2e, 0x50, + 0x61, 0x74, 0x68, 0x4d, 0x73, 0x67, 0x48, 0x00, 0x52, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x24, + 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, + 0x77, 0x63, 0x66, 0x2e, 0x44, 0x62, 0x51, 0x75, 0x65, 0x72, 0x79, 0x48, 0x00, 0x52, 0x05, 0x71, + 0x75, 0x65, 0x72, 0x79, 0x12, 0x21, 0x0a, 0x01, 0x76, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x11, 0x2e, 0x77, 0x63, 0x66, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x01, 0x76, 0x12, 0x1f, 0x0a, 0x01, 0x6d, 0x18, 0x08, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x77, 0x63, 0x66, 0x2e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x4d, + 0x67, 0x6d, 0x74, 0x48, 0x00, 0x52, 0x01, 0x6d, 0x12, 0x1f, 0x0a, 0x03, 0x78, 0x6d, 0x6c, 0x18, + 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x77, 0x63, 0x66, 0x2e, 0x58, 0x6d, 0x6c, 0x4d, + 0x73, 0x67, 0x48, 0x00, 0x52, 0x03, 0x78, 0x6d, 0x6c, 0x12, 0x20, 0x0a, 0x03, 0x64, 0x65, 0x63, + 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x77, 0x63, 0x66, 0x2e, 0x44, 0x65, 0x63, + 0x50, 0x61, 0x74, 0x68, 0x48, 0x00, 0x52, 0x03, 0x64, 0x65, 0x63, 0x12, 0x1f, 0x0a, 0x02, 0x74, + 0x66, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x77, 0x63, 0x66, 0x2e, 0x54, 0x72, + 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x48, 0x00, 0x52, 0x02, 0x74, 0x66, 0x12, 0x14, 0x0a, 0x04, + 0x75, 0x69, 0x36, 0x34, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x04, 0x48, 0x00, 0x52, 0x04, 0x75, 0x69, + 0x36, 0x34, 0x12, 0x14, 0x0a, 0x04, 0x66, 0x6c, 0x61, 0x67, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x08, + 0x48, 0x00, 0x52, 0x04, 0x66, 0x6c, 0x61, 0x67, 0x12, 0x22, 0x0a, 0x03, 0x61, 0x74, 0x74, 0x18, + 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x77, 0x63, 0x66, 0x2e, 0x41, 0x74, 0x74, 0x61, + 0x63, 0x68, 0x4d, 0x73, 0x67, 0x48, 0x00, 0x52, 0x03, 0x61, 0x74, 0x74, 0x12, 0x1f, 0x0a, 0x02, + 0x61, 0x6d, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x77, 0x63, 0x66, 0x2e, 0x41, + 0x75, 0x64, 0x69, 0x6f, 0x4d, 0x73, 0x67, 0x48, 0x00, 0x52, 0x02, 0x61, 0x6d, 0x12, 0x1f, 0x0a, + 0x02, 0x72, 0x74, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x77, 0x63, 0x66, 0x2e, + 0x52, 0x69, 0x63, 0x68, 0x54, 0x65, 0x78, 0x74, 0x48, 0x00, 0x52, 0x02, 0x72, 0x74, 0x12, 0x1d, + 0x0a, 0x02, 0x70, 0x6d, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x77, 0x63, 0x66, + 0x2e, 0x50, 0x61, 0x74, 0x4d, 0x73, 0x67, 0x48, 0x00, 0x52, 0x02, 0x70, 0x6d, 0x12, 0x21, 0x0a, + 0x02, 0x66, 0x6d, 0x18, 0x12, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x77, 0x63, 0x66, 0x2e, + 0x46, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x4d, 0x73, 0x67, 0x48, 0x00, 0x52, 0x02, 0x66, 0x6d, + 0x42, 0x05, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x22, 0x8e, 0x03, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x22, 0x0a, 0x04, 0x66, 0x75, 0x6e, 0x63, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x0e, 0x2e, 0x77, 0x63, 0x66, 0x2e, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x52, 0x04, 0x66, 0x75, 0x6e, 0x63, 0x12, 0x18, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x12, 0x12, 0x0a, 0x03, 0x73, 0x74, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, + 0x00, 0x52, 0x03, 0x73, 0x74, 0x72, 0x12, 0x22, 0x0a, 0x05, 0x77, 0x78, 0x6d, 0x73, 0x67, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x77, 0x63, 0x66, 0x2e, 0x57, 0x78, 0x4d, 0x73, + 0x67, 0x48, 0x00, 0x52, 0x05, 0x77, 0x78, 0x6d, 0x73, 0x67, 0x12, 0x25, 0x0a, 0x05, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x77, 0x63, 0x66, 0x2e, + 0x4d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x73, 0x48, 0x00, 0x52, 0x05, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x12, 0x2e, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x73, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x77, 0x63, 0x66, 0x2e, 0x52, 0x70, 0x63, 0x43, 0x6f, 0x6e, + 0x74, 0x61, 0x63, 0x74, 0x73, 0x48, 0x00, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, + 0x73, 0x12, 0x20, 0x0a, 0x03, 0x64, 0x62, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, + 0x2e, 0x77, 0x63, 0x66, 0x2e, 0x44, 0x62, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x48, 0x00, 0x52, 0x03, + 0x64, 0x62, 0x73, 0x12, 0x27, 0x0a, 0x06, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x18, 0x08, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x77, 0x63, 0x66, 0x2e, 0x44, 0x62, 0x54, 0x61, 0x62, 0x6c, + 0x65, 0x73, 0x48, 0x00, 0x52, 0x06, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x12, 0x21, 0x0a, 0x04, + 0x72, 0x6f, 0x77, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x77, 0x63, 0x66, + 0x2e, 0x44, 0x62, 0x52, 0x6f, 0x77, 0x73, 0x48, 0x00, 0x52, 0x04, 0x72, 0x6f, 0x77, 0x73, 0x12, + 0x1f, 0x0a, 0x02, 0x75, 0x69, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x77, 0x63, + 0x66, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x48, 0x00, 0x52, 0x02, 0x75, 0x69, + 0x12, 0x1f, 0x0a, 0x03, 0x6f, 0x63, 0x72, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, + 0x77, 0x63, 0x66, 0x2e, 0x4f, 0x63, 0x72, 0x4d, 0x73, 0x67, 0x48, 0x00, 0x52, 0x03, 0x6f, 0x63, + 0x72, 0x42, 0x05, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x22, 0x07, 0x0a, 0x05, 0x45, 0x6d, 0x70, 0x74, + 0x79, 0x22, 0x8b, 0x02, 0x0a, 0x05, 0x57, 0x78, 0x4d, 0x73, 0x67, 0x12, 0x17, 0x0a, 0x07, 0x69, + 0x73, 0x5f, 0x73, 0x65, 0x6c, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x69, 0x73, + 0x53, 0x65, 0x6c, 0x66, 0x12, 0x19, 0x0a, 0x08, 0x69, 0x73, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x69, 0x73, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, + 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, + 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x74, + 0x79, 0x70, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, + 0x02, 0x74, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x6f, 0x6f, 0x6d, 0x69, 0x64, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x6f, 0x6f, 0x6d, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, + 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, + 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, + 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x12, 0x0a, + 0x04, 0x73, 0x69, 0x67, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x73, 0x69, 0x67, + 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x68, 0x75, 0x6d, 0x62, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x05, 0x74, 0x68, 0x75, 0x6d, 0x62, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x78, 0x74, 0x72, 0x61, + 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x78, 0x74, 0x72, 0x61, 0x12, 0x10, 0x0a, + 0x03, 0x78, 0x6d, 0x6c, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x78, 0x6d, 0x6c, 0x22, + 0x4d, 0x0a, 0x07, 0x54, 0x65, 0x78, 0x74, 0x4d, 0x73, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, + 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x12, 0x1a, 0x0a, 0x08, + 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x74, 0x65, 0x72, + 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x74, 0x65, 0x72, 0x73, 0x22, 0x39, + 0x0a, 0x07, 0x50, 0x61, 0x74, 0x68, 0x4d, 0x73, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, + 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x1a, 0x0a, + 0x08, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x22, 0x66, 0x0a, 0x06, 0x58, 0x6d, 0x6c, + 0x4d, 0x73, 0x67, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x12, + 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, + 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x12, 0x0a, + 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x74, 0x79, 0x70, + 0x65, 0x22, 0x74, 0x0a, 0x08, 0x4d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x2e, 0x0a, + 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x77, + 0x63, 0x66, 0x2e, 0x4d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x54, 0x79, 0x70, 0x65, + 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x1a, 0x38, 0x0a, + 0x0a, 0x54, 0x79, 0x70, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, + 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xc2, 0x01, 0x0a, 0x0a, 0x52, 0x70, 0x63, 0x43, + 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x77, 0x78, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x77, 0x78, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, + 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x16, + 0x0a, 0x06, 0x72, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x72, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x75, + 0x6e, 0x74, 0x72, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, + 0x12, 0x12, 0x0a, 0x04, 0x63, 0x69, 0x74, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x63, 0x69, 0x74, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x08, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x22, 0x3a, 0x0a, 0x0b, + 0x52, 0x70, 0x63, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x73, 0x12, 0x2b, 0x0a, 0x08, 0x63, + 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, + 0x77, 0x63, 0x66, 0x2e, 0x52, 0x70, 0x63, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x52, 0x08, + 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x73, 0x22, 0x1f, 0x0a, 0x07, 0x44, 0x62, 0x4e, 0x61, + 0x6d, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x09, 0x52, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x22, 0x2f, 0x0a, 0x07, 0x44, 0x62, 0x54, + 0x61, 0x62, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x71, 0x6c, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x73, 0x71, 0x6c, 0x22, 0x30, 0x0a, 0x08, 0x44, 0x62, + 0x54, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x12, 0x24, 0x0a, 0x06, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x77, 0x63, 0x66, 0x2e, 0x44, 0x62, 0x54, + 0x61, 0x62, 0x6c, 0x65, 0x52, 0x06, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x22, 0x2b, 0x0a, 0x07, + 0x44, 0x62, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x64, 0x62, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x02, 0x64, 0x62, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x71, 0x6c, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x73, 0x71, 0x6c, 0x22, 0x4f, 0x0a, 0x07, 0x44, 0x62, 0x46, + 0x69, 0x65, 0x6c, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x05, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6f, 0x6c, 0x75, + 0x6d, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, + 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x22, 0x2d, 0x0a, 0x05, 0x44, 0x62, + 0x52, 0x6f, 0x77, 0x12, 0x24, 0x0a, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x77, 0x63, 0x66, 0x2e, 0x44, 0x62, 0x46, 0x69, 0x65, 0x6c, + 0x64, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x22, 0x28, 0x0a, 0x06, 0x44, 0x62, 0x52, + 0x6f, 0x77, 0x73, 0x12, 0x1e, 0x0a, 0x04, 0x72, 0x6f, 0x77, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x0a, 0x2e, 0x77, 0x63, 0x66, 0x2e, 0x44, 0x62, 0x52, 0x6f, 0x77, 0x52, 0x04, 0x72, + 0x6f, 0x77, 0x73, 0x22, 0x44, 0x0a, 0x0c, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x76, 0x33, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x02, 0x76, 0x33, 0x12, 0x0e, 0x0a, 0x02, 0x76, 0x34, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x02, 0x76, 0x34, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x63, 0x65, 0x6e, 0x65, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x05, 0x52, 0x05, 0x73, 0x63, 0x65, 0x6e, 0x65, 0x22, 0x3a, 0x0a, 0x0a, 0x4d, 0x65, 0x6d, + 0x62, 0x65, 0x72, 0x4d, 0x67, 0x6d, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x6f, 0x6f, 0x6d, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x6f, 0x6f, 0x6d, 0x69, 0x64, 0x12, + 0x14, 0x0a, 0x05, 0x77, 0x78, 0x69, 0x64, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, + 0x77, 0x78, 0x69, 0x64, 0x73, 0x22, 0x5e, 0x0a, 0x08, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, + 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x77, 0x78, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x77, 0x78, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x6f, 0x62, + 0x69, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x6f, 0x62, 0x69, 0x6c, + 0x65, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x68, 0x6f, 0x6d, 0x65, 0x22, 0x2d, 0x0a, 0x07, 0x44, 0x65, 0x63, 0x50, 0x61, 0x74, 0x68, + 0x12, 0x10, 0x0a, 0x03, 0x73, 0x72, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x73, + 0x72, 0x63, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x03, 0x64, 0x73, 0x74, 0x22, 0x46, 0x0a, 0x08, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, + 0x12, 0x12, 0x0a, 0x04, 0x77, 0x78, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x77, 0x78, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x66, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x74, 0x66, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x69, 0x64, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x69, 0x64, 0x22, 0x47, 0x0a, 0x09, + 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x4d, 0x73, 0x67, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x68, 0x75, + 0x6d, 0x62, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x68, 0x75, 0x6d, 0x62, 0x12, + 0x14, 0x0a, 0x05, 0x65, 0x78, 0x74, 0x72, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, + 0x65, 0x78, 0x74, 0x72, 0x61, 0x22, 0x2c, 0x0a, 0x08, 0x41, 0x75, 0x64, 0x69, 0x6f, 0x4d, 0x73, + 0x67, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, + 0x64, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x69, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, + 0x64, 0x69, 0x72, 0x22, 0xb0, 0x01, 0x0a, 0x08, 0x52, 0x69, 0x63, 0x68, 0x54, 0x65, 0x78, 0x74, + 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x14, + 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, + 0x69, 0x74, 0x6c, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x69, 0x67, 0x65, 0x73, 0x74, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x69, 0x67, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, + 0x75, 0x72, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x1a, + 0x0a, 0x08, 0x74, 0x68, 0x75, 0x6d, 0x62, 0x75, 0x72, 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x08, 0x74, 0x68, 0x75, 0x6d, 0x62, 0x75, 0x72, 0x6c, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, + 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, + 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x22, 0x34, 0x0a, 0x06, 0x50, 0x61, 0x74, 0x4d, 0x73, 0x67, + 0x12, 0x16, 0x0a, 0x06, 0x72, 0x6f, 0x6f, 0x6d, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x06, 0x72, 0x6f, 0x6f, 0x6d, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x77, 0x78, 0x69, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x77, 0x78, 0x69, 0x64, 0x22, 0x38, 0x0a, 0x06, + 0x4f, 0x63, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, + 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x38, 0x0a, 0x0a, 0x46, 0x6f, 0x72, 0x77, 0x61, 0x72, + 0x64, 0x4d, 0x73, 0x67, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x02, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, + 0x2a, 0xd9, 0x05, 0x0a, 0x09, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x11, + 0x0a, 0x0d, 0x46, 0x55, 0x4e, 0x43, 0x5f, 0x52, 0x45, 0x53, 0x45, 0x52, 0x56, 0x45, 0x44, 0x10, + 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x46, 0x55, 0x4e, 0x43, 0x5f, 0x49, 0x53, 0x5f, 0x4c, 0x4f, 0x47, + 0x49, 0x4e, 0x10, 0x01, 0x12, 0x16, 0x0a, 0x12, 0x46, 0x55, 0x4e, 0x43, 0x5f, 0x47, 0x45, 0x54, + 0x5f, 0x53, 0x45, 0x4c, 0x46, 0x5f, 0x57, 0x58, 0x49, 0x44, 0x10, 0x10, 0x12, 0x16, 0x0a, 0x12, + 0x46, 0x55, 0x4e, 0x43, 0x5f, 0x47, 0x45, 0x54, 0x5f, 0x4d, 0x53, 0x47, 0x5f, 0x54, 0x59, 0x50, + 0x45, 0x53, 0x10, 0x11, 0x12, 0x15, 0x0a, 0x11, 0x46, 0x55, 0x4e, 0x43, 0x5f, 0x47, 0x45, 0x54, + 0x5f, 0x43, 0x4f, 0x4e, 0x54, 0x41, 0x43, 0x54, 0x53, 0x10, 0x12, 0x12, 0x15, 0x0a, 0x11, 0x46, + 0x55, 0x4e, 0x43, 0x5f, 0x47, 0x45, 0x54, 0x5f, 0x44, 0x42, 0x5f, 0x4e, 0x41, 0x4d, 0x45, 0x53, + 0x10, 0x13, 0x12, 0x16, 0x0a, 0x12, 0x46, 0x55, 0x4e, 0x43, 0x5f, 0x47, 0x45, 0x54, 0x5f, 0x44, + 0x42, 0x5f, 0x54, 0x41, 0x42, 0x4c, 0x45, 0x53, 0x10, 0x14, 0x12, 0x16, 0x0a, 0x12, 0x46, 0x55, + 0x4e, 0x43, 0x5f, 0x47, 0x45, 0x54, 0x5f, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x49, 0x4e, 0x46, 0x4f, + 0x10, 0x15, 0x12, 0x16, 0x0a, 0x12, 0x46, 0x55, 0x4e, 0x43, 0x5f, 0x47, 0x45, 0x54, 0x5f, 0x41, + 0x55, 0x44, 0x49, 0x4f, 0x5f, 0x4d, 0x53, 0x47, 0x10, 0x16, 0x12, 0x11, 0x0a, 0x0d, 0x46, 0x55, + 0x4e, 0x43, 0x5f, 0x53, 0x45, 0x4e, 0x44, 0x5f, 0x54, 0x58, 0x54, 0x10, 0x20, 0x12, 0x11, 0x0a, + 0x0d, 0x46, 0x55, 0x4e, 0x43, 0x5f, 0x53, 0x45, 0x4e, 0x44, 0x5f, 0x49, 0x4d, 0x47, 0x10, 0x21, + 0x12, 0x12, 0x0a, 0x0e, 0x46, 0x55, 0x4e, 0x43, 0x5f, 0x53, 0x45, 0x4e, 0x44, 0x5f, 0x46, 0x49, + 0x4c, 0x45, 0x10, 0x22, 0x12, 0x11, 0x0a, 0x0d, 0x46, 0x55, 0x4e, 0x43, 0x5f, 0x53, 0x45, 0x4e, + 0x44, 0x5f, 0x58, 0x4d, 0x4c, 0x10, 0x23, 0x12, 0x15, 0x0a, 0x11, 0x46, 0x55, 0x4e, 0x43, 0x5f, + 0x53, 0x45, 0x4e, 0x44, 0x5f, 0x45, 0x4d, 0x4f, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x24, 0x12, 0x16, + 0x0a, 0x12, 0x46, 0x55, 0x4e, 0x43, 0x5f, 0x53, 0x45, 0x4e, 0x44, 0x5f, 0x52, 0x49, 0x43, 0x48, + 0x5f, 0x54, 0x58, 0x54, 0x10, 0x25, 0x12, 0x15, 0x0a, 0x11, 0x46, 0x55, 0x4e, 0x43, 0x5f, 0x53, + 0x45, 0x4e, 0x44, 0x5f, 0x50, 0x41, 0x54, 0x5f, 0x4d, 0x53, 0x47, 0x10, 0x26, 0x12, 0x14, 0x0a, + 0x10, 0x46, 0x55, 0x4e, 0x43, 0x5f, 0x46, 0x4f, 0x52, 0x57, 0x41, 0x52, 0x44, 0x5f, 0x4d, 0x53, + 0x47, 0x10, 0x27, 0x12, 0x18, 0x0a, 0x14, 0x46, 0x55, 0x4e, 0x43, 0x5f, 0x45, 0x4e, 0x41, 0x42, + 0x4c, 0x45, 0x5f, 0x52, 0x45, 0x43, 0x56, 0x5f, 0x54, 0x58, 0x54, 0x10, 0x30, 0x12, 0x19, 0x0a, + 0x15, 0x46, 0x55, 0x4e, 0x43, 0x5f, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x5f, 0x52, 0x45, + 0x43, 0x56, 0x5f, 0x54, 0x58, 0x54, 0x10, 0x40, 0x12, 0x16, 0x0a, 0x12, 0x46, 0x55, 0x4e, 0x43, + 0x5f, 0x45, 0x58, 0x45, 0x43, 0x5f, 0x44, 0x42, 0x5f, 0x51, 0x55, 0x45, 0x52, 0x59, 0x10, 0x50, + 0x12, 0x16, 0x0a, 0x12, 0x46, 0x55, 0x4e, 0x43, 0x5f, 0x41, 0x43, 0x43, 0x45, 0x50, 0x54, 0x5f, + 0x46, 0x52, 0x49, 0x45, 0x4e, 0x44, 0x10, 0x51, 0x12, 0x16, 0x0a, 0x12, 0x46, 0x55, 0x4e, 0x43, + 0x5f, 0x52, 0x45, 0x43, 0x56, 0x5f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x10, 0x52, + 0x12, 0x14, 0x0a, 0x10, 0x46, 0x55, 0x4e, 0x43, 0x5f, 0x52, 0x45, 0x46, 0x52, 0x45, 0x53, 0x48, + 0x5f, 0x50, 0x59, 0x51, 0x10, 0x53, 0x12, 0x18, 0x0a, 0x14, 0x46, 0x55, 0x4e, 0x43, 0x5f, 0x44, + 0x4f, 0x57, 0x4e, 0x4c, 0x4f, 0x41, 0x44, 0x5f, 0x41, 0x54, 0x54, 0x41, 0x43, 0x48, 0x10, 0x54, + 0x12, 0x19, 0x0a, 0x15, 0x46, 0x55, 0x4e, 0x43, 0x5f, 0x47, 0x45, 0x54, 0x5f, 0x43, 0x4f, 0x4e, + 0x54, 0x41, 0x43, 0x54, 0x5f, 0x49, 0x4e, 0x46, 0x4f, 0x10, 0x55, 0x12, 0x13, 0x0a, 0x0f, 0x46, + 0x55, 0x4e, 0x43, 0x5f, 0x52, 0x45, 0x56, 0x4f, 0x4b, 0x45, 0x5f, 0x4d, 0x53, 0x47, 0x10, 0x56, + 0x12, 0x16, 0x0a, 0x12, 0x46, 0x55, 0x4e, 0x43, 0x5f, 0x44, 0x45, 0x43, 0x52, 0x59, 0x50, 0x54, + 0x5f, 0x49, 0x4d, 0x41, 0x47, 0x45, 0x10, 0x60, 0x12, 0x11, 0x0a, 0x0d, 0x46, 0x55, 0x4e, 0x43, + 0x5f, 0x45, 0x58, 0x45, 0x43, 0x5f, 0x4f, 0x43, 0x52, 0x10, 0x61, 0x12, 0x19, 0x0a, 0x15, 0x46, + 0x55, 0x4e, 0x43, 0x5f, 0x41, 0x44, 0x44, 0x5f, 0x52, 0x4f, 0x4f, 0x4d, 0x5f, 0x4d, 0x45, 0x4d, + 0x42, 0x45, 0x52, 0x53, 0x10, 0x70, 0x12, 0x19, 0x0a, 0x15, 0x46, 0x55, 0x4e, 0x43, 0x5f, 0x44, + 0x45, 0x4c, 0x5f, 0x52, 0x4f, 0x4f, 0x4d, 0x5f, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x53, 0x10, + 0x71, 0x12, 0x19, 0x0a, 0x15, 0x46, 0x55, 0x4e, 0x43, 0x5f, 0x49, 0x4e, 0x56, 0x5f, 0x52, 0x4f, + 0x4f, 0x4d, 0x5f, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x53, 0x10, 0x72, 0x42, 0x15, 0x0a, 0x0b, + 0x63, 0x6f, 0x6d, 0x2e, 0x69, 0x61, 0x6d, 0x74, 0x65, 0x65, 0x72, 0x5a, 0x06, 0x2e, 0x2e, 0x2f, + 0x77, 0x63, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_wcf_proto_rawDescOnce sync.Once + file_wcf_proto_rawDescData = file_wcf_proto_rawDesc +) + +func file_wcf_proto_rawDescGZIP() []byte { + file_wcf_proto_rawDescOnce.Do(func() { + file_wcf_proto_rawDescData = protoimpl.X.CompressGZIP(file_wcf_proto_rawDescData) + }) + return file_wcf_proto_rawDescData +} + +var file_wcf_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_wcf_proto_msgTypes = make([]protoimpl.MessageInfo, 29) +var file_wcf_proto_goTypes = []interface{}{ + (Functions)(0), // 0: wcf.Functions + (*Request)(nil), // 1: wcf.Request + (*Response)(nil), // 2: wcf.Response + (*Empty)(nil), // 3: wcf.Empty + (*WxMsg)(nil), // 4: wcf.WxMsg + (*TextMsg)(nil), // 5: wcf.TextMsg + (*PathMsg)(nil), // 6: wcf.PathMsg + (*XmlMsg)(nil), // 7: wcf.XmlMsg + (*MsgTypes)(nil), // 8: wcf.MsgTypes + (*RpcContact)(nil), // 9: wcf.RpcContact + (*RpcContacts)(nil), // 10: wcf.RpcContacts + (*DbNames)(nil), // 11: wcf.DbNames + (*DbTable)(nil), // 12: wcf.DbTable + (*DbTables)(nil), // 13: wcf.DbTables + (*DbQuery)(nil), // 14: wcf.DbQuery + (*DbField)(nil), // 15: wcf.DbField + (*DbRow)(nil), // 16: wcf.DbRow + (*DbRows)(nil), // 17: wcf.DbRows + (*Verification)(nil), // 18: wcf.Verification + (*MemberMgmt)(nil), // 19: wcf.MemberMgmt + (*UserInfo)(nil), // 20: wcf.UserInfo + (*DecPath)(nil), // 21: wcf.DecPath + (*Transfer)(nil), // 22: wcf.Transfer + (*AttachMsg)(nil), // 23: wcf.AttachMsg + (*AudioMsg)(nil), // 24: wcf.AudioMsg + (*RichText)(nil), // 25: wcf.RichText + (*PatMsg)(nil), // 26: wcf.PatMsg + (*OcrMsg)(nil), // 27: wcf.OcrMsg + (*ForwardMsg)(nil), // 28: wcf.ForwardMsg + nil, // 29: wcf.MsgTypes.TypesEntry +} +var file_wcf_proto_depIdxs = []int32{ + 0, // 0: wcf.Request.func:type_name -> wcf.Functions + 3, // 1: wcf.Request.empty:type_name -> wcf.Empty + 5, // 2: wcf.Request.txt:type_name -> wcf.TextMsg + 6, // 3: wcf.Request.file:type_name -> wcf.PathMsg + 14, // 4: wcf.Request.query:type_name -> wcf.DbQuery + 18, // 5: wcf.Request.v:type_name -> wcf.Verification + 19, // 6: wcf.Request.m:type_name -> wcf.MemberMgmt + 7, // 7: wcf.Request.xml:type_name -> wcf.XmlMsg + 21, // 8: wcf.Request.dec:type_name -> wcf.DecPath + 22, // 9: wcf.Request.tf:type_name -> wcf.Transfer + 23, // 10: wcf.Request.att:type_name -> wcf.AttachMsg + 24, // 11: wcf.Request.am:type_name -> wcf.AudioMsg + 25, // 12: wcf.Request.rt:type_name -> wcf.RichText + 26, // 13: wcf.Request.pm:type_name -> wcf.PatMsg + 28, // 14: wcf.Request.fm:type_name -> wcf.ForwardMsg + 0, // 15: wcf.Response.func:type_name -> wcf.Functions + 4, // 16: wcf.Response.wxmsg:type_name -> wcf.WxMsg + 8, // 17: wcf.Response.types:type_name -> wcf.MsgTypes + 10, // 18: wcf.Response.contacts:type_name -> wcf.RpcContacts + 11, // 19: wcf.Response.dbs:type_name -> wcf.DbNames + 13, // 20: wcf.Response.tables:type_name -> wcf.DbTables + 17, // 21: wcf.Response.rows:type_name -> wcf.DbRows + 20, // 22: wcf.Response.ui:type_name -> wcf.UserInfo + 27, // 23: wcf.Response.ocr:type_name -> wcf.OcrMsg + 29, // 24: wcf.MsgTypes.types:type_name -> wcf.MsgTypes.TypesEntry + 9, // 25: wcf.RpcContacts.contacts:type_name -> wcf.RpcContact + 12, // 26: wcf.DbTables.tables:type_name -> wcf.DbTable + 15, // 27: wcf.DbRow.fields:type_name -> wcf.DbField + 16, // 28: wcf.DbRows.rows:type_name -> wcf.DbRow + 29, // [29:29] is the sub-list for method output_type + 29, // [29:29] is the sub-list for method input_type + 29, // [29:29] is the sub-list for extension type_name + 29, // [29:29] is the sub-list for extension extendee + 0, // [0:29] is the sub-list for field type_name +} + +func init() { file_wcf_proto_init() } +func file_wcf_proto_init() { + if File_wcf_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_wcf_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wcf_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Response); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wcf_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Empty); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wcf_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WxMsg); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wcf_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TextMsg); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wcf_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PathMsg); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wcf_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*XmlMsg); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wcf_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgTypes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wcf_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RpcContact); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wcf_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RpcContacts); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wcf_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DbNames); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wcf_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DbTable); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wcf_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DbTables); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wcf_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DbQuery); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wcf_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DbField); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wcf_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DbRow); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wcf_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DbRows); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wcf_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Verification); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wcf_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MemberMgmt); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wcf_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wcf_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DecPath); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wcf_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Transfer); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wcf_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AttachMsg); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wcf_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AudioMsg); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wcf_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RichText); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wcf_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PatMsg); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wcf_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OcrMsg); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wcf_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ForwardMsg); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_wcf_proto_msgTypes[0].OneofWrappers = []interface{}{ + (*Request_Empty)(nil), + (*Request_Str)(nil), + (*Request_Txt)(nil), + (*Request_File)(nil), + (*Request_Query)(nil), + (*Request_V)(nil), + (*Request_M)(nil), + (*Request_Xml)(nil), + (*Request_Dec)(nil), + (*Request_Tf)(nil), + (*Request_Ui64)(nil), + (*Request_Flag)(nil), + (*Request_Att)(nil), + (*Request_Am)(nil), + (*Request_Rt)(nil), + (*Request_Pm)(nil), + (*Request_Fm)(nil), + } + file_wcf_proto_msgTypes[1].OneofWrappers = []interface{}{ + (*Response_Status)(nil), + (*Response_Str)(nil), + (*Response_Wxmsg)(nil), + (*Response_Types)(nil), + (*Response_Contacts)(nil), + (*Response_Dbs)(nil), + (*Response_Tables)(nil), + (*Response_Rows)(nil), + (*Response_Ui)(nil), + (*Response_Ocr)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_wcf_proto_rawDesc, + NumEnums: 1, + NumMessages: 29, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_wcf_proto_goTypes, + DependencyIndexes: file_wcf_proto_depIdxs, + EnumInfos: file_wcf_proto_enumTypes, + MessageInfos: file_wcf_proto_msgTypes, + }.Build() + File_wcf_proto = out.File + file_wcf_proto_rawDesc = nil + file_wcf_proto_goTypes = nil + file_wcf_proto_depIdxs = nil +}