service

package
v0.0.0-...-42463de Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: MIT Imports: 8 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 {
	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 (s *AuthService) LoginUserInfo(ctx context.Context, empty *emptypb.Empty) (*v1.UserVO, error)

func (*AuthService) Logout

func (s *AuthService) Logout(ctx context.Context, empty *emptypb.Empty) (*emptypb.Empty, error)

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) Delete

func (s *UserService) Delete(ctx context.Context, request *v1.IdRequest) (*emptypb.Empty, error)

func (*UserService) FindById

func (s *UserService) FindById(ctx context.Context, request *v1.IdRequest) (*v1.UserVO, 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)

Jump to

Keyboard shortcuts

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