service

package
v0.0.0-...-96f2668 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is service providers.

Functions

This section is empty.

Types

type AuthService

type AuthService struct {
	pb.UnimplementedAuthServiceServer
	// contains filtered or unexported fields
}

func NewAuthService

func NewAuthService(logger log.Logger, ac biz.AuthRepo) *AuthService

func (*AuthService) GetAuthInfo

func (*AuthService) GetAuthProfile

func (*AuthService) LoginByEmail

func (s *AuthService) LoginByEmail(ctx context.Context, req *pb.LoginByEmailRequest) (*pb.LoginResponse, error)

func (*AuthService) LoginByPassword

func (s *AuthService) LoginByPassword(ctx context.Context, req *pb.LoginByPasswordRequest) (*pb.LoginResponse, error)

func (*AuthService) LoginBySms

func (s *AuthService) LoginBySms(ctx context.Context, req *pb.LoginBySmsRequest) (*pb.LoginResponse, error)

func (*AuthService) Logout

func (s *AuthService) Logout(ctx context.Context, req *pb.LogoutRequest) (*pb.LogoutResponse, error)

func (*AuthService) Register

type RoleService

type RoleService struct {
	pb.UnimplementedRoleServiceServer
	// contains filtered or unexported fields
}

func NewRoleService

func NewRoleService(logger log.Logger, ac biz.RoleRepo) *RoleService

func (*RoleService) CreateRole

func (*RoleService) DeleteRole

func (*RoleService) GetRole

func (s *RoleService) GetRole(ctx context.Context, req *pb.GetRoleRequest) (*pb.GetRoleResponse, error)

func (*RoleService) ListRole

func (*RoleService) UpdateRole

type UserService

type UserService struct {
	pb.UnimplementedUserServiceServer
	// contains filtered or unexported fields
}

func NewUserService

func NewUserService(logger log.Logger, uc biz.UserRepo) *UserService

func (*UserService) CreateUser

func (*UserService) DeleteUser

func (*UserService) GetUser

func (s *UserService) GetUser(ctx context.Context, req *pb.GetUserRequest) (*pb.GetUserResponse, error)

func (*UserService) ListUser

func (*UserService) UpdateUser

Jump to

Keyboard shortcuts

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