service

package
v0.0.0-...-75939a1 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is service providers.

Functions

func HandlerError

func HandlerError(f func(ctx context.Context) error) func()

func NewAuthService

func NewAuthService(uc *biz.AuthUseCase) userV1.AuthServiceServer

认证授权服务

func NewUserService

func NewUserService(user *biz.UserUseCase) userV1.UserServiceServer

Types

type AuthService

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

func (AuthService) Captcha

func (AuthService) Login

func (AuthService) NewPasswd

func (s AuthService) NewPasswd(ctx context.Context, req *userV1.NewPasswdReq) (*v1.Empty, error)

func (AuthService) RefreshToken

func (s AuthService) RefreshToken(ctx context.Context, empty *v1.Empty) (*userV1.LoginToken, error)

type CronService

type CronService struct {
}

func NewCronService

func NewCronService() *CronService

func (*CronService) Register

func (s *CronService) Register(manager *cron.CronManager)

type UserService

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

func (UserService) CreateUser

func (u UserService) CreateUser(ctx context.Context, req *userV1.CreateUserReq) (*v1.User, error)

func (UserService) DelUser

func (u UserService) DelUser(ctx context.Context, ids *v1.Ids) (*v1.Empty, error)

func (UserService) GetUser

func (u UserService) GetUser(ctx context.Context, id *v1.Id) (*v1.User, error)

func (UserService) ListUser

func (UserService) UpdateUser

func (u UserService) UpdateUser(ctx context.Context, req *userV1.UpdateUserReq) (*v1.User, error)

func (UserService) UserInfo

func (u UserService) UserInfo(ctx context.Context, id *v1.Empty) (*v1.User, error)

当前用户登陆信息

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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