Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Directory 目录 Directory string = "M" // Menu 菜单 Menu string = "C" // Button 按钮 Button string = "F" )
Menu 菜单中的类型枚举值
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActiveRecord ¶
type ActiveRecord interface { schema.Tabler SetCreateBy(createBy int) SetUpdateBy(updateBy int) Generate() ActiveRecord GetId() interface{} }
type BaseUser ¶
type BaseUser struct { Username string `json:"username" gorm:"type:varchar(100);comment:用户名"` Salt string `json:"-" gorm:"type:varchar(255);comment:加盐;<-"` PasswordHash string `json:"-" gorm:"type:varchar(128);comment:密码hash;<-"` Password string `json:"password" gorm:"-"` }
BaseUser 密码登录基础用户
func (*BaseUser) GetPasswordHash ¶
GetPasswordHash 获取密码hash
type ControlBy ¶
type ControlBy struct { CreateBy int `json:"createBy" gorm:"index;comment:create user"` UpdateBy int `json:"updateBy" gorm:"index;comment:update user"` }
create and update by user
func (*ControlBy) SetCreateBy ¶
SetCreateBy creater id
type Migration ¶
type ModelTime ¶
type ModelTime struct { CreatedAt time.Time `json:"createdAt" gorm:"comment:create date"` UpdatedAt time.Time `json:"updatedAt" gorm:"comment:update date"` DeletedAt soft_delete.DeletedAt `json:"-" gorm:"index;comment:flag"` }
Org model Time and delete flag
Click to show internal directories.
Click to hide internal directories.