Files
kami_scripts/order/model/role_info.gen.go

35 lines
2.6 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
package model
import (
"time"
)
const TableNameRoleInfo = "role_info"
// RoleInfo 角色表
type RoleInfo struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键,自增" json:"id"` // 主键,自增
RoleName string `gorm:"column:role_name;not null;comment:角色名称" json:"role_name"` // 角色名称
RoleUID string `gorm:"column:role_uid;not null;comment:角色唯一标识号" json:"role_uid"` // 角色唯一标识号
ShowFirstMenu string `gorm:"column:show_first_menu;not null;comment:可以展示的一级菜单名" json:"show_first_menu"` // 可以展示的一级菜单名
ShowFirstUID string `gorm:"column:show_first_uid;not null;comment:可以展示的一级菜单uid" json:"show_first_uid"` // 可以展示的一级菜单uid
ShowSecondMenu string `gorm:"column:show_second_menu;not null;comment:可以展示的二级菜单名" json:"show_second_menu"` // 可以展示的二级菜单名
ShowSecondUID string `gorm:"column:show_second_uid;not null;comment:可以展示的二级菜单uid" json:"show_second_uid"` // 可以展示的二级菜单uid
ShowPower string `gorm:"column:show_power;not null;comment:可以展示的权限项名称" json:"show_power"` // 可以展示的权限项名称
ShowPowerUID string `gorm:"column:show_power_uid;not null;comment:可以展示的权限项uid" json:"show_power_uid"` // 可以展示的权限项uid
Remark string `gorm:"column:remark;not null;comment:角色描述" json:"remark"` // 角色描述
Creater string `gorm:"column:creater;not null;comment:创建者的id" json:"creater"` // 创建者的id
Status string `gorm:"column:status;not null;default:active;comment:菜单的状态情况默认是active" json:"status"` // 菜单的状态情况默认是active
CreateTime time.Time `gorm:"column:create_time;comment:创建时间" json:"create_time"` // 创建时间
UpdateTime time.Time `gorm:"column:update_time;not null;default:CURRENT_TIMESTAMP;comment:最近更新时间" json:"update_time"` // 最近更新时间
}
// TableName RoleInfo's table name
func (*RoleInfo) TableName() string {
return TableNameRoleInfo
}