service

package
v1.0.0-alpha.10 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: MIT Imports: 8 Imported by: 0

README

Service

Documentation

Index

Constants

This section is empty.

Variables

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

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 (*ProfileService) GetProfile

Jump to

Keyboard shortcuts

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