Documentation
¶
Index ¶
- Variables
- type AuthService
- func (s *AuthService) CheckIfTheEmailIsTaken(ctx context.Context, req *pb.CheckIfTheEmailIsTakenRequest) (*pb.CheckIfTheEmailIsTakenReply, error)
- func (s *AuthService) Login(ctx context.Context, req *pb.LoginRequest) (*pb.LoginReply, error)
- func (s *AuthService) Logout(ctx context.Context, req *pb.LogoutRequest) (*pb.LogoutReply, error)
- func (s *AuthService) Signup(ctx context.Context, req *pb.SignupRequest) (*pb.SignupReply, error)
- func (s *AuthService) TokenClaims(ctx context.Context, req *pb.TokenClaimsRequest) (*pb.TokenClaimsReply, error)
- func (s *AuthService) TokenRenew(ctx context.Context, req *pb.TokenRenewRequest) (*pb.TokenRenewReply, error)
- type ProfileService
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet( NewAuthService, NewProfileService, )
ProviderSet is service providers.
Functions ¶
This section is empty.
Types ¶
type AuthService ¶
type AuthService struct { pb.UnimplementedAuthServer // contains filtered or unexported fields }
func NewAuthService ¶
func NewAuthService(logger *log.Helper, userHelper *helper.UserHelper, rabbit *rabbit.RabbitInstance) *AuthService
func (*AuthService) CheckIfTheEmailIsTaken ¶
func (s *AuthService) CheckIfTheEmailIsTaken(ctx context.Context, req *pb.CheckIfTheEmailIsTakenRequest) (*pb.CheckIfTheEmailIsTakenReply, error)
CheckIfTheEmailIsTaken 检查邮箱地址是否已被占用
func (*AuthService) Login ¶
func (s *AuthService) Login(ctx context.Context, req *pb.LoginRequest) (*pb.LoginReply, error)
Login 登录逻辑 - 🚀 支持账号密码登录
func (*AuthService) Logout ¶
func (s *AuthService) Logout(ctx context.Context, req *pb.LogoutRequest) (*pb.LogoutReply, error)
Logout 退出登录
func (*AuthService) Signup ¶
func (s *AuthService) Signup(ctx context.Context, req *pb.SignupRequest) (*pb.SignupReply, error)
Signup 注册逻辑
func (*AuthService) TokenClaims ¶
func (s *AuthService) TokenClaims(ctx context.Context, req *pb.TokenClaimsRequest) (*pb.TokenClaimsReply, error)
TokenClaims .
func (*AuthService) TokenRenew ¶
func (s *AuthService) TokenRenew(ctx context.Context, req *pb.TokenRenewRequest) (*pb.TokenRenewReply, error)
TokenRenew .
type ProfileService ¶
type ProfileService struct {
pb.UnimplementedProfileServer
}
func NewProfileService ¶
func NewProfileService() *ProfileService
func (*ProfileService) ChangeAvatarUrl ¶
func (s *ProfileService) ChangeAvatarUrl(ctx context.Context, req *pb.ChangeAvatarUrlRequest) (*pb.ChangeAvatarUrlReply, error)
func (*ProfileService) GetProfile ¶
func (s *ProfileService) GetProfile(ctx context.Context, req *pb.GetProfileRequest) (*pb.GetProfileReply, error)
Click to show internal directories.
Click to hide internal directories.