Ai
7 Star 23 Fork 31

go-course/go8

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
rpc.pb.go 8.90 KB
Copy Edit Raw Blame History
Mr.Yu authored 2022-12-24 14:57 +08:00 . 补充了短信通知
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.1
// protoc v3.21.6
// source: apps/notify/pb/rpc.proto
package notify
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type SendSMSRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 短信模版的Id
// @gotags: bson:"template_id" json:"template_id"
TemplateId string `protobuf:"bytes,1,opt,name=template_id,json=templateId,proto3" json:"template_id" bson:"template_id"`
// 模版参数
// @gotags: bson:"template_params" json:"template_params"
TemplateParams []string `protobuf:"bytes,2,rep,name=template_params,json=templateParams,proto3" json:"template_params" bson:"template_params"`
// 用户名称(由于具体的电话号码, 是由用户模块管理)
// @gotags: bson:"users" json:"users"
Users []string `protobuf:"bytes,3,rep,name=users,proto3" json:"users" bson:"users"`
}
func (x *SendSMSRequest) Reset() {
*x = SendSMSRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_apps_notify_pb_rpc_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SendSMSRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SendSMSRequest) ProtoMessage() {}
func (x *SendSMSRequest) ProtoReflect() protoreflect.Message {
mi := &file_apps_notify_pb_rpc_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SendSMSRequest.ProtoReflect.Descriptor instead.
func (*SendSMSRequest) Descriptor() ([]byte, []int) {
return file_apps_notify_pb_rpc_proto_rawDescGZIP(), []int{0}
}
func (x *SendSMSRequest) GetTemplateId() string {
if x != nil {
return x.TemplateId
}
return ""
}
func (x *SendSMSRequest) GetTemplateParams() []string {
if x != nil {
return x.TemplateParams
}
return nil
}
func (x *SendSMSRequest) GetUsers() []string {
if x != nil {
return x.Users
}
return nil
}
type SendSmsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 发送成功的电话列表
// @gotags: json:"successed_numbers"
SuccessedNumbers []string `protobuf:"bytes,1,rep,name=successed_numbers,json=successedNumbers,proto3" json:"successed_numbers"`
}
func (x *SendSmsResponse) Reset() {
*x = SendSmsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_apps_notify_pb_rpc_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SendSmsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SendSmsResponse) ProtoMessage() {}
func (x *SendSmsResponse) ProtoReflect() protoreflect.Message {
mi := &file_apps_notify_pb_rpc_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SendSmsResponse.ProtoReflect.Descriptor instead.
func (*SendSmsResponse) Descriptor() ([]byte, []int) {
return file_apps_notify_pb_rpc_proto_rawDescGZIP(), []int{1}
}
func (x *SendSmsResponse) GetSuccessedNumbers() []string {
if x != nil {
return x.SuccessedNumbers
}
return nil
}
var File_apps_notify_pb_rpc_proto protoreflect.FileDescriptor
var file_apps_notify_pb_rpc_proto_rawDesc = []byte{
0x0a, 0x18, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x2f, 0x70, 0x62,
0x2f, 0x72, 0x70, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x67, 0x6f, 0x38, 0x2e,
0x64, 0x65, 0x76, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6d, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72,
0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x22, 0x70, 0x0a, 0x0e, 0x53, 0x65, 0x6e, 0x64, 0x53,
0x4d, 0x53, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x65, 0x6d,
0x70, 0x6c, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a,
0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x49, 0x64, 0x12, 0x27, 0x0a, 0x0f, 0x74, 0x65,
0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x02, 0x20,
0x03, 0x28, 0x09, 0x52, 0x0e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72,
0x61, 0x6d, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03,
0x28, 0x09, 0x52, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x22, 0x3e, 0x0a, 0x0f, 0x53, 0x65, 0x6e,
0x64, 0x53, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a, 0x11,
0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x65, 0x64, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72,
0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x10, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73,
0x65, 0x64, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x32, 0x6b, 0x0a, 0x03, 0x52, 0x50, 0x43,
0x12, 0x64, 0x0a, 0x07, 0x53, 0x65, 0x6e, 0x64, 0x53, 0x4d, 0x53, 0x12, 0x2b, 0x2e, 0x67, 0x6f,
0x38, 0x2e, 0x64, 0x65, 0x76, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6d, 0x63, 0x65, 0x6e, 0x74,
0x65, 0x72, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x53, 0x4d,
0x53, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x67, 0x6f, 0x38, 0x2e, 0x64,
0x65, 0x76, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6d, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e,
0x6e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x53, 0x6d, 0x73, 0x52, 0x65,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x3f, 0x5a, 0x3d, 0x67, 0x69, 0x74, 0x65, 0x65, 0x2e,
0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2d, 0x63, 0x6f, 0x75, 0x72, 0x73, 0x65, 0x2f, 0x67, 0x6f,
0x38, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x64, 0x65, 0x76, 0x63, 0x6c,
0x6f, 0x75, 0x64, 0x2f, 0x6d, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x70, 0x73,
0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_apps_notify_pb_rpc_proto_rawDescOnce sync.Once
file_apps_notify_pb_rpc_proto_rawDescData = file_apps_notify_pb_rpc_proto_rawDesc
)
func file_apps_notify_pb_rpc_proto_rawDescGZIP() []byte {
file_apps_notify_pb_rpc_proto_rawDescOnce.Do(func() {
file_apps_notify_pb_rpc_proto_rawDescData = protoimpl.X.CompressGZIP(file_apps_notify_pb_rpc_proto_rawDescData)
})
return file_apps_notify_pb_rpc_proto_rawDescData
}
var file_apps_notify_pb_rpc_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_apps_notify_pb_rpc_proto_goTypes = []interface{}{
(*SendSMSRequest)(nil), // 0: go8.devcloud.mcenter.notify.SendSMSRequest
(*SendSmsResponse)(nil), // 1: go8.devcloud.mcenter.notify.SendSmsResponse
}
var file_apps_notify_pb_rpc_proto_depIdxs = []int32{
0, // 0: go8.devcloud.mcenter.notify.RPC.SendSMS:input_type -> go8.devcloud.mcenter.notify.SendSMSRequest
1, // 1: go8.devcloud.mcenter.notify.RPC.SendSMS:output_type -> go8.devcloud.mcenter.notify.SendSmsResponse
1, // [1:2] is the sub-list for method output_type
0, // [0:1] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_apps_notify_pb_rpc_proto_init() }
func file_apps_notify_pb_rpc_proto_init() {
if File_apps_notify_pb_rpc_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_apps_notify_pb_rpc_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SendSMSRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_apps_notify_pb_rpc_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SendSmsResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_apps_notify_pb_rpc_proto_rawDesc,
NumEnums: 0,
NumMessages: 2,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_apps_notify_pb_rpc_proto_goTypes,
DependencyIndexes: file_apps_notify_pb_rpc_proto_depIdxs,
MessageInfos: file_apps_notify_pb_rpc_proto_msgTypes,
}.Build()
File_apps_notify_pb_rpc_proto = out.File
file_apps_notify_pb_rpc_proto_rawDesc = nil
file_apps_notify_pb_rpc_proto_goTypes = nil
file_apps_notify_pb_rpc_proto_depIdxs = nil
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/go-course/go8.git
git@gitee.com:go-course/go8.git
go-course
go8
go8
6a8978f41a84

Search