|
// Copyright (c) Shenyang Leading Edge Intelligent Technology Co., Ltd. All rights reserved.
|
|
|
|
package base
|
|
|
|
import (
|
|
"LAPP_GAAS_GFrame_BACKEND/grmi"
|
|
"xorm.io/core"
|
|
)
|
|
|
|
/******************************************************************************
|
|
*
|
|
* @Struct Name : Menu
|
|
*-----------------------------------------------------------------------------
|
|
*
|
|
* @Description : Menu的实体映射
|
|
*
|
|
* @Author : 代码生成器创建
|
|
*
|
|
* @Date : 2021-04-13 15:04:54
|
|
*
|
|
******************************************************************************/
|
|
type Menu struct {
|
|
MenuId int `xorm:"pk int 'MenuId' autoincr" json:"Menu-MenuId"`
|
|
MenuName string `xorm:"varchar(40) 'MenuName'" json:"Menu-MenuName"`
|
|
Title string `xorm:"varchar(40) 'Title'" json:"Menu-Title"`
|
|
Icon string `xorm:"varchar(40) 'Icon'" json:"Menu-Icon"`
|
|
Path string `xorm:"varchar(128) 'Path'" json:"Menu-Path"`
|
|
Paths string `xorm:"varchar(128) 'Paths'" json:"Menu-Paths"`
|
|
MenuType string `xorm:"varchar(1) 'MenuType'" json:"Menu-MenuType"`
|
|
Action string `xorm:"varchar(16) 'Action'" json:"Menu-Action"`
|
|
Permission string `xorm:"varchar(32) 'Permission'" json:"Menu-Permission"`
|
|
ParentId int `xorm:"int 'ParentId'" json:"Menu-ParentId"`
|
|
NoCache string `xorm:"varchar(1) 'NoCache'" json:"Menu-NoCache"`
|
|
BreadCrumb string `xorm:"varchar(32) 'BreadCrumb'" json:"Menu-BreadCrumb"`
|
|
Component string `xorm:"varchar(32) 'Component'" json:"Menu-Component"`
|
|
Sort int `xorm:"int 'Sort'" json:"Menu-Sort"`
|
|
Visible string `xorm:"varchar(1) 'Visible'" json:"Menu-Visible"`
|
|
IsFrame int `xorm:"int 'IsFrame'" json:"Menu-IsFrame"`
|
|
LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"Menu-LastModify"`
|
|
LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"Menu-LastUser"`
|
|
CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"Menu-CreateTime"`
|
|
}
|
|
|
|
/******************************************************************************
|
|
*
|
|
* @Function Name : GetKey
|
|
*-----------------------------------------------------------------------------
|
|
*
|
|
* @Description : 获取实体的主键
|
|
*
|
|
* @Return Value : 实体的主键
|
|
*
|
|
* @Author : 代码生成器创建
|
|
*
|
|
* @Date : 2021-04-13 15:04:54
|
|
*
|
|
******************************************************************************/
|
|
func (self *Menu) GetKey() core.PK {
|
|
return core.PK{self.MenuId}
|
|
}
|