mirror of
https://github.com/yincongcyincong/wechat_chatter.git
synced 2026-07-15 10:26:52 +08:00
496 lines
15 KiB
Go
496 lines
15 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||
// versions:
|
||
// protoc-gen-go v1.36.11
|
||
// protoc v3.5.1
|
||
// source: send_app_msg.proto
|
||
|
||
package wxproto
|
||
|
||
import (
|
||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||
reflect "reflect"
|
||
sync "sync"
|
||
unsafe "unsafe"
|
||
)
|
||
|
||
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)
|
||
)
|
||
|
||
// /cgi-bin/micromsg-bin/sendappmsg 请求
|
||
// 字段号严格对齐 wechat7016 SendAppMsgRequest,
|
||
// 但 baseRequest 使用本项目 macOS 风格的 ReplyMsgHeader。
|
||
type SendAppMsgReq struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
BaseRequest *ReplyMsgHeader `protobuf:"bytes,1,opt,name=baseRequest" json:"baseRequest,omitempty"`
|
||
Msg *AppMsgBody `protobuf:"bytes,2,opt,name=msg" json:"msg,omitempty"`
|
||
CommentUrl *string `protobuf:"bytes,3,opt,name=commentUrl" json:"commentUrl,omitempty"`
|
||
ReqTime *uint32 `protobuf:"varint,4,opt,name=reqTime" json:"reqTime,omitempty"`
|
||
Md5 *string `protobuf:"bytes,5,opt,name=md5" json:"md5,omitempty"`
|
||
FileType *uint32 `protobuf:"varint,6,opt,name=fileType" json:"fileType,omitempty"`
|
||
Signature *string `protobuf:"bytes,7,opt,name=signature" json:"signature,omitempty"`
|
||
FromSence *string `protobuf:"bytes,8,opt,name=fromSence" json:"fromSence,omitempty"`
|
||
HitMd5 *uint32 `protobuf:"varint,9,opt,name=hitMd5" json:"hitMd5,omitempty"`
|
||
Crc32 *uint32 `protobuf:"varint,10,opt,name=crc32" json:"crc32,omitempty"`
|
||
MsgForwardType *uint32 `protobuf:"varint,11,opt,name=msgForwardType" json:"msgForwardType,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *SendAppMsgReq) Reset() {
|
||
*x = SendAppMsgReq{}
|
||
mi := &file_send_app_msg_proto_msgTypes[0]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *SendAppMsgReq) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*SendAppMsgReq) ProtoMessage() {}
|
||
|
||
func (x *SendAppMsgReq) ProtoReflect() protoreflect.Message {
|
||
mi := &file_send_app_msg_proto_msgTypes[0]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use SendAppMsgReq.ProtoReflect.Descriptor instead.
|
||
func (*SendAppMsgReq) Descriptor() ([]byte, []int) {
|
||
return file_send_app_msg_proto_rawDescGZIP(), []int{0}
|
||
}
|
||
|
||
func (x *SendAppMsgReq) GetBaseRequest() *ReplyMsgHeader {
|
||
if x != nil {
|
||
return x.BaseRequest
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *SendAppMsgReq) GetMsg() *AppMsgBody {
|
||
if x != nil {
|
||
return x.Msg
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *SendAppMsgReq) GetCommentUrl() string {
|
||
if x != nil && x.CommentUrl != nil {
|
||
return *x.CommentUrl
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *SendAppMsgReq) GetReqTime() uint32 {
|
||
if x != nil && x.ReqTime != nil {
|
||
return *x.ReqTime
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *SendAppMsgReq) GetMd5() string {
|
||
if x != nil && x.Md5 != nil {
|
||
return *x.Md5
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *SendAppMsgReq) GetFileType() uint32 {
|
||
if x != nil && x.FileType != nil {
|
||
return *x.FileType
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *SendAppMsgReq) GetSignature() string {
|
||
if x != nil && x.Signature != nil {
|
||
return *x.Signature
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *SendAppMsgReq) GetFromSence() string {
|
||
if x != nil && x.FromSence != nil {
|
||
return *x.FromSence
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *SendAppMsgReq) GetHitMd5() uint32 {
|
||
if x != nil && x.HitMd5 != nil {
|
||
return *x.HitMd5
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *SendAppMsgReq) GetCrc32() uint32 {
|
||
if x != nil && x.Crc32 != nil {
|
||
return *x.Crc32
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *SendAppMsgReq) GetMsgForwardType() uint32 {
|
||
if x != nil && x.MsgForwardType != nil {
|
||
return *x.MsgForwardType
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// AppMsg 消息体 (wechat7016 AppMsg)
|
||
type AppMsgBody struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
FromUserName *string `protobuf:"bytes,1,opt,name=fromUserName" json:"fromUserName,omitempty"`
|
||
AppId *string `protobuf:"bytes,2,opt,name=appId" json:"appId,omitempty"`
|
||
SdkVersion *uint32 `protobuf:"varint,3,opt,name=sdkVersion" json:"sdkVersion,omitempty"`
|
||
ToUserName *string `protobuf:"bytes,4,opt,name=toUserName" json:"toUserName,omitempty"`
|
||
Type *uint32 `protobuf:"varint,5,opt,name=type" json:"type,omitempty"` // 6 = 文件
|
||
Content *string `protobuf:"bytes,6,opt,name=content" json:"content,omitempty"` // appmsg XML
|
||
CreateTime *int64 `protobuf:"varint,7,opt,name=createTime" json:"createTime,omitempty"`
|
||
ClientMsgId *string `protobuf:"bytes,8,opt,name=clientMsgId" json:"clientMsgId,omitempty"`
|
||
MsgSource *string `protobuf:"bytes,12,opt,name=msgSource" json:"msgSource,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *AppMsgBody) Reset() {
|
||
*x = AppMsgBody{}
|
||
mi := &file_send_app_msg_proto_msgTypes[1]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *AppMsgBody) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*AppMsgBody) ProtoMessage() {}
|
||
|
||
func (x *AppMsgBody) ProtoReflect() protoreflect.Message {
|
||
mi := &file_send_app_msg_proto_msgTypes[1]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use AppMsgBody.ProtoReflect.Descriptor instead.
|
||
func (*AppMsgBody) Descriptor() ([]byte, []int) {
|
||
return file_send_app_msg_proto_rawDescGZIP(), []int{1}
|
||
}
|
||
|
||
func (x *AppMsgBody) GetFromUserName() string {
|
||
if x != nil && x.FromUserName != nil {
|
||
return *x.FromUserName
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *AppMsgBody) GetAppId() string {
|
||
if x != nil && x.AppId != nil {
|
||
return *x.AppId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *AppMsgBody) GetSdkVersion() uint32 {
|
||
if x != nil && x.SdkVersion != nil {
|
||
return *x.SdkVersion
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *AppMsgBody) GetToUserName() string {
|
||
if x != nil && x.ToUserName != nil {
|
||
return *x.ToUserName
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *AppMsgBody) GetType() uint32 {
|
||
if x != nil && x.Type != nil {
|
||
return *x.Type
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *AppMsgBody) GetContent() string {
|
||
if x != nil && x.Content != nil {
|
||
return *x.Content
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *AppMsgBody) GetCreateTime() int64 {
|
||
if x != nil && x.CreateTime != nil {
|
||
return *x.CreateTime
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *AppMsgBody) GetClientMsgId() string {
|
||
if x != nil && x.ClientMsgId != nil {
|
||
return *x.ClientMsgId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *AppMsgBody) GetMsgSource() string {
|
||
if x != nil && x.MsgSource != nil {
|
||
return *x.MsgSource
|
||
}
|
||
return ""
|
||
}
|
||
|
||
// /cgi-bin/micromsg-bin/sendappmsg 响应
|
||
type SendAppMsgResp struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
BaseResponse *BaseResponse `protobuf:"bytes,1,opt,name=baseResponse" json:"baseResponse,omitempty"`
|
||
AppId *string `protobuf:"bytes,2,opt,name=appId" json:"appId,omitempty"`
|
||
FromUserName *string `protobuf:"bytes,3,opt,name=fromUserName" json:"fromUserName,omitempty"`
|
||
ToUserName *string `protobuf:"bytes,4,opt,name=toUserName" json:"toUserName,omitempty"`
|
||
MsgId *int32 `protobuf:"varint,5,opt,name=msgId" json:"msgId,omitempty"`
|
||
ClientMsgId *string `protobuf:"bytes,6,opt,name=clientMsgId" json:"clientMsgId,omitempty"`
|
||
CreateTime *int32 `protobuf:"varint,7,opt,name=createTime" json:"createTime,omitempty"`
|
||
Type *int32 `protobuf:"varint,8,opt,name=type" json:"type,omitempty"`
|
||
NewMsgId *int64 `protobuf:"varint,9,opt,name=newMsgId" json:"newMsgId,omitempty"`
|
||
Aeskey *string `protobuf:"bytes,10,opt,name=aeskey" json:"aeskey,omitempty"`
|
||
MsgSource *string `protobuf:"bytes,11,opt,name=msgSource" json:"msgSource,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *SendAppMsgResp) Reset() {
|
||
*x = SendAppMsgResp{}
|
||
mi := &file_send_app_msg_proto_msgTypes[2]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *SendAppMsgResp) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*SendAppMsgResp) ProtoMessage() {}
|
||
|
||
func (x *SendAppMsgResp) ProtoReflect() protoreflect.Message {
|
||
mi := &file_send_app_msg_proto_msgTypes[2]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use SendAppMsgResp.ProtoReflect.Descriptor instead.
|
||
func (*SendAppMsgResp) Descriptor() ([]byte, []int) {
|
||
return file_send_app_msg_proto_rawDescGZIP(), []int{2}
|
||
}
|
||
|
||
func (x *SendAppMsgResp) GetBaseResponse() *BaseResponse {
|
||
if x != nil {
|
||
return x.BaseResponse
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *SendAppMsgResp) GetAppId() string {
|
||
if x != nil && x.AppId != nil {
|
||
return *x.AppId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *SendAppMsgResp) GetFromUserName() string {
|
||
if x != nil && x.FromUserName != nil {
|
||
return *x.FromUserName
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *SendAppMsgResp) GetToUserName() string {
|
||
if x != nil && x.ToUserName != nil {
|
||
return *x.ToUserName
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *SendAppMsgResp) GetMsgId() int32 {
|
||
if x != nil && x.MsgId != nil {
|
||
return *x.MsgId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *SendAppMsgResp) GetClientMsgId() string {
|
||
if x != nil && x.ClientMsgId != nil {
|
||
return *x.ClientMsgId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *SendAppMsgResp) GetCreateTime() int32 {
|
||
if x != nil && x.CreateTime != nil {
|
||
return *x.CreateTime
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *SendAppMsgResp) GetType() int32 {
|
||
if x != nil && x.Type != nil {
|
||
return *x.Type
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *SendAppMsgResp) GetNewMsgId() int64 {
|
||
if x != nil && x.NewMsgId != nil {
|
||
return *x.NewMsgId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *SendAppMsgResp) GetAeskey() string {
|
||
if x != nil && x.Aeskey != nil {
|
||
return *x.Aeskey
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *SendAppMsgResp) GetMsgSource() string {
|
||
if x != nil && x.MsgSource != nil {
|
||
return *x.MsgSource
|
||
}
|
||
return ""
|
||
}
|
||
|
||
var File_send_app_msg_proto protoreflect.FileDescriptor
|
||
|
||
const file_send_app_msg_proto_rawDesc = "" +
|
||
"\n" +
|
||
"\x12send_app_msg.proto\x12\awxproto\x1a\rapp_msg.proto\x1a\x11common_resp.proto\"\xeb\x02\n" +
|
||
"\rSendAppMsgReq\x129\n" +
|
||
"\vbaseRequest\x18\x01 \x01(\v2\x17.wxproto.ReplyMsgHeaderR\vbaseRequest\x12%\n" +
|
||
"\x03msg\x18\x02 \x01(\v2\x13.wxproto.AppMsgBodyR\x03msg\x12\x1e\n" +
|
||
"\n" +
|
||
"commentUrl\x18\x03 \x01(\tR\n" +
|
||
"commentUrl\x12\x18\n" +
|
||
"\areqTime\x18\x04 \x01(\rR\areqTime\x12\x10\n" +
|
||
"\x03md5\x18\x05 \x01(\tR\x03md5\x12\x1a\n" +
|
||
"\bfileType\x18\x06 \x01(\rR\bfileType\x12\x1c\n" +
|
||
"\tsignature\x18\a \x01(\tR\tsignature\x12\x1c\n" +
|
||
"\tfromSence\x18\b \x01(\tR\tfromSence\x12\x16\n" +
|
||
"\x06hitMd5\x18\t \x01(\rR\x06hitMd5\x12\x14\n" +
|
||
"\x05crc32\x18\n" +
|
||
" \x01(\rR\x05crc32\x12&\n" +
|
||
"\x0emsgForwardType\x18\v \x01(\rR\x0emsgForwardType\"\x94\x02\n" +
|
||
"\n" +
|
||
"AppMsgBody\x12\"\n" +
|
||
"\ffromUserName\x18\x01 \x01(\tR\ffromUserName\x12\x14\n" +
|
||
"\x05appId\x18\x02 \x01(\tR\x05appId\x12\x1e\n" +
|
||
"\n" +
|
||
"sdkVersion\x18\x03 \x01(\rR\n" +
|
||
"sdkVersion\x12\x1e\n" +
|
||
"\n" +
|
||
"toUserName\x18\x04 \x01(\tR\n" +
|
||
"toUserName\x12\x12\n" +
|
||
"\x04type\x18\x05 \x01(\rR\x04type\x12\x18\n" +
|
||
"\acontent\x18\x06 \x01(\tR\acontent\x12\x1e\n" +
|
||
"\n" +
|
||
"createTime\x18\a \x01(\x03R\n" +
|
||
"createTime\x12 \n" +
|
||
"\vclientMsgId\x18\b \x01(\tR\vclientMsgId\x12\x1c\n" +
|
||
"\tmsgSource\x18\f \x01(\tR\tmsgSource\"\xe3\x02\n" +
|
||
"\x0eSendAppMsgResp\x129\n" +
|
||
"\fbaseResponse\x18\x01 \x01(\v2\x15.wxproto.BaseResponseR\fbaseResponse\x12\x14\n" +
|
||
"\x05appId\x18\x02 \x01(\tR\x05appId\x12\"\n" +
|
||
"\ffromUserName\x18\x03 \x01(\tR\ffromUserName\x12\x1e\n" +
|
||
"\n" +
|
||
"toUserName\x18\x04 \x01(\tR\n" +
|
||
"toUserName\x12\x14\n" +
|
||
"\x05msgId\x18\x05 \x01(\x05R\x05msgId\x12 \n" +
|
||
"\vclientMsgId\x18\x06 \x01(\tR\vclientMsgId\x12\x1e\n" +
|
||
"\n" +
|
||
"createTime\x18\a \x01(\x05R\n" +
|
||
"createTime\x12\x12\n" +
|
||
"\x04type\x18\b \x01(\x05R\x04type\x12\x1a\n" +
|
||
"\bnewMsgId\x18\t \x01(\x03R\bnewMsgId\x12\x16\n" +
|
||
"\x06aeskey\x18\n" +
|
||
" \x01(\tR\x06aeskey\x12\x1c\n" +
|
||
"\tmsgSource\x18\v \x01(\tR\tmsgSourceB>Z<github.com/yincongcyincong/weixin-macos/onebot/proto;wxproto"
|
||
|
||
var (
|
||
file_send_app_msg_proto_rawDescOnce sync.Once
|
||
file_send_app_msg_proto_rawDescData []byte
|
||
)
|
||
|
||
func file_send_app_msg_proto_rawDescGZIP() []byte {
|
||
file_send_app_msg_proto_rawDescOnce.Do(func() {
|
||
file_send_app_msg_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_send_app_msg_proto_rawDesc), len(file_send_app_msg_proto_rawDesc)))
|
||
})
|
||
return file_send_app_msg_proto_rawDescData
|
||
}
|
||
|
||
var file_send_app_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
|
||
var file_send_app_msg_proto_goTypes = []any{
|
||
(*SendAppMsgReq)(nil), // 0: wxproto.SendAppMsgReq
|
||
(*AppMsgBody)(nil), // 1: wxproto.AppMsgBody
|
||
(*SendAppMsgResp)(nil), // 2: wxproto.SendAppMsgResp
|
||
(*ReplyMsgHeader)(nil), // 3: wxproto.ReplyMsgHeader
|
||
(*BaseResponse)(nil), // 4: wxproto.BaseResponse
|
||
}
|
||
var file_send_app_msg_proto_depIdxs = []int32{
|
||
3, // 0: wxproto.SendAppMsgReq.baseRequest:type_name -> wxproto.ReplyMsgHeader
|
||
1, // 1: wxproto.SendAppMsgReq.msg:type_name -> wxproto.AppMsgBody
|
||
4, // 2: wxproto.SendAppMsgResp.baseResponse:type_name -> wxproto.BaseResponse
|
||
3, // [3:3] is the sub-list for method output_type
|
||
3, // [3:3] is the sub-list for method input_type
|
||
3, // [3:3] is the sub-list for extension type_name
|
||
3, // [3:3] is the sub-list for extension extendee
|
||
0, // [0:3] is the sub-list for field type_name
|
||
}
|
||
|
||
func init() { file_send_app_msg_proto_init() }
|
||
func file_send_app_msg_proto_init() {
|
||
if File_send_app_msg_proto != nil {
|
||
return
|
||
}
|
||
file_app_msg_proto_init()
|
||
file_common_resp_proto_init()
|
||
type x struct{}
|
||
out := protoimpl.TypeBuilder{
|
||
File: protoimpl.DescBuilder{
|
||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_send_app_msg_proto_rawDesc), len(file_send_app_msg_proto_rawDesc)),
|
||
NumEnums: 0,
|
||
NumMessages: 3,
|
||
NumExtensions: 0,
|
||
NumServices: 0,
|
||
},
|
||
GoTypes: file_send_app_msg_proto_goTypes,
|
||
DependencyIndexes: file_send_app_msg_proto_depIdxs,
|
||
MessageInfos: file_send_app_msg_proto_msgTypes,
|
||
}.Build()
|
||
File_send_app_msg_proto = out.File
|
||
file_send_app_msg_proto_goTypes = nil
|
||
file_send_app_msg_proto_depIdxs = nil
|
||
}
|