mirror of
https://git.oceanpay.cc/danial/kami_scripts.git
synced 2025-12-18 22:13:23 +00:00
43 lines
2.9 KiB
Go
43 lines
2.9 KiB
Go
// 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 TableNameSysAuthRule = "sys_auth_rule"
|
|
|
|
// SysAuthRule 菜单节点表
|
|
type SysAuthRule struct {
|
|
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
|
|
Pid int32 `gorm:"column:pid;not null;comment:父ID" json:"pid"` // 父ID
|
|
Name string `gorm:"column:name;not null;comment:规则名称" json:"name"` // 规则名称
|
|
Title string `gorm:"column:title;not null;comment:规则名称" json:"title"` // 规则名称
|
|
Icon string `gorm:"column:icon;not null;comment:图标" json:"icon"` // 图标
|
|
Condition string `gorm:"column:condition;not null;comment:条件" json:"condition"` // 条件
|
|
Remark string `gorm:"column:remark;not null;comment:备注" json:"remark"` // 备注
|
|
MenuType int32 `gorm:"column:menu_type;not null;comment:类型 0目录 1菜单 2按钮" json:"menu_type"` // 类型 0目录 1菜单 2按钮
|
|
Weigh int32 `gorm:"column:weigh;not null;comment:权重" json:"weigh"` // 权重
|
|
IsHide int32 `gorm:"column:is_hide;not null;comment:显示状态" json:"is_hide"` // 显示状态
|
|
Path string `gorm:"column:path;not null;comment:路由地址" json:"path"` // 路由地址
|
|
Component string `gorm:"column:component;not null;comment:组件路径" json:"component"` // 组件路径
|
|
IsLink int32 `gorm:"column:is_link;not null;comment:是否外链 1是 0否" json:"is_link"` // 是否外链 1是 0否
|
|
ModuleType string `gorm:"column:module_type;not null;comment:所属模块" json:"module_type"` // 所属模块
|
|
ModelID int32 `gorm:"column:model_id;not null;comment:模型ID" json:"model_id"` // 模型ID
|
|
IsIframe int32 `gorm:"column:is_iframe;not null;comment:是否内嵌iframe" json:"is_iframe"` // 是否内嵌iframe
|
|
IsCached int32 `gorm:"column:is_cached;not null;comment:是否缓存" json:"is_cached"` // 是否缓存
|
|
Redirect string `gorm:"column:redirect;not null;comment:路由重定向地址" json:"redirect"` // 路由重定向地址
|
|
IsAffix int32 `gorm:"column:is_affix;not null;comment:是否固定" json:"is_affix"` // 是否固定
|
|
LinkURL string `gorm:"column:link_url;not null;comment:链接地址" json:"link_url"` // 链接地址
|
|
CreatedAt time.Time `gorm:"column:created_at;comment:创建日期" json:"created_at"` // 创建日期
|
|
UpdatedAt time.Time `gorm:"column:updated_at;comment:修改日期" json:"updated_at"` // 修改日期
|
|
}
|
|
|
|
// TableName SysAuthRule's table name
|
|
func (*SysAuthRule) TableName() string {
|
|
return TableNameSysAuthRule
|
|
}
|