entity

package
v0.0.0-...-6d513be Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FindOptions

type FindOptions struct {
	Email        string
	Verification string
	Token        string
}

type User

type User struct {
	ID           string
	Name         string
	Email        string
	Token        string
	Verification string
	Status       UserStatus
	Password     string
	CreatedAt    int64
	LastLoginAt  int64
}

func (*User) Info

func (u *User) Info() *User

去除敏感信息

type UserStatus

type UserStatus uint
const (
	Normal  UserStatus = iota + 1 //正常
	Disable                       //禁用
)

Jump to

Keyboard shortcuts

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