Documentation ¶
Index ¶
- type SmsServerService
- func (s *SmsServerService) AILIYUNMessageReport(ctx context.Context, rq *v1.AILIYUNReportListRequest) error
- func (s *SmsServerService) AILIYUNUplink(ctx context.Context, rq *v1.AILIYUNUplinkListRequest) error
- func (s *SmsServerService) CodeVerify(ctx context.Context, rq *v1.VerifyCodeRequest) error
- func (s *SmsServerService) CreateTemplate(ctx context.Context, rq *v1.CreateTemplateRequest) (*v1.CreateTemplateResponse, error)
- func (s *SmsServerService) DeleteTemplate(ctx context.Context, id int64) (*emptypb.Empty, error)
- func (s *SmsServerService) GetTemplate(ctx context.Context, id int64) (*v1.TemplateReply, error)
- func (s *SmsServerService) ListTemplate(ctx context.Context, rq *v1.ListTemplateRequest) (*v1.ListTemplateResponse, error)
- func (s *SmsServerService) SendMessage(ctx context.Context, rq *v1.SendMessageRequest) error
- func (s *SmsServerService) UpdateTemplate(ctx context.Context, id int64, rq *v1.UpdateTemplateRequest) (*emptypb.Empty, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SmsServerService ¶
type SmsServerService struct {
// contains filtered or unexported fields
}
SmsServerService is a struct that implements the v1.UnimplementedSmsServerServer interface and holds the business logic, represented by a IBiz instance.
func NewSmsServerService ¶
func NewSmsServerService(biz biz.IBiz) *SmsServerService
NewSmsServerService is a constructor function that takes a IBiz instance as an input and returns a new SmsServerService instance.
func (*SmsServerService) AILIYUNMessageReport ¶
func (s *SmsServerService) AILIYUNMessageReport(ctx context.Context, rq *v1.AILIYUNReportListRequest) error
AILIYUNMessageReport is a method for receive message reports. It takes a AILIYUNReportListRequest as input and returns an CommonResponse or an error.
func (*SmsServerService) AILIYUNUplink ¶
func (s *SmsServerService) AILIYUNUplink(ctx context.Context, rq *v1.AILIYUNUplinkListRequest) error
AILIYUNUplink is a method for receive an uplink message. It takes a AILIYUNUplinkListRequest as input and returns an error.
func (*SmsServerService) CodeVerify ¶
func (s *SmsServerService) CodeVerify(ctx context.Context, rq *v1.VerifyCodeRequest) error
CodeVerify is a method for verify a verification code from message. It takes a VerifyCodeRequest as input and returns an CommonResponse or an error.
func (*SmsServerService) CreateTemplate ¶
func (s *SmsServerService) CreateTemplate(ctx context.Context, rq *v1.CreateTemplateRequest) (*v1.CreateTemplateResponse, error)
CreateTemplate is a method for creating a new template. It takes a CreateTemplateRequest as input and returns CreateTemplateResponse or an error.
func (*SmsServerService) DeleteTemplate ¶
DeleteTemplate is a method for deleting a template. It takes a DeleteTemplateRequest as input and returns an Empty message or an error.
func (*SmsServerService) GetTemplate ¶
func (s *SmsServerService) GetTemplate(ctx context.Context, id int64) (*v1.TemplateReply, error)
GetTemplate is a method for retrieving a specific template. It takes a GetTemplateRequest as input and returns a TemplateReply with the secret or an error.
func (*SmsServerService) ListTemplate ¶
func (s *SmsServerService) ListTemplate(ctx context.Context, rq *v1.ListTemplateRequest) (*v1.ListTemplateResponse, error)
ListTemplate is a method for listing template. It takes a ListTemplateRequest as input and returns a ListTemplateResponse with the template or an error.
func (*SmsServerService) SendMessage ¶
func (s *SmsServerService) SendMessage(ctx context.Context, rq *v1.SendMessageRequest) error
SendMessage is a method for send a message. It takes a SendMessageRequest as input and returns an CommonResponse or an error.
func (*SmsServerService) UpdateTemplate ¶
func (s *SmsServerService) UpdateTemplate(ctx context.Context, id int64, rq *v1.UpdateTemplateRequest) (*emptypb.Empty, error)
UpdateTemplate is a method for updating a template. It takes an UpdateTemplateRequest as input and returns an Empty message or an error.