Documentation ¶
Index ¶
- Variables
- type AuthService
- func (s *AuthService) Captcha(ctx context.Context, req *auth.CaptchaRequest) (*auth.CaptchaReply, error)
- func (s *AuthService) Login(ctx context.Context, req *auth.LoginRequest) (*auth.LoginReply, error)
- func (s *AuthService) Logout(ctx context.Context, _ *auth.LogoutRequest) (*auth.LogoutReply, error)
- func (s *AuthService) RefreshToken(ctx context.Context, req *auth.RefreshTokenRequest) (*auth.RefreshTokenReply, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSetAuthService = wire.NewSet(NewAuthService)
ProviderSetAuthService 注入AuthService
Functions ¶
This section is empty.
Types ¶
type AuthService ¶
type AuthService struct { auth.UnimplementedAuthServer // contains filtered or unexported fields }
func NewAuthService ¶
func NewAuthService(userBiz *biz.UserBiz, captchaBiz *biz.CaptchaBiz, logger log.Logger) *AuthService
func (*AuthService) Captcha ¶
func (s *AuthService) Captcha(ctx context.Context, req *auth.CaptchaRequest) (*auth.CaptchaReply, error)
func (*AuthService) Login ¶
func (s *AuthService) Login(ctx context.Context, req *auth.LoginRequest) (*auth.LoginReply, error)
func (*AuthService) Logout ¶
func (s *AuthService) Logout(ctx context.Context, _ *auth.LogoutRequest) (*auth.LogoutReply, error)
func (*AuthService) RefreshToken ¶
func (s *AuthService) RefreshToken(ctx context.Context, req *auth.RefreshTokenRequest) (*auth.RefreshTokenReply, error)
Click to show internal directories.
Click to hide internal directories.