Documentation ¶
Index ¶
- Variables
- type AuthService
- func (s *AuthService) GetAuthInfo(ctx context.Context, req *pb.GetAuthInfoRequest) (*pb.GetAuthInfoResponse, error)
- func (s *AuthService) GetAuthProfile(ctx context.Context, req *pb.GetAuthProfileRequest) (*pb.GetAuthProfileResponse, error)
- func (s *AuthService) LoginByEmail(ctx context.Context, req *pb.LoginByEmailRequest) (*pb.LoginResponse, error)
- func (s *AuthService) LoginByPassword(ctx context.Context, req *pb.LoginByPasswordRequest) (*pb.LoginResponse, error)
- func (s *AuthService) LoginBySms(ctx context.Context, req *pb.LoginBySmsRequest) (*pb.LoginResponse, error)
- func (s *AuthService) Logout(ctx context.Context, req *pb.LogoutRequest) (*pb.LogoutResponse, error)
- func (s *AuthService) Register(ctx context.Context, req *pb.RegisterRequest) (*pb.RegisterResponse, error)
- type RoleService
- func (s *RoleService) CreateRole(ctx context.Context, req *pb.CreateRoleRequest) (*pb.CreateRoleResponse, error)
- func (s *RoleService) DeleteRole(ctx context.Context, req *pb.DeleteRoleRequest) (*pb.DeleteRoleResponse, error)
- func (s *RoleService) GetRole(ctx context.Context, req *pb.GetRoleRequest) (*pb.GetRoleResponse, error)
- func (s *RoleService) ListRole(ctx context.Context, req *pb.ListRoleRequest) (*pb.ListRoleResponse, error)
- func (s *RoleService) UpdateRole(ctx context.Context, req *pb.UpdateRoleRequest) (*pb.UpdateRoleResponse, error)
- type UserService
- func (s *UserService) CreateUser(ctx context.Context, req *pb.CreateUserRequest) (*pb.CreateUserResponse, error)
- func (s *UserService) DeleteUser(ctx context.Context, req *pb.DeleteUserRequest) (*pb.DeleteUserResponse, error)
- func (s *UserService) GetUser(ctx context.Context, req *pb.GetUserRequest) (*pb.GetUserResponse, error)
- func (s *UserService) ListUser(ctx context.Context, req *pb.ListUserRequest) (*pb.ListUserResponse, error)
- func (s *UserService) UpdateUser(ctx context.Context, req *pb.UpdateUserRequest) (*pb.UpdateUserResponse, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewAuthService, NewUserService, NewRoleService)
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 (s *AuthService) GetAuthInfo(ctx context.Context, req *pb.GetAuthInfoRequest) (*pb.GetAuthInfoResponse, error)
func (*AuthService) GetAuthProfile ¶
func (s *AuthService) GetAuthProfile(ctx context.Context, req *pb.GetAuthProfileRequest) (*pb.GetAuthProfileResponse, error)
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 ¶
func (s *AuthService) Register(ctx context.Context, req *pb.RegisterRequest) (*pb.RegisterResponse, error)
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 (s *RoleService) CreateRole(ctx context.Context, req *pb.CreateRoleRequest) (*pb.CreateRoleResponse, error)
func (*RoleService) DeleteRole ¶
func (s *RoleService) DeleteRole(ctx context.Context, req *pb.DeleteRoleRequest) (*pb.DeleteRoleResponse, error)
func (*RoleService) GetRole ¶
func (s *RoleService) GetRole(ctx context.Context, req *pb.GetRoleRequest) (*pb.GetRoleResponse, error)
func (*RoleService) ListRole ¶
func (s *RoleService) ListRole(ctx context.Context, req *pb.ListRoleRequest) (*pb.ListRoleResponse, error)
func (*RoleService) UpdateRole ¶
func (s *RoleService) UpdateRole(ctx context.Context, req *pb.UpdateRoleRequest) (*pb.UpdateRoleResponse, error)
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 (s *UserService) CreateUser(ctx context.Context, req *pb.CreateUserRequest) (*pb.CreateUserResponse, error)
func (*UserService) DeleteUser ¶
func (s *UserService) DeleteUser(ctx context.Context, req *pb.DeleteUserRequest) (*pb.DeleteUserResponse, error)
func (*UserService) GetUser ¶
func (s *UserService) GetUser(ctx context.Context, req *pb.GetUserRequest) (*pb.GetUserResponse, error)
func (*UserService) ListUser ¶
func (s *UserService) ListUser(ctx context.Context, req *pb.ListUserRequest) (*pb.ListUserResponse, error)
func (*UserService) UpdateUser ¶
func (s *UserService) UpdateUser(ctx context.Context, req *pb.UpdateUserRequest) (*pb.UpdateUserResponse, error)
Click to show internal directories.
Click to hide internal directories.