common

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2026 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 CommonService

type CommonService struct {
	pb.UnimplementedCommonServer
	// contains filtered or unexported fields
}

func NewCommonService

func NewCommonService(uc *common.CommonUsecase) *CommonService

func (*CommonService) CheckVerificationCode

CheckVerificationCode checks verification code

func (*CommonService) GetAds

func (s *CommonService) GetAds(ctx context.Context, req *pb.GetAdsRequest) (*pb.GetAdsReply, error)

GetAds gets ads list

func (*CommonService) GetClient

func (s *CommonService) GetClient(ctx context.Context, req *pb.GetClientRequest) (*pb.GetClientReply, error)

GetClient gets subscribe client list

func (*CommonService) GetGlobalConfig

GetGlobalConfig gets global configuration

func (*CommonService) GetPrivacyPolicy

GetPrivacyPolicy gets privacy policy content

func (*CommonService) GetStat

func (s *CommonService) GetStat(ctx context.Context, req *pb.GetStatRequest) (*pb.GetStatReply, error)

GetStat gets system statistics

func (*CommonService) GetTos

func (s *CommonService) GetTos(ctx context.Context, req *pb.GetTosRequest) (*pb.GetTosReply, error)

GetTos gets terms of service content

func (*CommonService) Heartbeat

func (s *CommonService) Heartbeat(ctx context.Context, req *pb.HeartbeatRequest) (*pb.HeartbeatReply, error)

Heartbeat returns service liveness info

func (*CommonService) SendEmailCode

func (s *CommonService) SendEmailCode(ctx context.Context, req *pb.SendEmailCodeRequest) (*pb.SendCodeReply, error)

SendEmailCode sends email verification code

func (*CommonService) SendSmsCode

func (s *CommonService) SendSmsCode(ctx context.Context, req *pb.SendSmsCodeRequest) (*pb.SendCodeReply, error)

SendSmsCode sends SMS verification code

Jump to

Keyboard shortcuts

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