wcferry

package
v0.26.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2024 License: GPL-3.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const Wcf_Version = "39.0.14"
View Source
const Wechat_Version = "3.9.2.23"

Variables

View Source
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",
		87:  "FUNC_REFRESH_QRCODE",
		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_REFRESH_QRCODE":   87,
		"FUNC_DECRYPT_IMAGE":    96,
		"FUNC_EXEC_OCR":         97,
		"FUNC_ADD_ROOM_MEMBERS": 112,
		"FUNC_DEL_ROOM_MEMBERS": 113,
		"FUNC_INV_ROOM_MEMBERS": 114,
	}
)

Enum value maps for Functions.

View Source
var File_proto_roomdata_proto protoreflect.FileDescriptor
View Source
var File_proto_wcferry_proto protoreflect.FileDescriptor

Functions

func ContactType

func ContactType(wxid string) string

获取联系人类型 param wxid string 联系人wxid return string 类型

func DownloadFile

func DownloadFile(str string) string

获取网络文件 param str string 文件URL或路径 return string 失败则返回空字符串

func IsImageFile

func IsImageFile(str string) bool

根据扩展名推测是否图片 param text string 文件URL或路径 return bool 是否为图片

func ParseDbField

func ParseDbField(field *DbField) any

解析数据库字段 param field *DbField 字段 return any 解析结果

func ParseWxMsgRecord

func ParseWxMsgRecord(str string) (*types.RecordInfo, error)

解析聊天记录 param str string 消息内容 return *types.RecordInfo 聊天记录

func WxMsgPrinter

func WxMsgPrinter(msg *WxMsg)

打印接收到的消息 param msg *FlexWxMsg 消息

Types

type AttachMsg

type AttachMsg struct {
	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
	// contains filtered or unexported fields
}

func (*AttachMsg) Descriptor deprecated

func (*AttachMsg) Descriptor() ([]byte, []int)

Deprecated: Use AttachMsg.ProtoReflect.Descriptor instead.

func (*AttachMsg) GetExtra

func (x *AttachMsg) GetExtra() string

func (*AttachMsg) GetId

func (x *AttachMsg) GetId() uint64

func (*AttachMsg) GetThumb

func (x *AttachMsg) GetThumb() string

func (*AttachMsg) ProtoMessage

func (*AttachMsg) ProtoMessage()

func (*AttachMsg) ProtoReflect

func (x *AttachMsg) ProtoReflect() protoreflect.Message

func (*AttachMsg) Reset

func (x *AttachMsg) Reset()

func (*AttachMsg) String

func (x *AttachMsg) String() string

type AudioMsg

type AudioMsg struct {
	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"` // 存放目录
	// contains filtered or unexported fields
}

func (*AudioMsg) Descriptor deprecated

func (*AudioMsg) Descriptor() ([]byte, []int)

Deprecated: Use AudioMsg.ProtoReflect.Descriptor instead.

func (*AudioMsg) GetDir

func (x *AudioMsg) GetDir() string

func (*AudioMsg) GetId

func (x *AudioMsg) GetId() uint64

func (*AudioMsg) ProtoMessage

func (*AudioMsg) ProtoMessage()

func (*AudioMsg) ProtoReflect

func (x *AudioMsg) ProtoReflect() protoreflect.Message

func (*AudioMsg) Reset

func (x *AudioMsg) Reset()

func (*AudioMsg) String

func (x *AudioMsg) String() string

type Client

type Client struct {
	WcfBinary  string     // wcf.exe 路径
	ListenAddr string     // wcf 监听地址
	ListenPort int        // wcf 监听端口
	CmdClient  *CmdClient // 命令客户端
	MsgClient  *MsgClient // 消息客户端
}

func (*Client) Connect

func (c *Client) Connect() error

启动 wcf 服务 return error 错误信息

func (*Client) DisableReceiver

func (c *Client) DisableReceiver(ks ...string) error

关闭消息接收器 param sk 消息接收器标识,为空则关闭所有 return error 错误信息

func (*Client) EnrollReceiver

func (c *Client) EnrollReceiver(pyq bool, cb MsgConsumer) (string, error)

启动消息接收器 param pyq bool 是否接收朋友圈消息 param cb MsgConsumer 消息回调函数,可选参数 return string 接收器唯一标识

type CmdClient

type CmdClient struct {
	// contains filtered or unexported fields
}

func (*CmdClient) AcceptNewFriend

func (c *CmdClient) AcceptNewFriend(v3, v4 string, scene int32) int32

接受好友申请 param v3 string 加密用户名 (好友申请消息里 v3 开头的字符串) param v4 string Ticket (好友申请消息里 v4 开头的字符串) param scene int32 申请方式 (好友申请消息里的 scene); 为了兼容旧接口,默认为扫码添加 (30) return int32 1 为成功,其他失败

func (*CmdClient) AddChatRoomMembers

func (c *CmdClient) AddChatRoomMembers(roomid, wxIds string) int32

添加群成员 param roomid string 待加群的 id param wxids string 要加到群里的 wxid,多个用逗号分隔 return int32 1 为成功,其他失败

func (*CmdClient) DbSqlQuery

func (c *CmdClient) DbSqlQuery(db, sql string) []map[string]any

执行 SQL 查询,如果数据量大注意分页 param db string 要查询的数据库 param sql string 要执行的 SQL return []map[string]any 查询结果

func (*CmdClient) DecryptImage

func (c *CmdClient) DecryptImage(src, dir string) string

解密图片 此方法别直接调用,下载图片使用 `DownloadImage` 方法 param src string 加密的图片路径 param dir string 保存图片的目录 return str 解密图片的保存路径

func (*CmdClient) DelChatRoomMembers

func (c *CmdClient) DelChatRoomMembers(roomid, wxIds string) int32

删除群成员 param roomid string 群的 id param wxids string 要删除成员的 wxid,多个用逗号分隔 return int32 1 为成功,其他失败

func (*CmdClient) Destroy

func (c *CmdClient) Destroy() error

关闭 RPC 连接 return error 错误信息

func (*CmdClient) DisableMsgReciver

func (c *CmdClient) DisableMsgReciver() int32

停止消息接收服务 return int32 0 为成功,其他失败

func (*CmdClient) DownloadAttach

func (c *CmdClient) DownloadAttach(msgid uint64, thumb, extra string) int32

下载附件 param msgid string 消息 id param thumb string 消息中的 thumb param extra string 消息中的 extra return int32 0 为成功,其他失败

func (*CmdClient) DownloadImage

func (c *CmdClient) DownloadImage(msgid uint64, extra, dir string, timeout int) (string, error)

下载图片 param msgid uint64 消息 id param extra string 消息中的 extra param dir string 存放图片的目录(目录不存在会出错) param timeout int 超时重试次数(每次重试间隔1秒) return string 成功返回存储路径

func (*CmdClient) EnableMsgReciver

func (c *CmdClient) EnableMsgReciver(pyq bool) int32

开启消息接收服务 param pyq bool 是否接收朋友圈消息 return int32 0 为成功,其他失败

func (*CmdClient) ForwardMsg

func (c *CmdClient) ForwardMsg(msgid uint64, receiver string) int32

转发消息 param msgid (uint64): 消息 id param receiver string 消息接收人,wxid 或者 roomid return int: 1 为成功,其他失败

func (*CmdClient) GetAliasInChatRoom

func (c *CmdClient) GetAliasInChatRoom(wxid, roomid string) string

获取群成员昵称 param wxid string wxid param roomid string 群的 id return string 群成员昵称

func (*CmdClient) GetAudioMsg

func (c *CmdClient) GetAudioMsg(msgid uint64, dir string) string

获取语音消息并转成 MP3 param msgid 语音消息 id param dir MP3 保存目录(目录不存在会出错) return string 成功返回存储路径;空字符串为失败

func (*CmdClient) GetAudioMsgTimeout

func (c *CmdClient) GetAudioMsgTimeout(msgid uint64, dir string, timeout int) (string, error)

获取语音消息并转成 MP3 param msgid 语音消息 id param dir MP3 保存目录(目录不存在会出错) param timeout 超时重试次数(每次重试间隔1秒) return string 成功返回存储路径;空字符串为失败

func (*CmdClient) GetChatRoomMembers

func (c *CmdClient) GetChatRoomMembers(roomid string) []*RpcContact

获取群成员列表 param roomid string 群的 id return []*RpcContact 群成员列表

func (*CmdClient) GetChatRooms

func (c *CmdClient) GetChatRooms() []*RpcContact

获取群聊列表 return []*RpcContact 群聊列表

func (*CmdClient) GetContacts

func (c *CmdClient) GetContacts() []*RpcContact

获取完整通讯录 return []*RpcContact 完整通讯录

func (*CmdClient) GetDbNames

func (c *CmdClient) GetDbNames() []string

获取所有数据库 return []string 所有数据库名

func (*CmdClient) GetDbTables

func (c *CmdClient) GetDbTables(db string) []*DbTable

获取数据库中所有表 param db string 数据库名 return []*DbTable `db` 下的所有表名及对应建表语句

func (*CmdClient) GetFriends

func (c *CmdClient) GetFriends() []*RpcContact

获取好友列表 return []*RpcContact 好友列表

func (*CmdClient) GetInfoByWxid

func (c *CmdClient) GetInfoByWxid(wxid string) *RpcContact

通过 wxid 查询微信号昵称等信息 param wxid (str): 联系人 wxid return *RpcContact

func (*CmdClient) GetMsgTypes

func (c *CmdClient) GetMsgTypes() map[int32]string

获取所有消息类型 return map[int32]string 所有消息类型

func (*CmdClient) GetOcrResult

func (c *CmdClient) GetOcrResult(extra string) (string, int32)

获取 OCR 结果 鸡肋,需要图片能自动下载;通过下载接口下载的图片无法识别 param extra string 待识别的图片路径,消息里的 extra return string OCR 结果 return int32 状态码,0 为成功,其他失败

func (*CmdClient) GetOcrResultTimeout

func (c *CmdClient) GetOcrResultTimeout(extra string, timeout int) (string, error)

获取 OCR 结果,带有超时时间 param extra string 待识别的图片路径,消息里的 extra param timeout int 超时时间 return string OCR 结果

func (*CmdClient) GetSelfInfo

func (c *CmdClient) GetSelfInfo() *UserInfo

获取登录账号个人信息 return *UserInfo 登录账号个人信息

func (*CmdClient) GetSelfWxid

func (c *CmdClient) GetSelfWxid() string

获取登录账号wxid return string 登录账号wxid

func (*CmdClient) InviteChatroomMembers

func (c *CmdClient) InviteChatroomMembers(roomid, wxids string) int32

邀请群成员 param roomid string 群的 id param wxids string 要邀请成员的 wxid, 多个用逗号`,`分隔 return int32 1 为成功,其他失败

func (*CmdClient) IsLogin

func (c *CmdClient) IsLogin() bool

检查登录状态 return bool 是否已登录

func (*CmdClient) ReceiveTransfer

func (c *CmdClient) ReceiveTransfer(wxid, tfid, taid string) int32

接收好友转账 param wxid string 转账消息里的发送人 wxid param transferid string 转账消息里的 transferid param transactionid string 转账消息里的 transactionid return int32 1 为成功,其他失败

func (*CmdClient) RefreshPyq

func (c *CmdClient) RefreshPyq(id uint64) int32

刷新朋友圈 param id int32 开始 id,0 为最新页 return int32 1 为成功,其他失败

func (*CmdClient) RefreshQrcode

func (c *CmdClient) RefreshQrcode() string

刷新登录二维码 return string 登录二维码

func (*CmdClient) RevokeMsg

func (c *CmdClient) RevokeMsg(msgid uint64) int32

撤回消息 param msgid (uint64): 消息 id return int: 1 为成功,其他失败

func (*CmdClient) SendEmotion

func (c *CmdClient) SendEmotion(path, receiver string) int32

发送表情(暂不支持) param path string 本地表情路径,如:`C:/Projs/WeChatRobot/emo.gif` param receiver string 消息接收人,wxid 或者 roomid return int32 0 为成功,其他失败

func (*CmdClient) SendFile

func (c *CmdClient) SendFile(path, receiver string) int32

发送文件,非线程安全 param path string 本地文件路径,如:`C:/Projs/WeChatRobot/README.MD` param receiver string 消息接收人,wxid 或者 roomid return int32 0 为成功,其他失败

func (*CmdClient) SendImg

func (c *CmdClient) SendImg(path, receiver string) int32

发送图片,非线程安全 param path string 图片路径,如:`C:/Projs/WeChatRobot/TEQuant.jpeg` param receiver string 消息接收人,wxid 或者 roomid return int32 0 为成功,其他失败

func (*CmdClient) SendPatMsg

func (c *CmdClient) SendPatMsg(roomid, wxid string) int32

拍一拍群友 param roomid string 群 id param wxid string 要拍的群友的 wxid return int32 1 为成功,其他失败

func (*CmdClient) SendRichText

func (c *CmdClient) SendRichText(name, account, title, digest, url, thumburl, receiver string) int32

发送富文本消息 卡片样式: |-------------------------------------| |title, 最长两行 | |(长标题, 标题短的话这行没有) | |digest, 最多三行,会占位 |--------| |digest, 最多三行,会占位 |thumburl| |digest, 最多三行,会占位 |--------| |(account logo) name | |-------------------------------------| param name string 左下显示的名字 param account string 填公众号 id 可以显示对应的头像(gh_ 开头的) param title string 标题,最多两行 param digest string 摘要,三行 param url string 点击后跳转的链接 param thumburl string 缩略图的链接 param receiver string 接收人, wxid 或者 roomid return int32 0 为成功,其他失败

func (*CmdClient) SendTxt

func (c *CmdClient) SendTxt(msg, receiver, aters string) int32

发送文本消息 param msg string 要发送的消息,\n使用 `\\\\n` (单杠);如果 @ 人的话,需要带上跟 `aters` 里数量相同的 @ param receiver string 消息接收人,wxid 或者 roomid param aters string 要 @ 的 wxid,多个用逗号分隔;`@所有人` 只需要 `notify@all` return int32 0 为成功,其他失败

func (*CmdClient) SendXml

func (c *CmdClient) SendXml(path, content, receiver string, Type int32) int32

发送 XML(暂不支持) param path string 封面图片路径 param content string xml 内容 param receiver string 消息接收人,wxid 或者 roomid param Type int32 xml 类型,如:0x21 为小程序 return int32 0 为成功,其他失败

type DbField

type DbField struct {
	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"` // 字段内容
	// contains filtered or unexported fields
}

func (*DbField) Descriptor deprecated

func (*DbField) Descriptor() ([]byte, []int)

Deprecated: Use DbField.ProtoReflect.Descriptor instead.

func (*DbField) GetColumn

func (x *DbField) GetColumn() string

func (*DbField) GetContent

func (x *DbField) GetContent() []byte

func (*DbField) GetType

func (x *DbField) GetType() int32

func (*DbField) ProtoMessage

func (*DbField) ProtoMessage()

func (*DbField) ProtoReflect

func (x *DbField) ProtoReflect() protoreflect.Message

func (*DbField) Reset

func (x *DbField) Reset()

func (*DbField) String

func (x *DbField) String() string

type DbNames

type DbNames struct {
	Names []string `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"`
	// contains filtered or unexported fields
}

func (*DbNames) Descriptor deprecated

func (*DbNames) Descriptor() ([]byte, []int)

Deprecated: Use DbNames.ProtoReflect.Descriptor instead.

func (*DbNames) GetNames

func (x *DbNames) GetNames() []string

func (*DbNames) ProtoMessage

func (*DbNames) ProtoMessage()

func (*DbNames) ProtoReflect

func (x *DbNames) ProtoReflect() protoreflect.Message

func (*DbNames) Reset

func (x *DbNames) Reset()

func (*DbNames) String

func (x *DbNames) String() string

type DbQuery

type DbQuery struct {
	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
	// contains filtered or unexported fields
}

func (*DbQuery) Descriptor deprecated

func (*DbQuery) Descriptor() ([]byte, []int)

Deprecated: Use DbQuery.ProtoReflect.Descriptor instead.

func (*DbQuery) GetDb

func (x *DbQuery) GetDb() string

func (*DbQuery) GetSql

func (x *DbQuery) GetSql() string

func (*DbQuery) ProtoMessage

func (*DbQuery) ProtoMessage()

func (*DbQuery) ProtoReflect

func (x *DbQuery) ProtoReflect() protoreflect.Message

func (*DbQuery) Reset

func (x *DbQuery) Reset()

func (*DbQuery) String

func (x *DbQuery) String() string

type DbRow

type DbRow struct {
	Fields []*DbField `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty"`
	// contains filtered or unexported fields
}

func (*DbRow) Descriptor deprecated

func (*DbRow) Descriptor() ([]byte, []int)

Deprecated: Use DbRow.ProtoReflect.Descriptor instead.

func (*DbRow) GetFields

func (x *DbRow) GetFields() []*DbField

func (*DbRow) ProtoMessage

func (*DbRow) ProtoMessage()

func (*DbRow) ProtoReflect

func (x *DbRow) ProtoReflect() protoreflect.Message

func (*DbRow) Reset

func (x *DbRow) Reset()

func (*DbRow) String

func (x *DbRow) String() string

type DbRows

type DbRows struct {
	Rows []*DbRow `protobuf:"bytes,1,rep,name=rows,proto3" json:"rows,omitempty"`
	// contains filtered or unexported fields
}

func (*DbRows) Descriptor deprecated

func (*DbRows) Descriptor() ([]byte, []int)

Deprecated: Use DbRows.ProtoReflect.Descriptor instead.

func (*DbRows) GetRows

func (x *DbRows) GetRows() []*DbRow

func (*DbRows) ProtoMessage

func (*DbRows) ProtoMessage()

func (*DbRows) ProtoReflect

func (x *DbRows) ProtoReflect() protoreflect.Message

func (*DbRows) Reset

func (x *DbRows) Reset()

func (*DbRows) String

func (x *DbRows) String() string

type DbTable

type DbTable struct {
	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
	// contains filtered or unexported fields
}

func (*DbTable) Descriptor deprecated

func (*DbTable) Descriptor() ([]byte, []int)

Deprecated: Use DbTable.ProtoReflect.Descriptor instead.

func (*DbTable) GetName

func (x *DbTable) GetName() string

func (*DbTable) GetSql

func (x *DbTable) GetSql() string

func (*DbTable) ProtoMessage

func (*DbTable) ProtoMessage()

func (*DbTable) ProtoReflect

func (x *DbTable) ProtoReflect() protoreflect.Message

func (*DbTable) Reset

func (x *DbTable) Reset()

func (*DbTable) String

func (x *DbTable) String() string

type DbTables

type DbTables struct {
	Tables []*DbTable `protobuf:"bytes,1,rep,name=tables,proto3" json:"tables,omitempty"`
	// contains filtered or unexported fields
}

func (*DbTables) Descriptor deprecated

func (*DbTables) Descriptor() ([]byte, []int)

Deprecated: Use DbTables.ProtoReflect.Descriptor instead.

func (*DbTables) GetTables

func (x *DbTables) GetTables() []*DbTable

func (*DbTables) ProtoMessage

func (*DbTables) ProtoMessage()

func (*DbTables) ProtoReflect

func (x *DbTables) ProtoReflect() protoreflect.Message

func (*DbTables) Reset

func (x *DbTables) Reset()

func (*DbTables) String

func (x *DbTables) String() string

type DecPath

type DecPath struct {
	Src string `protobuf:"bytes,1,opt,name=src,proto3" json:"src,omitempty"` // 源路径
	Dst string `protobuf:"bytes,2,opt,name=dst,proto3" json:"dst,omitempty"` // 目标路径
	// contains filtered or unexported fields
}

func (*DecPath) Descriptor deprecated

func (*DecPath) Descriptor() ([]byte, []int)

Deprecated: Use DecPath.ProtoReflect.Descriptor instead.

func (*DecPath) GetDst

func (x *DecPath) GetDst() string

func (*DecPath) GetSrc

func (x *DecPath) GetSrc() string

func (*DecPath) ProtoMessage

func (*DecPath) ProtoMessage()

func (*DecPath) ProtoReflect

func (x *DecPath) ProtoReflect() protoreflect.Message

func (*DecPath) Reset

func (x *DecPath) Reset()

func (*DecPath) String

func (x *DecPath) String() string

type Empty

type Empty struct {
	// contains filtered or unexported fields
}

func (*Empty) Descriptor deprecated

func (*Empty) Descriptor() ([]byte, []int)

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

func (x *Empty) ProtoReflect() protoreflect.Message

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

type FlexWxMsg

type FlexWxMsg struct {
	*WxMsg      // 消息原始数据
	Content any `json:"content,omitempty"`
	Xml     any `json:"xml,omitempty"`
}

func ParseWxMsg

func ParseWxMsg(msg *WxMsg) *FlexWxMsg

解析消息数据 param msg *WxMsg 消息 return *FlexWxMsg 转换后的消息

type ForwardMsg

type ForwardMsg struct {
	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
	// contains filtered or unexported fields
}

func (*ForwardMsg) Descriptor deprecated

func (*ForwardMsg) Descriptor() ([]byte, []int)

Deprecated: Use ForwardMsg.ProtoReflect.Descriptor instead.

func (*ForwardMsg) GetId

func (x *ForwardMsg) GetId() uint64

func (*ForwardMsg) GetReceiver

func (x *ForwardMsg) GetReceiver() string

func (*ForwardMsg) ProtoMessage

func (*ForwardMsg) ProtoMessage()

func (*ForwardMsg) ProtoReflect

func (x *ForwardMsg) ProtoReflect() protoreflect.Message

func (*ForwardMsg) Reset

func (x *ForwardMsg) Reset()

func (*ForwardMsg) String

func (x *ForwardMsg) String() string

type Functions

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_REFRESH_QRCODE   Functions = 87
	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
)

func (Functions) Descriptor

func (Functions) Descriptor() protoreflect.EnumDescriptor

func (Functions) Enum

func (x Functions) Enum() *Functions

func (Functions) EnumDescriptor deprecated

func (Functions) EnumDescriptor() ([]byte, []int)

Deprecated: Use Functions.Descriptor instead.

func (Functions) Number

func (x Functions) Number() protoreflect.EnumNumber

func (Functions) String

func (x Functions) String() string

func (Functions) Type

type MapConsumer

type MapConsumer map[string]MsgConsumer

type MemberMgmt

type MemberMgmt struct {
	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"`   // 要加群的人列表,逗号分隔
	// contains filtered or unexported fields
}

func (*MemberMgmt) Descriptor deprecated

func (*MemberMgmt) Descriptor() ([]byte, []int)

Deprecated: Use MemberMgmt.ProtoReflect.Descriptor instead.

func (*MemberMgmt) GetRoomid

func (x *MemberMgmt) GetRoomid() string

func (*MemberMgmt) GetWxids

func (x *MemberMgmt) GetWxids() string

func (*MemberMgmt) ProtoMessage

func (*MemberMgmt) ProtoMessage()

func (*MemberMgmt) ProtoReflect

func (x *MemberMgmt) ProtoReflect() protoreflect.Message

func (*MemberMgmt) Reset

func (x *MemberMgmt) Reset()

func (*MemberMgmt) String

func (x *MemberMgmt) String() string

type MsgClient

type MsgClient struct {
	// contains filtered or unexported fields
}

func (*MsgClient) Destroy

func (c *MsgClient) Destroy(ks ...string) error

关闭 RPC 连接 param ks 消息接收器标识,空则关闭所有 return error 错误信息

func (*MsgClient) Register

func (c *MsgClient) Register(cb MsgConsumer) (string, error)

创建消息接收器 param cb MsgConsumer 消息回调函数 return string 接收器唯一标识

type MsgConsumer

type MsgConsumer func(msg *WxMsg)

type MsgTypes

type MsgTypes struct {
	Types map[int32]string `` /* 152-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*MsgTypes) Descriptor deprecated

func (*MsgTypes) Descriptor() ([]byte, []int)

Deprecated: Use MsgTypes.ProtoReflect.Descriptor instead.

func (*MsgTypes) GetTypes

func (x *MsgTypes) GetTypes() map[int32]string

func (*MsgTypes) ProtoMessage

func (*MsgTypes) ProtoMessage()

func (*MsgTypes) ProtoReflect

func (x *MsgTypes) ProtoReflect() protoreflect.Message

func (*MsgTypes) Reset

func (x *MsgTypes) Reset()

func (*MsgTypes) String

func (x *MsgTypes) String() string

type OcrMsg

type OcrMsg struct {
	Status int32  `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` // 状态
	Result string `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"`  // 结果
	// contains filtered or unexported fields
}

func (*OcrMsg) Descriptor deprecated

func (*OcrMsg) Descriptor() ([]byte, []int)

Deprecated: Use OcrMsg.ProtoReflect.Descriptor instead.

func (*OcrMsg) GetResult

func (x *OcrMsg) GetResult() string

func (*OcrMsg) GetStatus

func (x *OcrMsg) GetStatus() int32

func (*OcrMsg) ProtoMessage

func (*OcrMsg) ProtoMessage()

func (*OcrMsg) ProtoReflect

func (x *OcrMsg) ProtoReflect() protoreflect.Message

func (*OcrMsg) Reset

func (x *OcrMsg) Reset()

func (*OcrMsg) String

func (x *OcrMsg) String() string

type PatMsg

type PatMsg struct {
	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
	// contains filtered or unexported fields
}

func (*PatMsg) Descriptor deprecated

func (*PatMsg) Descriptor() ([]byte, []int)

Deprecated: Use PatMsg.ProtoReflect.Descriptor instead.

func (*PatMsg) GetRoomid

func (x *PatMsg) GetRoomid() string

func (*PatMsg) GetWxid

func (x *PatMsg) GetWxid() string

func (*PatMsg) ProtoMessage

func (*PatMsg) ProtoMessage()

func (*PatMsg) ProtoReflect

func (x *PatMsg) ProtoReflect() protoreflect.Message

func (*PatMsg) Reset

func (x *PatMsg) Reset()

func (*PatMsg) String

func (x *PatMsg) String() string

type PathMsg

type PathMsg struct {
	Path     string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`         // 要发送的图片的路径
	Receiver string `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"` // 消息接收人
	// contains filtered or unexported fields
}

func (*PathMsg) Descriptor deprecated

func (*PathMsg) Descriptor() ([]byte, []int)

Deprecated: Use PathMsg.ProtoReflect.Descriptor instead.

func (*PathMsg) GetPath

func (x *PathMsg) GetPath() string

func (*PathMsg) GetReceiver

func (x *PathMsg) GetReceiver() string

func (*PathMsg) ProtoMessage

func (*PathMsg) ProtoMessage()

func (*PathMsg) ProtoReflect

func (x *PathMsg) ProtoReflect() protoreflect.Message

func (*PathMsg) Reset

func (x *PathMsg) Reset()

func (*PathMsg) String

func (x *PathMsg) String() string

type Request

type Request struct {
	Func Functions `protobuf:"varint,1,opt,name=func,proto3,enum=wcferry.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"`
	// contains filtered or unexported fields
}

func (*Request) Descriptor deprecated

func (*Request) Descriptor() ([]byte, []int)

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetAm

func (x *Request) GetAm() *AudioMsg

func (*Request) GetAtt

func (x *Request) GetAtt() *AttachMsg

func (*Request) GetDec

func (x *Request) GetDec() *DecPath

func (*Request) GetEmpty

func (x *Request) GetEmpty() *Empty

func (*Request) GetFile

func (x *Request) GetFile() *PathMsg

func (*Request) GetFlag

func (x *Request) GetFlag() bool

func (*Request) GetFm

func (x *Request) GetFm() *ForwardMsg

func (*Request) GetFunc

func (x *Request) GetFunc() Functions

func (*Request) GetM

func (x *Request) GetM() *MemberMgmt

func (*Request) GetMsg

func (m *Request) GetMsg() isRequest_Msg

func (*Request) GetPm

func (x *Request) GetPm() *PatMsg

func (*Request) GetQuery

func (x *Request) GetQuery() *DbQuery

func (*Request) GetRt

func (x *Request) GetRt() *RichText

func (*Request) GetStr

func (x *Request) GetStr() string

func (*Request) GetTf

func (x *Request) GetTf() *Transfer

func (*Request) GetTxt

func (x *Request) GetTxt() *TextMsg

func (*Request) GetUi64

func (x *Request) GetUi64() uint64

func (*Request) GetV

func (x *Request) GetV() *Verification

func (*Request) GetXml

func (x *Request) GetXml() *XmlMsg

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

func (x *Request) ProtoReflect() protoreflect.Message

func (*Request) Reset

func (x *Request) Reset()

func (*Request) String

func (x *Request) String() string

type Request_Am

type Request_Am struct {
	Am *AudioMsg `protobuf:"bytes,15,opt,name=am,proto3,oneof"` // 保存语音参数结构
}

type Request_Att

type Request_Att struct {
	Att *AttachMsg `protobuf:"bytes,14,opt,name=att,proto3,oneof"` // 下载图片、视频、文件参数结构
}

type Request_Dec

type Request_Dec struct {
	Dec *DecPath `protobuf:"bytes,10,opt,name=dec,proto3,oneof"` // 解密图片参数结构
}

type Request_Empty

type Request_Empty struct {
	Empty *Empty `protobuf:"bytes,2,opt,name=empty,proto3,oneof"` // 无参数
}

type Request_File

type Request_File struct {
	File *PathMsg `protobuf:"bytes,5,opt,name=file,proto3,oneof"` // 发送图片、文件消息结构
}

type Request_Flag

type Request_Flag struct {
	Flag bool `protobuf:"varint,13,opt,name=flag,proto3,oneof"` // 布尔值
}

type Request_Fm

type Request_Fm struct {
	Fm *ForwardMsg `protobuf:"bytes,18,opt,name=fm,proto3,oneof"` // 转发消息参数结构
}

type Request_M

type Request_M struct {
	M *MemberMgmt `protobuf:"bytes,8,opt,name=m,proto3,oneof"` // 群成员管理,添加、删除、邀请
}

type Request_Pm

type Request_Pm struct {
	Pm *PatMsg `protobuf:"bytes,17,opt,name=pm,proto3,oneof"` // 发送拍一拍参数结构
}

type Request_Query

type Request_Query struct {
	Query *DbQuery `protobuf:"bytes,6,opt,name=query,proto3,oneof"` // 数据库查询参数结构
}

type Request_Rt

type Request_Rt struct {
	Rt *RichText `protobuf:"bytes,16,opt,name=rt,proto3,oneof"` // 发送卡片消息结构
}

type Request_Str

type Request_Str struct {
	Str string `protobuf:"bytes,3,opt,name=str,proto3,oneof"` // 字符串
}

type Request_Tf

type Request_Tf struct {
	Tf *Transfer `protobuf:"bytes,11,opt,name=tf,proto3,oneof"` // 接收转账参数结构
}

type Request_Txt

type Request_Txt struct {
	Txt *TextMsg `protobuf:"bytes,4,opt,name=txt,proto3,oneof"` // 发送文本消息结构
}

type Request_Ui64

type Request_Ui64 struct {
	Ui64 uint64 `protobuf:"varint,12,opt,name=ui64,proto3,oneof"` // 64 位整数,通用
}

type Request_V

type Request_V struct {
	V *Verification `protobuf:"bytes,7,opt,name=v,proto3,oneof"` // 通过好友验证参数结构
}

type Request_Xml

type Request_Xml struct {
	Xml *XmlMsg `protobuf:"bytes,9,opt,name=xml,proto3,oneof"` // XML参数结构
}

type Response

type Response struct {
	Func Functions `protobuf:"varint,1,opt,name=func,proto3,enum=wcferry.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"`
	// contains filtered or unexported fields
}

func (*Response) Descriptor deprecated

func (*Response) Descriptor() ([]byte, []int)

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetContacts

func (x *Response) GetContacts() *RpcContacts

func (*Response) GetDbs

func (x *Response) GetDbs() *DbNames

func (*Response) GetFunc

func (x *Response) GetFunc() Functions

func (*Response) GetMsg

func (m *Response) GetMsg() isResponse_Msg

func (*Response) GetOcr

func (x *Response) GetOcr() *OcrMsg

func (*Response) GetRows

func (x *Response) GetRows() *DbRows

func (*Response) GetStatus

func (x *Response) GetStatus() int32

func (*Response) GetStr

func (x *Response) GetStr() string

func (*Response) GetTables

func (x *Response) GetTables() *DbTables

func (*Response) GetTypes

func (x *Response) GetTypes() *MsgTypes

func (*Response) GetUi

func (x *Response) GetUi() *UserInfo

func (*Response) GetWxmsg

func (x *Response) GetWxmsg() *WxMsg

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

func (x *Response) ProtoReflect() protoreflect.Message

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

type Response_Contacts

type Response_Contacts struct {
	Contacts *RpcContacts `protobuf:"bytes,6,opt,name=contacts,proto3,oneof"` // 联系人
}

type Response_Dbs

type Response_Dbs struct {
	Dbs *DbNames `protobuf:"bytes,7,opt,name=dbs,proto3,oneof"` // 数据库列表
}

type Response_Ocr

type Response_Ocr struct {
	Ocr *OcrMsg `protobuf:"bytes,11,opt,name=ocr,proto3,oneof"` // OCR 结果
}

type Response_Rows

type Response_Rows struct {
	Rows *DbRows `protobuf:"bytes,9,opt,name=rows,proto3,oneof"` // 行列表
}

type Response_Status

type Response_Status struct {
	Status int32 `protobuf:"varint,2,opt,name=status,proto3,oneof"` // Int 状态,通用
}

type Response_Str

type Response_Str struct {
	Str string `protobuf:"bytes,3,opt,name=str,proto3,oneof"` // 字符串
}

type Response_Tables

type Response_Tables struct {
	Tables *DbTables `protobuf:"bytes,8,opt,name=tables,proto3,oneof"` // 表列表
}

type Response_Types

type Response_Types struct {
	Types *MsgTypes `protobuf:"bytes,5,opt,name=types,proto3,oneof"` // 消息类型
}

type Response_Ui

type Response_Ui struct {
	Ui *UserInfo `protobuf:"bytes,10,opt,name=ui,proto3,oneof"` // 个人信息
}

type Response_Wxmsg

type Response_Wxmsg struct {
	Wxmsg *WxMsg `protobuf:"bytes,4,opt,name=wxmsg,proto3,oneof"` // 微信消息
}

type RichText

type RichText struct {
	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"` // 接收人
	// contains filtered or unexported fields
}

func (*RichText) Descriptor deprecated

func (*RichText) Descriptor() ([]byte, []int)

Deprecated: Use RichText.ProtoReflect.Descriptor instead.

func (*RichText) GetAccount

func (x *RichText) GetAccount() string

func (*RichText) GetDigest

func (x *RichText) GetDigest() string

func (*RichText) GetName

func (x *RichText) GetName() string

func (*RichText) GetReceiver

func (x *RichText) GetReceiver() string

func (*RichText) GetThumburl

func (x *RichText) GetThumburl() string

func (*RichText) GetTitle

func (x *RichText) GetTitle() string

func (*RichText) GetUrl

func (x *RichText) GetUrl() string

func (*RichText) ProtoMessage

func (*RichText) ProtoMessage()

func (*RichText) ProtoReflect

func (x *RichText) ProtoReflect() protoreflect.Message

func (*RichText) Reset

func (x *RichText) Reset()

func (*RichText) String

func (x *RichText) String() string

type RoomData

type RoomData struct {
	Members      []*RoomData_RoomMember `protobuf:"bytes,1,rep,name=members,proto3" json:"members,omitempty"`
	Field_2      int32                  `protobuf:"varint,2,opt,name=field_2,json=field2,proto3" json:"field_2,omitempty"`
	Field_3      int32                  `protobuf:"varint,3,opt,name=field_3,json=field3,proto3" json:"field_3,omitempty"`
	Field_4      int32                  `protobuf:"varint,4,opt,name=field_4,json=field4,proto3" json:"field_4,omitempty"`
	RoomCapacity int32                  `protobuf:"varint,5,opt,name=room_capacity,json=roomCapacity,proto3" json:"room_capacity,omitempty"`
	Field_6      int32                  `protobuf:"varint,6,opt,name=field_6,json=field6,proto3" json:"field_6,omitempty"`
	Field_7      int64                  `protobuf:"varint,7,opt,name=field_7,json=field7,proto3" json:"field_7,omitempty"`
	Field_8      int64                  `protobuf:"varint,8,opt,name=field_8,json=field8,proto3" json:"field_8,omitempty"`
	// contains filtered or unexported fields
}

func (*RoomData) Descriptor deprecated

func (*RoomData) Descriptor() ([]byte, []int)

Deprecated: Use RoomData.ProtoReflect.Descriptor instead.

func (*RoomData) GetField_2

func (x *RoomData) GetField_2() int32

func (*RoomData) GetField_3

func (x *RoomData) GetField_3() int32

func (*RoomData) GetField_4

func (x *RoomData) GetField_4() int32

func (*RoomData) GetField_6

func (x *RoomData) GetField_6() int32

func (*RoomData) GetField_7

func (x *RoomData) GetField_7() int64

func (*RoomData) GetField_8

func (x *RoomData) GetField_8() int64

func (*RoomData) GetMembers

func (x *RoomData) GetMembers() []*RoomData_RoomMember

func (*RoomData) GetRoomCapacity

func (x *RoomData) GetRoomCapacity() int32

func (*RoomData) ProtoMessage

func (*RoomData) ProtoMessage()

func (*RoomData) ProtoReflect

func (x *RoomData) ProtoReflect() protoreflect.Message

func (*RoomData) Reset

func (x *RoomData) Reset()

func (*RoomData) String

func (x *RoomData) String() string

type RoomData_RoomMember

type RoomData_RoomMember struct {
	Wxid  string `protobuf:"bytes,1,opt,name=wxid,proto3" json:"wxid,omitempty"`
	Name  string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	State int32  `protobuf:"varint,3,opt,name=state,proto3" json:"state,omitempty"`
	// contains filtered or unexported fields
}

func (*RoomData_RoomMember) Descriptor deprecated

func (*RoomData_RoomMember) Descriptor() ([]byte, []int)

Deprecated: Use RoomData_RoomMember.ProtoReflect.Descriptor instead.

func (*RoomData_RoomMember) GetName

func (x *RoomData_RoomMember) GetName() string

func (*RoomData_RoomMember) GetState

func (x *RoomData_RoomMember) GetState() int32

func (*RoomData_RoomMember) GetWxid

func (x *RoomData_RoomMember) GetWxid() string

func (*RoomData_RoomMember) ProtoMessage

func (*RoomData_RoomMember) ProtoMessage()

func (*RoomData_RoomMember) ProtoReflect

func (x *RoomData_RoomMember) ProtoReflect() protoreflect.Message

func (*RoomData_RoomMember) Reset

func (x *RoomData_RoomMember) Reset()

func (*RoomData_RoomMember) String

func (x *RoomData_RoomMember) String() string

type RpcContact

type RpcContact struct {
	Wxid     string `protobuf:"bytes,1,opt,name=wxid,proto3" json:"wxid,omitempty"`         // 微信 id
	Code     string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`         // 微信号
	Remark   string `protobuf:"bytes,3,opt,name=remark,proto3" json:"remark,omitempty"`     // 备注
	Name     string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`         // 微信昵称
	Country  string `protobuf:"bytes,5,opt,name=country,proto3" json:"country,omitempty"`   // 国家
	Province string `protobuf:"bytes,6,opt,name=province,proto3" json:"province,omitempty"` // 省/州
	City     string `protobuf:"bytes,7,opt,name=city,proto3" json:"city,omitempty"`         // 城市
	Gender   int32  `protobuf:"varint,8,opt,name=gender,proto3" json:"gender,omitempty"`    // 性别
	// contains filtered or unexported fields
}

func (*RpcContact) Descriptor deprecated

func (*RpcContact) Descriptor() ([]byte, []int)

Deprecated: Use RpcContact.ProtoReflect.Descriptor instead.

func (*RpcContact) GetCity

func (x *RpcContact) GetCity() string

func (*RpcContact) GetCode

func (x *RpcContact) GetCode() string

func (*RpcContact) GetCountry

func (x *RpcContact) GetCountry() string

func (*RpcContact) GetGender

func (x *RpcContact) GetGender() int32

func (*RpcContact) GetName

func (x *RpcContact) GetName() string

func (*RpcContact) GetProvince

func (x *RpcContact) GetProvince() string

func (*RpcContact) GetRemark

func (x *RpcContact) GetRemark() string

func (*RpcContact) GetWxid

func (x *RpcContact) GetWxid() string

func (*RpcContact) ProtoMessage

func (*RpcContact) ProtoMessage()

func (*RpcContact) ProtoReflect

func (x *RpcContact) ProtoReflect() protoreflect.Message

func (*RpcContact) Reset

func (x *RpcContact) Reset()

func (*RpcContact) String

func (x *RpcContact) String() string

type RpcContacts

type RpcContacts struct {
	Contacts []*RpcContact `protobuf:"bytes,1,rep,name=contacts,proto3" json:"contacts,omitempty"`
	// contains filtered or unexported fields
}

func (*RpcContacts) Descriptor deprecated

func (*RpcContacts) Descriptor() ([]byte, []int)

Deprecated: Use RpcContacts.ProtoReflect.Descriptor instead.

func (*RpcContacts) GetContacts

func (x *RpcContacts) GetContacts() []*RpcContact

func (*RpcContacts) ProtoMessage

func (*RpcContacts) ProtoMessage()

func (*RpcContacts) ProtoReflect

func (x *RpcContacts) ProtoReflect() protoreflect.Message

func (*RpcContacts) Reset

func (x *RpcContacts) Reset()

func (*RpcContacts) String

func (x *RpcContacts) String() string

type TextMsg

type TextMsg struct {
	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"`       // 要@的人列表,逗号分隔
	// contains filtered or unexported fields
}

func (*TextMsg) Descriptor deprecated

func (*TextMsg) Descriptor() ([]byte, []int)

Deprecated: Use TextMsg.ProtoReflect.Descriptor instead.

func (*TextMsg) GetAters

func (x *TextMsg) GetAters() string

func (*TextMsg) GetMsg

func (x *TextMsg) GetMsg() string

func (*TextMsg) GetReceiver

func (x *TextMsg) GetReceiver() string

func (*TextMsg) ProtoMessage

func (*TextMsg) ProtoMessage()

func (*TextMsg) ProtoReflect

func (x *TextMsg) ProtoReflect() protoreflect.Message

func (*TextMsg) Reset

func (x *TextMsg) Reset()

func (*TextMsg) String

func (x *TextMsg) String() string

type Transfer

type Transfer struct {
	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
	// contains filtered or unexported fields
}

func (*Transfer) Descriptor deprecated

func (*Transfer) Descriptor() ([]byte, []int)

Deprecated: Use Transfer.ProtoReflect.Descriptor instead.

func (*Transfer) GetTaid

func (x *Transfer) GetTaid() string

func (*Transfer) GetTfid

func (x *Transfer) GetTfid() string

func (*Transfer) GetWxid

func (x *Transfer) GetWxid() string

func (*Transfer) ProtoMessage

func (*Transfer) ProtoMessage()

func (*Transfer) ProtoReflect

func (x *Transfer) ProtoReflect() protoreflect.Message

func (*Transfer) Reset

func (x *Transfer) Reset()

func (*Transfer) String

func (x *Transfer) String() string

type UserInfo

type UserInfo struct {
	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"`     // 文件/图片等父路径
	// contains filtered or unexported fields
}

func (*UserInfo) Descriptor deprecated

func (*UserInfo) Descriptor() ([]byte, []int)

Deprecated: Use UserInfo.ProtoReflect.Descriptor instead.

func (*UserInfo) GetHome

func (x *UserInfo) GetHome() string

func (*UserInfo) GetMobile

func (x *UserInfo) GetMobile() string

func (*UserInfo) GetName

func (x *UserInfo) GetName() string

func (*UserInfo) GetWxid

func (x *UserInfo) GetWxid() string

func (*UserInfo) ProtoMessage

func (*UserInfo) ProtoMessage()

func (*UserInfo) ProtoReflect

func (x *UserInfo) ProtoReflect() protoreflect.Message

func (*UserInfo) Reset

func (x *UserInfo) Reset()

func (*UserInfo) String

func (x *UserInfo) String() string

type Verification

type Verification struct {
	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 扫码
	// contains filtered or unexported fields
}

func (*Verification) Descriptor deprecated

func (*Verification) Descriptor() ([]byte, []int)

Deprecated: Use Verification.ProtoReflect.Descriptor instead.

func (*Verification) GetScene

func (x *Verification) GetScene() int32

func (*Verification) GetV3

func (x *Verification) GetV3() string

func (*Verification) GetV4

func (x *Verification) GetV4() string

func (*Verification) ProtoMessage

func (*Verification) ProtoMessage()

func (*Verification) ProtoReflect

func (x *Verification) ProtoReflect() protoreflect.Message

func (*Verification) Reset

func (x *Verification) Reset()

func (*Verification) String

func (x *Verification) String() string

type WxMsg

type WxMsg struct {
	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
	// contains filtered or unexported fields
}

func (*WxMsg) Descriptor deprecated

func (*WxMsg) Descriptor() ([]byte, []int)

Deprecated: Use WxMsg.ProtoReflect.Descriptor instead.

func (*WxMsg) GetContent

func (x *WxMsg) GetContent() string

func (*WxMsg) GetExtra

func (x *WxMsg) GetExtra() string

func (*WxMsg) GetId

func (x *WxMsg) GetId() uint64

func (*WxMsg) GetIsGroup

func (x *WxMsg) GetIsGroup() bool

func (*WxMsg) GetIsSelf

func (x *WxMsg) GetIsSelf() bool

func (*WxMsg) GetRoomid

func (x *WxMsg) GetRoomid() string

func (*WxMsg) GetSender

func (x *WxMsg) GetSender() string

func (*WxMsg) GetSign

func (x *WxMsg) GetSign() string

func (*WxMsg) GetThumb

func (x *WxMsg) GetThumb() string

func (*WxMsg) GetTs

func (x *WxMsg) GetTs() uint32

func (*WxMsg) GetType

func (x *WxMsg) GetType() uint32

func (*WxMsg) GetXml

func (x *WxMsg) GetXml() string

func (*WxMsg) ProtoMessage

func (*WxMsg) ProtoMessage()

func (*WxMsg) ProtoReflect

func (x *WxMsg) ProtoReflect() protoreflect.Message

func (*WxMsg) Reset

func (x *WxMsg) Reset()

func (*WxMsg) String

func (x *WxMsg) String() string

type XmlMsg

type XmlMsg struct {
	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"`        // 消息类型
	// contains filtered or unexported fields
}

func (*XmlMsg) Descriptor deprecated

func (*XmlMsg) Descriptor() ([]byte, []int)

Deprecated: Use XmlMsg.ProtoReflect.Descriptor instead.

func (*XmlMsg) GetContent

func (x *XmlMsg) GetContent() string

func (*XmlMsg) GetPath

func (x *XmlMsg) GetPath() string

func (*XmlMsg) GetReceiver

func (x *XmlMsg) GetReceiver() string

func (*XmlMsg) GetType

func (x *XmlMsg) GetType() int32

func (*XmlMsg) ProtoMessage

func (*XmlMsg) ProtoMessage()

func (*XmlMsg) ProtoReflect

func (x *XmlMsg) ProtoReflect() protoreflect.Message

func (*XmlMsg) Reset

func (x *XmlMsg) Reset()

func (*XmlMsg) String

func (x *XmlMsg) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL