// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.7 // protoc (unknown) // source: notification/v1/notification.proto package notificationv1 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) ) type SMSSignStatus int32 const ( SMSSignStatus_SMS_SIGN_STATUS_UNSPECIFIED SMSSignStatus = 0 SMSSignStatus_SMS_SIGN_STATUS_APPLYING SMSSignStatus = 1 // 审核中 SMSSignStatus_SMS_SIGN_STATUS_PASSED SMSSignStatus = 2 // 审核通过 SMSSignStatus_SMS_SIGN_STATUS_REJECTED SMSSignStatus = 3 // 审核拒绝 SMSSignStatus_SMS_SIGN_STATUS_CANCELED SMSSignStatus = 4 // 已取消 ) // Enum value maps for SMSSignStatus. var ( SMSSignStatus_name = map[int32]string{ 0: "SMS_SIGN_STATUS_UNSPECIFIED", 1: "SMS_SIGN_STATUS_APPLYING", 2: "SMS_SIGN_STATUS_PASSED", 3: "SMS_SIGN_STATUS_REJECTED", 4: "SMS_SIGN_STATUS_CANCELED", } SMSSignStatus_value = map[string]int32{ "SMS_SIGN_STATUS_UNSPECIFIED": 0, "SMS_SIGN_STATUS_APPLYING": 1, "SMS_SIGN_STATUS_PASSED": 2, "SMS_SIGN_STATUS_REJECTED": 3, "SMS_SIGN_STATUS_CANCELED": 4, } ) func (x SMSSignStatus) Enum() *SMSSignStatus { p := new(SMSSignStatus) *p = x return p } func (x SMSSignStatus) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (SMSSignStatus) Descriptor() protoreflect.EnumDescriptor { return file_notification_v1_notification_proto_enumTypes[0].Descriptor() } func (SMSSignStatus) Type() protoreflect.EnumType { return &file_notification_v1_notification_proto_enumTypes[0] } func (x SMSSignStatus) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use SMSSignStatus.Descriptor instead. func (SMSSignStatus) EnumDescriptor() ([]byte, []int) { return file_notification_v1_notification_proto_rawDescGZIP(), []int{0} } type SendSMSRequest struct { state protoimpl.MessageState `protogen:"open.v1"` Phone string `protobuf:"bytes,1,opt,name=phone,proto3" json:"phone,omitempty"` SignName string `protobuf:"bytes,2,opt,name=sign_name,json=signName,proto3" json:"sign_name,omitempty"` TemplateCode string `protobuf:"bytes,3,opt,name=template_code,json=templateCode,proto3" json:"template_code,omitempty"` TemplateParams map[string]string `protobuf:"bytes,4,rep,name=template_params,json=templateParams,proto3" json:"template_params,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *SendSMSRequest) Reset() { *x = SendSMSRequest{} mi := &file_notification_v1_notification_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_notification_v1_notification_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 SendSMSRequest.ProtoReflect.Descriptor instead. func (*SendSMSRequest) Descriptor() ([]byte, []int) { return file_notification_v1_notification_proto_rawDescGZIP(), []int{0} } func (x *SendSMSRequest) GetPhone() string { if x != nil { return x.Phone } return "" } func (x *SendSMSRequest) GetSignName() string { if x != nil { return x.SignName } return "" } func (x *SendSMSRequest) GetTemplateCode() string { if x != nil { return x.TemplateCode } return "" } func (x *SendSMSRequest) GetTemplateParams() map[string]string { if x != nil { return x.TemplateParams } return nil } type SendSMSResponse struct { state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *SendSMSResponse) Reset() { *x = SendSMSResponse{} mi := &file_notification_v1_notification_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_notification_v1_notification_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 SendSMSResponse.ProtoReflect.Descriptor instead. func (*SendSMSResponse) Descriptor() ([]byte, []int) { return file_notification_v1_notification_proto_rawDescGZIP(), []int{1} } type ListSMSSignRequest struct { state protoimpl.MessageState `protogen:"open.v1"` Offset int32 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ListSMSSignRequest) Reset() { *x = ListSMSSignRequest{} mi := &file_notification_v1_notification_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ListSMSSignRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*ListSMSSignRequest) ProtoMessage() {} func (x *ListSMSSignRequest) ProtoReflect() protoreflect.Message { mi := &file_notification_v1_notification_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 ListSMSSignRequest.ProtoReflect.Descriptor instead. func (*ListSMSSignRequest) Descriptor() ([]byte, []int) { return file_notification_v1_notification_proto_rawDescGZIP(), []int{2} } func (x *ListSMSSignRequest) GetOffset() int32 { if x != nil { return x.Offset } return 0 } type SMSSignReason struct { state protoimpl.MessageState `protogen:"open.v1"` Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` SubContent string `protobuf:"bytes,2,opt,name=sub_content,json=subContent,proto3" json:"sub_content,omitempty"` CreateAt int32 `protobuf:"varint,3,opt,name=create_at,json=createAt,proto3" json:"create_at,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *SMSSignReason) Reset() { *x = SMSSignReason{} mi := &file_notification_v1_notification_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *SMSSignReason) String() string { return protoimpl.X.MessageStringOf(x) } func (*SMSSignReason) ProtoMessage() {} func (x *SMSSignReason) ProtoReflect() protoreflect.Message { mi := &file_notification_v1_notification_proto_msgTypes[3] 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 SMSSignReason.ProtoReflect.Descriptor instead. func (*SMSSignReason) Descriptor() ([]byte, []int) { return file_notification_v1_notification_proto_rawDescGZIP(), []int{3} } func (x *SMSSignReason) GetContent() string { if x != nil { return x.Content } return "" } func (x *SMSSignReason) GetSubContent() string { if x != nil { return x.SubContent } return "" } func (x *SMSSignReason) GetCreateAt() int32 { if x != nil { return x.CreateAt } return 0 } type SMSSign struct { state protoimpl.MessageState `protogen:"open.v1"` Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // 签名ID Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // 签名名称 Status SMSSignStatus `protobuf:"varint,3,opt,name=status,proto3,enum=notification.v1.SMSSignStatus" json:"status,omitempty"` // 签名状态 Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` // 签名类型 Reasons *SMSSignReason `protobuf:"bytes,5,opt,name=reasons,proto3" json:"reasons,omitempty"` // 签名拒绝原因 CreatedAt int32 `protobuf:"varint,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // 创建时间 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *SMSSign) Reset() { *x = SMSSign{} mi := &file_notification_v1_notification_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *SMSSign) String() string { return protoimpl.X.MessageStringOf(x) } func (*SMSSign) ProtoMessage() {} func (x *SMSSign) ProtoReflect() protoreflect.Message { mi := &file_notification_v1_notification_proto_msgTypes[4] 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 SMSSign.ProtoReflect.Descriptor instead. func (*SMSSign) Descriptor() ([]byte, []int) { return file_notification_v1_notification_proto_rawDescGZIP(), []int{4} } func (x *SMSSign) GetId() string { if x != nil { return x.Id } return "" } func (x *SMSSign) GetName() string { if x != nil { return x.Name } return "" } func (x *SMSSign) GetStatus() SMSSignStatus { if x != nil { return x.Status } return SMSSignStatus_SMS_SIGN_STATUS_UNSPECIFIED } func (x *SMSSign) GetType() string { if x != nil { return x.Type } return "" } func (x *SMSSign) GetReasons() *SMSSignReason { if x != nil { return x.Reasons } return nil } func (x *SMSSign) GetCreatedAt() int32 { if x != nil { return x.CreatedAt } return 0 } type ListSMSSignResponse struct { state protoimpl.MessageState `protogen:"open.v1"` List []*SMSSign `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` Count int32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ListSMSSignResponse) Reset() { *x = ListSMSSignResponse{} mi := &file_notification_v1_notification_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ListSMSSignResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*ListSMSSignResponse) ProtoMessage() {} func (x *ListSMSSignResponse) ProtoReflect() protoreflect.Message { mi := &file_notification_v1_notification_proto_msgTypes[5] 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 ListSMSSignResponse.ProtoReflect.Descriptor instead. func (*ListSMSSignResponse) Descriptor() ([]byte, []int) { return file_notification_v1_notification_proto_rawDescGZIP(), []int{5} } func (x *ListSMSSignResponse) GetList() []*SMSSign { if x != nil { return x.List } return nil } func (x *ListSMSSignResponse) GetCount() int32 { if x != nil { return x.Count } return 0 } var File_notification_v1_notification_proto protoreflect.FileDescriptor const file_notification_v1_notification_proto_rawDesc = "" + "\n" + "\"notification/v1/notification.proto\x12\x0fnotification.v1\"\x89\x02\n" + "\x0eSendSMSRequest\x12\x14\n" + "\x05phone\x18\x01 \x01(\tR\x05phone\x12\x1b\n" + "\tsign_name\x18\x02 \x01(\tR\bsignName\x12#\n" + "\rtemplate_code\x18\x03 \x01(\tR\ftemplateCode\x12\\\n" + "\x0ftemplate_params\x18\x04 \x03(\v23.notification.v1.SendSMSRequest.TemplateParamsEntryR\x0etemplateParams\x1aA\n" + "\x13TemplateParamsEntry\x12\x10\n" + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\x11\n" + "\x0fSendSMSResponse\",\n" + "\x12ListSMSSignRequest\x12\x16\n" + "\x06offset\x18\x01 \x01(\x05R\x06offset\"g\n" + "\rSMSSignReason\x12\x18\n" + "\acontent\x18\x01 \x01(\tR\acontent\x12\x1f\n" + "\vsub_content\x18\x02 \x01(\tR\n" + "subContent\x12\x1b\n" + "\tcreate_at\x18\x03 \x01(\x05R\bcreateAt\"\xd2\x01\n" + "\aSMSSign\x12\x0e\n" + "\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" + "\x04name\x18\x02 \x01(\tR\x04name\x126\n" + "\x06status\x18\x03 \x01(\x0e2\x1e.notification.v1.SMSSignStatusR\x06status\x12\x12\n" + "\x04type\x18\x04 \x01(\tR\x04type\x128\n" + "\areasons\x18\x05 \x01(\v2\x1e.notification.v1.SMSSignReasonR\areasons\x12\x1d\n" + "\n" + "created_at\x18\x06 \x01(\x05R\tcreatedAt\"Y\n" + "\x13ListSMSSignResponse\x12,\n" + "\x04list\x18\x01 \x03(\v2\x18.notification.v1.SMSSignR\x04list\x12\x14\n" + "\x05count\x18\x02 \x01(\x05R\x05count*\xa6\x01\n" + "\rSMSSignStatus\x12\x1f\n" + "\x1bSMS_SIGN_STATUS_UNSPECIFIED\x10\x00\x12\x1c\n" + "\x18SMS_SIGN_STATUS_APPLYING\x10\x01\x12\x1a\n" + "\x16SMS_SIGN_STATUS_PASSED\x10\x02\x12\x1c\n" + "\x18SMS_SIGN_STATUS_REJECTED\x10\x03\x12\x1c\n" + "\x18SMS_SIGN_STATUS_CANCELED\x10\x042\xbd\x01\n" + "\x13NotificationService\x12X\n" + "\vListSMSSign\x12#.notification.v1.ListSMSSignRequest\x1a$.notification.v1.ListSMSSignResponse\x12L\n" + "\aSendSMS\x12\x1f.notification.v1.SendSMSRequest\x1a .notification.v1.SendSMSResponseB notification.v1.SendSMSRequest.TemplateParamsEntry 0, // 1: notification.v1.SMSSign.status:type_name -> notification.v1.SMSSignStatus 4, // 2: notification.v1.SMSSign.reasons:type_name -> notification.v1.SMSSignReason 5, // 3: notification.v1.ListSMSSignResponse.list:type_name -> notification.v1.SMSSign 3, // 4: notification.v1.NotificationService.ListSMSSign:input_type -> notification.v1.ListSMSSignRequest 1, // 5: notification.v1.NotificationService.SendSMS:input_type -> notification.v1.SendSMSRequest 6, // 6: notification.v1.NotificationService.ListSMSSign:output_type -> notification.v1.ListSMSSignResponse 2, // 7: notification.v1.NotificationService.SendSMS:output_type -> notification.v1.SendSMSResponse 6, // [6:8] is the sub-list for method output_type 4, // [4:6] is the sub-list for method input_type 4, // [4:4] is the sub-list for extension type_name 4, // [4:4] is the sub-list for extension extendee 0, // [0:4] is the sub-list for field type_name } func init() { file_notification_v1_notification_proto_init() } func file_notification_v1_notification_proto_init() { if File_notification_v1_notification_proto != nil { return } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_notification_v1_notification_proto_rawDesc), len(file_notification_v1_notification_proto_rawDesc)), NumEnums: 1, NumMessages: 7, NumExtensions: 0, NumServices: 1, }, GoTypes: file_notification_v1_notification_proto_goTypes, DependencyIndexes: file_notification_v1_notification_proto_depIdxs, EnumInfos: file_notification_v1_notification_proto_enumTypes, MessageInfos: file_notification_v1_notification_proto_msgTypes, }.Build() File_notification_v1_notification_proto = out.File file_notification_v1_notification_proto_goTypes = nil file_notification_v1_notification_proto_depIdxs = nil }