Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterSmsRpcServiceServer(s grpc.ServiceRegistrar, srv SmsRpcServiceServer)
- type Data
- type SmsParams
- func (*SmsParams) Descriptor() ([]byte, []int)deprecated
- func (x *SmsParams) GetAccessKeyId() string
- func (x *SmsParams) GetAccessKeySecret() string
- func (x *SmsParams) GetEndpoint() string
- func (x *SmsParams) GetMobile() string
- func (x *SmsParams) GetParams() map[string]string
- func (x *SmsParams) GetSignName() string
- func (x *SmsParams) GetStatus() int32
- func (x *SmsParams) GetTemplate() string
- func (x *SmsParams) GetType() string
- func (*SmsParams) ProtoMessage()
- func (x *SmsParams) ProtoReflect() protoreflect.Message
- func (x *SmsParams) Reset()
- func (x *SmsParams) String() string
- type SmsResp
- func (*SmsResp) Descriptor() ([]byte, []int)deprecated
- func (x *SmsResp) GetCode() int32
- func (x *SmsResp) GetData() *Data
- func (x *SmsResp) GetMsg() string
- func (x *SmsResp) GetPath() string
- func (x *SmsResp) GetRequestID() string
- func (*SmsResp) ProtoMessage()
- func (x *SmsResp) ProtoReflect() protoreflect.Message
- func (x *SmsResp) Reset()
- func (x *SmsResp) String() string
- type SmsRpcServiceClient
- type SmsRpcServiceServer
- type UnimplementedSmsRpcServiceServer
- type UnsafeSmsRpcServiceServer
Constants ¶
const ( SmsRpcService_SendSms_FullMethodName = "/sms.SmsRpcService/SendSms" SmsRpcService_CheckSms_FullMethodName = "/sms.SmsRpcService/CheckSms" )
Variables ¶
var File_sms_proto protoreflect.FileDescriptor
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) ProtoMessage ¶
func (*Data) ProtoMessage()
func (*Data) ProtoReflect ¶
func (x *Data) ProtoReflect() protoreflect.Message
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) GetAccessKeyId ¶
func (*SmsParams) GetAccessKeySecret ¶
func (*SmsParams) GetEndpoint ¶
func (*SmsParams) GetSignName ¶
func (*SmsParams) GetTemplate ¶
func (*SmsParams) ProtoMessage ¶
func (*SmsParams) ProtoMessage()
func (*SmsParams) ProtoReflect ¶
func (x *SmsParams) ProtoReflect() protoreflect.Message
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) GetRequestID ¶
func (*SmsResp) ProtoMessage ¶
func (*SmsResp) ProtoMessage()
func (*SmsResp) ProtoReflect ¶
func (x *SmsResp) ProtoReflect() protoreflect.Message
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.
func NewSmsRpcServiceClient ¶
func NewSmsRpcServiceClient(cc grpc.ClientConnInterface) SmsRpcServiceClient
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.
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.