新增 web 后台菜单、新增角色表

This commit is contained in:
2025-06-03 13:33:35 +08:00
parent fdc9cc3463
commit bcd274c750
13 changed files with 544 additions and 29 deletions

View File

@ -0,0 +1,28 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// Menus is the golang structure of table menus for DAO operations like Where/Data.
type Menus struct {
g.Meta `orm:"table:menus, do:true"`
Id interface{} // 菜单ID
ParentId interface{} // 父级菜单ID
Name interface{} // 菜单名称
Path interface{} // 前端路由路径
Component interface{} // 前端组件路径
Type interface{} // 类型1=目录父级菜单2=菜单(功能页面)
Icon interface{} // 图标
Sort interface{} // 排序
Hidden interface{} // 是否隐藏0=显示1=隐藏
Status interface{} // 状态1=启用2=禁用
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
DeletedAt *gtime.Time // 软删除时间戳
}

View File

@ -0,0 +1,21 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// RoleMenus is the golang structure of table role_menus for DAO operations like Where/Data.
type RoleMenus struct {
g.Meta `orm:"table:role_menus, do:true"`
Id interface{} // ID
RoleId interface{} // 角色ID
MenuId interface{} // 菜单ID
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
DeletedAt *gtime.Time // 软删除时间戳
}

View File

@ -0,0 +1,23 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// Roles is the golang structure of table roles for DAO operations like Where/Data.
type Roles struct {
g.Meta `orm:"table:roles, do:true"`
Id interface{} // 角色ID
Name interface{} // 角色名称
Code interface{} // 角色编码
Description interface{} // 角色描述
Status interface{} // 状态1=启用2=禁用
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
DeletedAt *gtime.Time // 软删除时间戳
}