Documentation ¶
Index ¶
- Variables
- type AuthenticationService
- func (s *AuthenticationService) AddUserAuth(ctx context.Context, req *sts.AddUserAuthReq) (*sts.AddUserAuthResp, error)
- func (s *AuthenticationService) SendVerifyCode(ctx context.Context, req *sts.SendVerifyCodeReq) (*sts.SendVerifyCodeResp, error)
- func (s *AuthenticationService) SetPassword(ctx context.Context, req *sts.SetPasswordReq) (*sts.SetPasswordResp, error)
- func (s *AuthenticationService) SignIn(ctx context.Context, req *sts.SignInReq) (*sts.SignInResp, error)
- type CosService
- func (s *CosService) DeleteObject(ctx context.Context, req *sts.DeleteObjectReq) (*sts.DeleteObjectResp, error)
- func (s *CosService) GenCosSts(ctx context.Context, req *sts.GenCosStsReq) (*sts.GenCosStsResp, error)
- func (s *CosService) GenSignedUrl(ctx context.Context, req *sts.GenSignedUrlReq) (*sts.GenSignedUrlResp, error)
- func (s *CosService) PhotoCheck(ctx context.Context, req *sts.PhotoCheckReq) (*sts.PhotoCheckResp, error)
- func (s *CosService) SendMessage(ctx context.Context, req *sts.SendMessageReq) (*sts.SendMessageResp, error)
- func (s *CosService) TextCheck(ctx context.Context, req *sts.TextCheckReq) (*sts.TextCheckResp, error)
- type IAuthenticationService
- type ICosService
Constants ¶
This section is empty.
Variables ¶
View Source
var AuthenticationSet = wire.NewSet( wire.Struct(new(AuthenticationService), "*"), wire.Bind(new(IAuthenticationService), new(*AuthenticationService)), )
View Source
var CosSet = wire.NewSet( wire.Struct(new(CosService), "*"), wire.Bind(new(ICosService), new(*CosService)), )
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 (s *AuthenticationService) AddUserAuth(ctx context.Context, req *sts.AddUserAuthReq) (*sts.AddUserAuthResp, error)
func (*AuthenticationService) SendVerifyCode ¶
func (s *AuthenticationService) SendVerifyCode(ctx context.Context, req *sts.SendVerifyCodeReq) (*sts.SendVerifyCodeResp, error)
func (*AuthenticationService) SetPassword ¶
func (s *AuthenticationService) SetPassword(ctx context.Context, req *sts.SetPasswordReq) (*sts.SetPasswordResp, error)
func (*AuthenticationService) SignIn ¶
func (s *AuthenticationService) SignIn(ctx context.Context, req *sts.SignInReq) (*sts.SignInResp, error)
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) }
Click to show internal directories.
Click to hide internal directories.