user

package
v0.0.0-...-5ad4795 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IUserSrv

type IUserSrv interface {
	MobileLogin(ctx context.Context, mobile, password string) (*UserDTO, error)
	Register(ctx context.Context, mobile, password string) (*UserDTO, error)
	Update(ctx context.Context, dto *UserDTO) error
	Get(ctx context.Context, userId uint) (*UserDTO, error)
	GetByMobile(ctx context.Context, mobile string) (*UserDTO, error)
	CheckPassword(ctx context.Context, password, EncryptedPassword string) (bool, error)
}

func NewUserSrv

func NewUserSrv(iu du.IUserData, jwtOps *options.JwtOptions) IUserSrv

type UserDTO

type UserDTO struct {
	*du.UserDO
	Expire int64
}

type UserDTOList

type UserDTOList struct {
	Total int64      `json:"total"`
	Items []*UserDTO `json:"items"`
}

Jump to

Keyboard shortcuts

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