sms

package
v0.0.42 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SmsRpcService_SendSms_FullMethodName  = "/sms.SmsRpcService/SendSms"
	SmsRpcService_CheckSms_FullMethodName = "/sms.SmsRpcService/CheckSms"
)

Variables

View Source
var SmsRpcService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "sms.SmsRpcService",
	HandlerType: (*SmsRpcServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SendSms",
			Handler:    _SmsRpcService_SendSms_Handler,
		},
		{
			MethodName: "CheckSms",
			Handler:    _SmsRpcService_CheckSms_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "sms.proto",
}

SmsRpcService_ServiceDesc is the grpc.ServiceDesc for SmsRpcService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterSmsRpcServiceServer

func RegisterSmsRpcServiceServer(s grpc.ServiceRegistrar, srv SmsRpcServiceServer)

Types

type Data

type Data struct {
	Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*Data) Descriptor deprecated

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

Deprecated: Use Data.ProtoReflect.Descriptor instead.

func (*Data) GetData

func (x *Data) GetData() string

func (*Data) ProtoMessage

func (*Data) ProtoMessage()

func (*Data) ProtoReflect

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

func (*Data) Reset

func (x *Data) Reset()

func (*Data) String

func (x *Data) String() string

type SmsParams

type SmsParams struct {
	Mobile   string            `protobuf:"bytes,1,opt,name=mobile,proto3" json:"mobile,omitempty"`     //接受方手机号
	Template string            `protobuf:"bytes,2,opt,name=template,proto3" json:"template,omitempty"` //模板id
	Params   map[string]string ``                                                                      //模板参数
	/* 153-byte string literal not displayed */
	Type            string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`         //查询条件短信类型
	SignName        string `protobuf:"bytes,5,opt,name=signName,proto3" json:"signName,omitempty"` //阿里云短信签名
	Status          int32  `protobuf:"varint,6,opt,name=status,proto3" json:"status,omitempty"`    //查询条件状态
	AccessKeyId     string `protobuf:"bytes,7,opt,name=AccessKeyId,proto3" json:"AccessKeyId,omitempty"`
	AccessKeySecret string `protobuf:"bytes,8,opt,name=AccessKeySecret,proto3" json:"AccessKeySecret,omitempty"`
	Endpoint        string `protobuf:"bytes,9,opt,name=Endpoint,proto3" json:"Endpoint,omitempty"`
	// contains filtered or unexported fields
}

func (*SmsParams) Descriptor deprecated

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

Deprecated: Use SmsParams.ProtoReflect.Descriptor instead.

func (*SmsParams) GetAccessKeyId

func (x *SmsParams) GetAccessKeyId() string

func (*SmsParams) GetAccessKeySecret

func (x *SmsParams) GetAccessKeySecret() string

func (*SmsParams) GetEndpoint

func (x *SmsParams) GetEndpoint() string

func (*SmsParams) GetMobile

func (x *SmsParams) GetMobile() string

func (*SmsParams) GetParams

func (x *SmsParams) GetParams() map[string]string

func (*SmsParams) GetSignName

func (x *SmsParams) GetSignName() string

func (*SmsParams) GetStatus

func (x *SmsParams) GetStatus() int32

func (*SmsParams) GetTemplate

func (x *SmsParams) GetTemplate() string

func (*SmsParams) GetType

func (x *SmsParams) GetType() string

func (*SmsParams) ProtoMessage

func (*SmsParams) ProtoMessage()

func (*SmsParams) ProtoReflect

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

func (*SmsParams) Reset

func (x *SmsParams) Reset()

func (*SmsParams) String

func (x *SmsParams) String() string

type SmsResp

type SmsResp struct {
	Code      int32  `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Msg       string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	RequestID string `protobuf:"bytes,3,opt,name=requestID,proto3" json:"requestID,omitempty"`
	Path      string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"`
	Data      *Data  `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*SmsResp) Descriptor deprecated

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

Deprecated: Use SmsResp.ProtoReflect.Descriptor instead.

func (*SmsResp) GetCode

func (x *SmsResp) GetCode() int32

func (*SmsResp) GetData

func (x *SmsResp) GetData() *Data

func (*SmsResp) GetMsg

func (x *SmsResp) GetMsg() string

func (*SmsResp) GetPath

func (x *SmsResp) GetPath() string

func (*SmsResp) GetRequestID

func (x *SmsResp) GetRequestID() string

func (*SmsResp) ProtoMessage

func (*SmsResp) ProtoMessage()

func (*SmsResp) ProtoReflect

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

func (*SmsResp) Reset

func (x *SmsResp) Reset()

func (*SmsResp) String

func (x *SmsResp) String() string

type SmsRpcServiceClient

type SmsRpcServiceClient interface {
	SendSms(ctx context.Context, in *SmsParams, opts ...grpc.CallOption) (*SmsResp, error)
	CheckSms(ctx context.Context, in *SmsParams, opts ...grpc.CallOption) (*SmsResp, error)
}

SmsRpcServiceClient is the client API for SmsRpcService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type SmsRpcServiceServer

type SmsRpcServiceServer interface {
	SendSms(context.Context, *SmsParams) (*SmsResp, error)
	CheckSms(context.Context, *SmsParams) (*SmsResp, error)
	// contains filtered or unexported methods
}

SmsRpcServiceServer is the server API for SmsRpcService service. All implementations must embed UnimplementedSmsRpcServiceServer for forward compatibility

type UnimplementedSmsRpcServiceServer

type UnimplementedSmsRpcServiceServer struct {
}

UnimplementedSmsRpcServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedSmsRpcServiceServer) CheckSms

func (UnimplementedSmsRpcServiceServer) SendSms

type UnsafeSmsRpcServiceServer

type UnsafeSmsRpcServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeSmsRpcServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SmsRpcServiceServer will types in compilation errors.

Jump to

Keyboard shortcuts

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