service

package
v0.0.0-...-9bdafd8 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetUserService

type GetUserService struct {
	// contains filtered or unexported fields
}

func NewGetUserService

func NewGetUserService(ctx context.Context) *GetUserService

func (*GetUserService) GetUser

func (s *GetUserService) GetUser(req *user.GetUserRequest, myID int64) (*user.User, error)

GetUser 获取用户

type LoginService

type LoginService struct {
	// contains filtered or unexported fields
}

func NewLoginService

func NewLoginService(ctx context.Context) *LoginService

NewLoginService new LoginService

func (*LoginService) Login

func (s *LoginService) Login(req *user.UserLoginRequest) (int64, string, error)

Login 检查账号密码返回id和token

type RegisterService

type RegisterService struct {
	// contains filtered or unexported fields
}

func NewRegisterService

func NewRegisterService(ctx context.Context) *RegisterService

func (*RegisterService) Register

func (s *RegisterService) Register(req *user.UserRegisterRequest) error

Register 注册

Jump to

Keyboard shortcuts

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