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

31 lines
1.9 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 TableNamePowerInfo = "power_info"
// PowerInfo 存放控制页面的一些功能操作
type PowerInfo struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键,自增" json:"id"` // 主键,自增
FirstMenuUID string `gorm:"column:first_menu_uid;not null;comment:一级菜单的唯一标识" json:"first_menu_uid"` // 一级菜单的唯一标识
SecondMenuUID string `gorm:"column:second_menu_uid;not null;comment:二级菜单的唯一标识" json:"second_menu_uid"` // 二级菜单的唯一标识
SecondMenu string `gorm:"column:second_menu;not null;comment:二级菜单的名称" json:"second_menu"` // 二级菜单的名称
PowerItem string `gorm:"column:power_item;not null;comment:权限项的名称" json:"power_item"` // 权限项的名称
PowerID string `gorm:"column:power_id;not null;comment:权限的ID" json:"power_id"` // 权限的ID
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 PowerInfo's table name
func (*PowerInfo) TableName() string {
return TableNamePowerInfo
}