service

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserService

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

UserService 用户业务

func NewUserService

func NewUserService(userMapper *mapper.UserMapper, userCache *cache.UserCache) *UserService

NewUserService 创建用户业务操作

func (*UserService) CheckToken

CheckToken 检查token

func (*UserService) GetProfile

GetProfile 获取信息 TODO 多节点,分布式锁

func (*UserService) Login

func (s *UserService) Login(in pb.LoginRequest) (pb.LoginResponse, error)

Login 用户登录

func (*UserService) Logout

Logout 退出登录

func (*UserService) Register

Register 用户注册

func (*UserService) UpdateProfile

UpdateProfile 更新信息 更新字段,延时2S双删

Jump to

Keyboard shortcuts

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