entity

package
v0.0.0-...-bd15ea0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AdministratorStatusOK 状态正常
	AdministratorStatusOK = 1
	// AdministratorStatusForbid 状态禁用
	AdministratorStatusForbid = 2
	// AdministratorDeleted 用户已删除
	AdministratorDeleted = "1"
	// AdministratorUnDeleted 用户未删除
	AdministratorUnDeleted = "0"
)

Variables

This section is empty.

Functions

func HasDelete

func HasDelete() func(db *gorm.DB) *gorm.DB

func Paginate

func Paginate(page, pageSize int64) func(db *gorm.DB) *gorm.DB

Paginate 分页

func UnDelete

func UnDelete() func(db *gorm.DB) *gorm.DB

UnDelete 非删除数据

Types

type AdministratorEntity

type AdministratorEntity struct {
	Id        int64
	Username  string
	Password  string
	Salt      string
	Mobile    string
	Nickname  string
	Avatar    string
	Status    int64
	CreatedAt *time.Time
	UpdatedAt *time.Time
	DeletedAt string
}

func (AdministratorEntity) TableName

func (AdministratorEntity) TableName() string

Jump to

Keyboard shortcuts

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