service

package
v0.0.0-...-c1a7e98 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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 (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

CreateTemplate is a method for creating a new template. It takes a CreateTemplateRequest as input and returns CreateTemplateResponse or an error.

func (*SmsServerService) DeleteTemplate

func (s *SmsServerService) DeleteTemplate(ctx context.Context, id int64) (*emptypb.Empty, error)

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

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.

Jump to

Keyboard shortcuts

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