Documentation ¶
Index ¶
- type Service
- func (s *Service) Captcha(ctx context.Context, req *authorizationapi.CaptchaReq) (*authorizationapi.CaptchaReply, error)
- func (s *Service) CheckPermission(ctx context.Context, req *authorizationapi.CheckPermissionRequest) (*authorizationapi.CheckPermissionReply, error)
- func (s *Service) CheckToken(ctx context.Context, _ *authorizationapi.CheckTokenRequest) (*authorizationapi.CheckTokenReply, error)
- func (s *Service) Login(ctx context.Context, req *authorizationapi.LoginRequest) (*authorizationapi.LoginReply, error)
- func (s *Service) Logout(ctx context.Context, _ *authorizationapi.LogoutRequest) (*authorizationapi.LogoutReply, error)
- func (s *Service) OAuthLogin(app vobj.OAuthAPP) http.HandlerFunc
- func (s *Service) OAuthLoginCallback(app vobj.OAuthAPP) http.HandlerFunc
- func (s *Service) RefreshToken(ctx context.Context, req *authorizationapi.RefreshTokenRequest) (*authorizationapi.RefreshTokenReply, error)
- func (s *Service) SetEmailWithLogin(ctx context.Context, req *authorizationapi.SetEmailWithLoginRequest) (*authorizationapi.SetEmailWithLoginReply, error)
- func (s *Service) VerifyEmail(ctx context.Context, req *authorizationapi.VerifyEmailRequest) (*authorizationapi.VerifyEmailReply, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct { authorizationapi.UnimplementedAuthorizationServer // contains filtered or unexported fields }
Service 权限服务
func NewAuthorizationService ¶
func NewAuthorizationService( captchaBiz *biz.CaptchaBiz, authorizationBiz *biz.AuthorizationBiz, ) *Service
NewAuthorizationService 创建权限服务
func (*Service) Captcha ¶
func (s *Service) Captcha(ctx context.Context, req *authorizationapi.CaptchaReq) (*authorizationapi.CaptchaReply, error)
Captcha 获取验证码
func (*Service) CheckPermission ¶
func (s *Service) CheckPermission(ctx context.Context, req *authorizationapi.CheckPermissionRequest) (*authorizationapi.CheckPermissionReply, error)
CheckPermission 权限检查
func (*Service) CheckToken ¶
func (s *Service) CheckToken(ctx context.Context, _ *authorizationapi.CheckTokenRequest) (*authorizationapi.CheckTokenReply, error)
CheckToken 检查token
func (*Service) Login ¶
func (s *Service) Login(ctx context.Context, req *authorizationapi.LoginRequest) (*authorizationapi.LoginReply, error)
Login 登录
func (*Service) Logout ¶
func (s *Service) Logout(ctx context.Context, _ *authorizationapi.LogoutRequest) (*authorizationapi.LogoutReply, error)
Logout 登出
func (*Service) OAuthLogin ¶
func (s *Service) OAuthLogin(app vobj.OAuthAPP) http.HandlerFunc
OAuthLogin oauth登录
func (*Service) OAuthLoginCallback ¶
func (s *Service) OAuthLoginCallback(app vobj.OAuthAPP) http.HandlerFunc
OAuthLoginCallback oauth登录回调
func (*Service) RefreshToken ¶
func (s *Service) RefreshToken(ctx context.Context, req *authorizationapi.RefreshTokenRequest) (*authorizationapi.RefreshTokenReply, error)
RefreshToken 刷新token
func (*Service) SetEmailWithLogin ¶
func (s *Service) SetEmailWithLogin(ctx context.Context, req *authorizationapi.SetEmailWithLoginRequest) (*authorizationapi.SetEmailWithLoginReply, error)
SetEmailWithLogin 设置邮箱并登录
func (*Service) VerifyEmail ¶
func (s *Service) VerifyEmail(ctx context.Context, req *authorizationapi.VerifyEmailRequest) (*authorizationapi.VerifyEmailReply, error)
VerifyEmail 验证邮箱
Click to show internal directories.
Click to hide internal directories.