You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.1 KiB
34 lines
1.1 KiB
package menu
|
|
|
|
//菜单的数据结构体
|
|
/*
|
|
CREATE TABLE `recook_menu` (
|
|
`id` smallint(6) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
|
|
`name` char(40) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT '' COMMENT '菜单名称',
|
|
`parentid` smallint(6) DEFAULT '0' COMMENT '父级菜单id',
|
|
`path` char(100) DEFAULT '' COMMENT '前端跳转路径',
|
|
`action` varchar(200) DEFAULT '' COMMENT '后端控制权限',
|
|
`icon` char(100) DEFAULT '' COMMENT '菜单图标',
|
|
`component` char(255) DEFAULT '' COMMENT '菜单组件',
|
|
`listorder` smallint(6) unsigned DEFAULT '0' COMMENT '菜单排序',
|
|
`display` enum('1','0') DEFAULT '1' COMMENT '1正常0禁用',
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=295 DEFAULT CHARSET=utf8;
|
|
*/
|
|
|
|
type RecookMenu struct {
|
|
ID int `json:"id"`
|
|
Name string `json:"name"`
|
|
Parentid int `json:"parentid"`
|
|
Path string `json:"path"`
|
|
Action string `json:"action"`
|
|
Icon string `json:"icon"`
|
|
Component string `json:"component"`
|
|
Listorder int `json:"listorder"`
|
|
Display string `json:"display"`
|
|
}
|
|
|
|
func (*RecookMenu) TableName() string {
|
|
return "recook_menu"
|
|
}
|