admin

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewQueryBuilder

func NewQueryBuilder() *adminQueryBuilder

Types

type Admin

type Admin struct {
	Id          int64     // 主键
	Username    string    // 用户名
	Password    string    // 密码
	Nickname    string    // 昵称
	Mobile      string    // 手机号
	IsUsed      int32     // 是否启用 1:是  -1:否
	IsDeleted   int32     // 是否删除 1:是  -1:否
	CreatedAt   time.Time `gorm:"type:time;default:'1000-01-01 00:00:00'"` // 创建时间
	CreatedUser string    // 创建人
	UpdatedAt   time.Time `gorm:"type:time;default:'1000-01-01 00:00:00'"` // 更新时间
	UpdatedUser string    // 更新人
}

Admin 管理员表

func NewModel

func NewModel() *Admin

func (*Admin) Create

func (t *Admin) Create(db *gorm.DB) (id int64, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳