service

package
v1.4.34 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: GPL-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type AuthenticationService

type AuthenticationService struct {
	Config         *config.Config
	UserMapper     mapper.UserMapper
	MiniProgramMap wechat.MiniProgramMap
	Redis          *redis.Redis
}

func (*AuthenticationService) AddUserAuth added in v1.4.22

func (*AuthenticationService) SendVerifyCode

func (*AuthenticationService) SetPassword

func (*AuthenticationService) SignIn

type CosService

type CosService struct {
	Config         *config.Config
	CosSDK         *cos.CosSDK
	UrlMapper      mapper.UrlMapper
	UserMapper     mapper.UserMapper
	MiniProgramMap wechat.MiniProgramMap
}

func (*CosService) DeleteObject

func (s *CosService) DeleteObject(ctx context.Context, req *sts.DeleteObjectReq) (*sts.DeleteObjectResp, error)

func (*CosService) GenCosSts

func (s *CosService) GenCosSts(ctx context.Context, req *sts.GenCosStsReq) (*sts.GenCosStsResp, error)

func (*CosService) GenSignedUrl

func (s *CosService) GenSignedUrl(ctx context.Context, req *sts.GenSignedUrlReq) (*sts.GenSignedUrlResp, error)

func (*CosService) PhotoCheck

func (s *CosService) PhotoCheck(ctx context.Context, req *sts.PhotoCheckReq) (*sts.PhotoCheckResp, error)

func (*CosService) SendMessage added in v1.4.34

func (s *CosService) SendMessage(ctx context.Context, req *sts.SendMessageReq) (*sts.SendMessageResp, error)

func (*CosService) TextCheck

func (s *CosService) TextCheck(ctx context.Context, req *sts.TextCheckReq) (*sts.TextCheckResp, error)

type IAuthenticationService

type IAuthenticationService interface {
	SignIn(ctx context.Context, req *sts.SignInReq) (*sts.SignInResp, error)
	SetPassword(ctx context.Context, req *sts.SetPasswordReq) (*sts.SetPasswordResp, error)
	SendVerifyCode(ctx context.Context, req *sts.SendVerifyCodeReq) (*sts.SendVerifyCodeResp, error)
	AddUserAuth(ctx context.Context, req *sts.AddUserAuthReq) (*sts.AddUserAuthResp, error)
}

type ICosService

type ICosService interface {
	GenCosSts(ctx context.Context, req *sts.GenCosStsReq) (*sts.GenCosStsResp, error)
	GenSignedUrl(ctx context.Context, req *sts.GenSignedUrlReq) (*sts.GenSignedUrlResp, error)
	DeleteObject(ctx context.Context, req *sts.DeleteObjectReq) (*sts.DeleteObjectResp, error)
	TextCheck(ctx context.Context, req *sts.TextCheckReq) (*sts.TextCheckResp, error)
	PhotoCheck(ctx context.Context, req *sts.PhotoCheckReq) (*sts.PhotoCheckResp, error)
	SendMessage(ctx context.Context, req *sts.SendMessageReq) (*sts.SendMessageResp, error)
}

Jump to

Keyboard shortcuts

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