Documentation
¶
Index ¶
- Variables
- type AuthService
- func (s *AuthService) Login(ctx context.Context, dto *v1.AuthLoginDTO) (*v1.AuthLoginVO, error)
- func (s *AuthService) LoginUserInfo(ctx context.Context, empty *emptypb.Empty) (*v1.UserVO, error)
- func (s *AuthService) Logout(ctx context.Context, empty *emptypb.Empty) (*emptypb.Empty, error)
- func (s *AuthService) Register(ctx context.Context, dto *v1.AuthRegisterDTO) (*emptypb.Empty, error)
- func (s *AuthService) UpdateMineInfo(ctx context.Context, dto *v1.UpdateMineInfoDTO) (*emptypb.Empty, error)
- type UserService
- func (s *UserService) Create(ctx context.Context, dto *v1.UserCreateDTO) (*emptypb.Empty, error)
- func (s *UserService) Delete(ctx context.Context, request *v1.IdRequest) (*emptypb.Empty, error)
- func (s *UserService) FindById(ctx context.Context, request *v1.IdRequest) (*v1.UserVO, error)
- func (s *UserService) PageList(ctx context.Context, dto *v1.UserQueryDTO) (*v1.UserPageVO, error)
- func (s *UserService) Update(ctx context.Context, dto *v1.UserUpdateDTO) (*emptypb.Empty, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewUserService, NewAuthService)
ProviderSet is service providers.
Functions ¶
This section is empty.
Types ¶
type AuthService ¶
type AuthService struct { v1.UnimplementedAuthServer // contains filtered or unexported fields }
func NewAuthService ¶
func NewAuthService(bz biz.IBiz) *AuthService
func (*AuthService) Login ¶
func (s *AuthService) Login(ctx context.Context, dto *v1.AuthLoginDTO) (*v1.AuthLoginVO, error)
func (*AuthService) LoginUserInfo ¶
func (*AuthService) Register ¶
func (s *AuthService) Register(ctx context.Context, dto *v1.AuthRegisterDTO) (*emptypb.Empty, error)
func (*AuthService) UpdateMineInfo ¶
func (s *AuthService) UpdateMineInfo(ctx context.Context, dto *v1.UpdateMineInfoDTO) (*emptypb.Empty, error)
type UserService ¶
type UserService struct { v1.UnimplementedUserServer // contains filtered or unexported fields }
func NewUserService ¶
func NewUserService(bz biz.IBiz) *UserService
func (*UserService) Create ¶
func (s *UserService) Create(ctx context.Context, dto *v1.UserCreateDTO) (*emptypb.Empty, error)
func (*UserService) PageList ¶
func (s *UserService) PageList(ctx context.Context, dto *v1.UserQueryDTO) (*v1.UserPageVO, error)
func (*UserService) Update ¶
func (s *UserService) Update(ctx context.Context, dto *v1.UserUpdateDTO) (*emptypb.Empty, error)
Click to show internal directories.
Click to hide internal directories.