ums_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() *umsAdminQueryBuilder

Types

type UmsAdmin

type UmsAdmin struct {
	Id         int64     //
	Username   string    //
	Password   string    //
	Icon       string    // 头像
	Email      string    // 邮箱
	NickName   string    // 昵称
	Note       string    // 备注信息
	CreateTime time.Time `gorm:"autoCreateTime"`                          // 创建时间
	LoginTime  time.Time `gorm:"type:time;default:'1000-01-01 00:00:00'"` // 最后登录时间
	Status     int32     // 帐号启用状态:0->禁用;1->启用
}

UmsAdmin 后台用户表

func NewModel

func NewModel() *UmsAdmin

func (*UmsAdmin) Create

func (t *UmsAdmin) 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