wcf

package
v0.0.0-...-46c0859 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

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",
		32: "FUNC_SEND_TXT",
		33: "FUNC_SEND_IMG",
		34: "FUNC_SEND_FILE",
		35: "FUNC_SEND_XML",
		36: "FUNC_SEND_EMOTION",
		48: "FUNC_ENABLE_RECV_TXT",
		64: "FUNC_DISABLE_RECV_TXT",
		80: "FUNC_EXEC_DB_QUERY",
		81: "FUNC_ACCEPT_FRIEND",
		82: "FUNC_ADD_ROOM_MEMBERS",
		83: "FUNC_RECV_TRANSFER",
		96: "FUNC_DECRYPT_IMAGE",
	}
	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_SEND_TXT":         32,
		"FUNC_SEND_IMG":         33,
		"FUNC_SEND_FILE":        34,
		"FUNC_SEND_XML":         35,
		"FUNC_SEND_EMOTION":     36,
		"FUNC_ENABLE_RECV_TXT":  48,
		"FUNC_DISABLE_RECV_TXT": 64,
		"FUNC_EXEC_DB_QUERY":    80,
		"FUNC_ACCEPT_FRIEND":    81,
		"FUNC_ADD_ROOM_MEMBERS": 82,
		"FUNC_RECV_TRANSFER":    83,
		"FUNC_DECRYPT_IMAGE":    96,
	}
)

Enum value maps for Functions.

View Source
var File_proto_wcf_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AddMembers

type AddMembers 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 (*AddMembers) Descriptor deprecated

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

Deprecated: Use AddMembers.ProtoReflect.Descriptor instead.

func (*AddMembers) GetRoomid

func (x *AddMembers) GetRoomid() string

func (*AddMembers) GetWxids

func (x *AddMembers) GetWxids() string

func (*AddMembers) ProtoMessage

func (*AddMembers) ProtoMessage()

func (*AddMembers) ProtoReflect

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

func (*AddMembers) Reset

func (x *AddMembers) Reset()

func (*AddMembers) String

func (x *AddMembers) String() string

type Client

type Client struct {
	RecvTxt bool
	// contains filtered or unexported fields
}

func NewWCF

func NewWCF(add string) (*Client, error)

func (*Client) AcceptFriend

func (c *Client) AcceptFriend(v3, v4 string, scene int32) int32

AcceptFriend 接收好友请求

  • 接收好友请求 *
  • @param v3 xml.attrib["encryptusername"] // 加密的用户名
  • @param v4 xml.attrib["ticket"] // Ticket
  • @param scene 17 // 添加方式:17 名片,30 扫码

func (*Client) AddChatRoomMembers

func (c *Client) AddChatRoomMembers(roomId string, wxIds []string) int32

func (*Client) AddChatroomMembers

func (c *Client) AddChatroomMembers(roomID, wxIDs string) int32

func (*Client) Close

func (c *Client) Close() error

func (*Client) DecryptImage

func (c *Client) DecryptImage(src, dst string) int32

DecryptImage 解密图片 加密路径,解密路径

func (*Client) DisableRecvTxt

func (c *Client) DisableRecvTxt() int32

func (*Client) EnableRecvTxt

func (c *Client) EnableRecvTxt() int32

func (*Client) ExecDBQuery

func (c *Client) ExecDBQuery(db, sql string) []*DbRow

func (*Client) GetContacts

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

func (*Client) GetDBNames

func (c *Client) GetDBNames() []string

func (*Client) GetDBTables

func (c *Client) GetDBTables(tab string) []*DbTable

func (*Client) GetMsgTypes

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

func (*Client) GetSelfWXID

func (c *Client) GetSelfWXID() string

func (*Client) GetUserInfo

func (c *Client) GetUserInfo() *UserInfo

func (*Client) IsLogin

func (c *Client) IsLogin() bool

func (*Client) OnMSG

func (c *Client) OnMSG(f func(msg *WxMsg)) error

func (*Client) ReceiveTransfer

func (c *Client) ReceiveTransfer(transferId, wxID string) int32

ReceiveTransfer 接收转账

func (*Client) Recv

func (c *Client) Recv() (*Response, error)

func (*Client) SendFile

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

SendFile path 绝对路径

func (*Client) SendIMG

func (c *Client) SendIMG(path string, receiver string) int32

SendIMG path 绝对路径

func (*Client) SendTxt

func (c *Client) SendTxt(msg string, receiver string, ates []string) int32

SendTxt @param msg: 消息内容(如果是 @ 消息则需要有跟 @ 的人数量相同的 @) @param receiver: 消息接收人,私聊为 wxid(wxid_xxxxxxxxxxxxxx),群聊为roomid(xxxxxxxxxx@chatroom) @param ates: 群聊时要 @ 的人(私聊时为空字符串),多个用逗号分隔。@所有人 用notify@all(必须是群主或者管理员才有权限)

func (*Client) SendXml

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

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 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_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_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_ADD_ROOM_MEMBERS Functions = 82
	Functions_FUNC_RECV_TRANSFER    Functions = 83
	Functions_FUNC_DECRYPT_IMAGE    Functions = 96
)

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 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 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=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
	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) GetDec

func (x *Request) GetDec() *DecPath

func (*Request) GetEmpty

func (x *Request) GetEmpty() *Empty

func (*Request) GetFile

func (x *Request) GetFile() *PathMsg

func (*Request) GetFunc

func (x *Request) GetFunc() Functions

func (*Request) GetM

func (x *Request) GetM() *AddMembers

func (*Request) GetMsg

func (m *Request) GetMsg() isRequest_Msg

func (*Request) GetQuery

func (x *Request) GetQuery() *DbQuery

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) 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_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_M

type Request_M struct {
	M *AddMembers `protobuf:"bytes,8,opt,name=m,proto3,oneof"`
}

type Request_Query

type Request_Query struct {
	Query *DbQuery `protobuf:"bytes,6,opt,name=query,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_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"`
}

type Response

type Response struct {
	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
	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) 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_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 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"` // 转账人
	Tid  string `protobuf:"bytes,2,opt,name=tid,proto3" json:"tid,omitempty"`   // 转账id transferid
	// contains filtered or unexported fields
}

func (*Transfer) Descriptor deprecated

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

Deprecated: Use Transfer.ProtoReflect.Descriptor instead.

func (*Transfer) GetTid

func (x *Transfer) GetTid() 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"` // 是否群消息
	Type    int32  `protobuf:"varint,3,opt,name=type,proto3" json:"type,omitempty"`                      // 消息类型
	Id      string `protobuf:"bytes,4,opt,name=id,proto3" json:"id,omitempty"`                           // 消息 id
	Xml     string `protobuf:"bytes,5,opt,name=xml,proto3" json:"xml,omitempty"`                         // 消息 xml
	Sender  string `protobuf:"bytes,6,opt,name=sender,proto3" json:"sender,omitempty"`                   // 消息发送者
	Roomid  string `protobuf:"bytes,7,opt,name=roomid,proto3" json:"roomid,omitempty"`                   // 群 id(如果是群消息的话)
	Content string `protobuf:"bytes,8,opt,name=content,proto3" json:"content,omitempty"`                 // 消息内容
	Thumb   string `protobuf:"bytes,9,opt,name=thumb,proto3" json:"thumb,omitempty"`                     // 缩略图
	Extra   string `protobuf:"bytes,10,opt,name=extra,proto3" json:"extra,omitempty"`                    // 附加内容
	// 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() string

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) GetThumb

func (x *WxMsg) GetThumb() string

func (*WxMsg) GetType

func (x *WxMsg) GetType() int32

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

Jump to

Keyboard shortcuts

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