user

package
v0.0.0-...-124573e Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2022 License: MIT Imports: 5 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{}

func (*UserService) AddLoginLog

func (service *UserService) AddLoginLog(userLoginLog user.UserLoginLog) error

添加用户登录日志

func (*UserService) IsUsernameExists

func (service *UserService) IsUsernameExists(usernameType, username string) (bool, error)

查询用户名是否已被注册

func (*UserService) Login

func (service *UserService) Login(usernameType, username, pwd string) (*user.User, error)

按用户名获取用户信息

func (*UserService) Register

func (service *UserService) Register(loginMethod string, user user.User) error

注册用户

Jump to

Keyboard shortcuts

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