新增 web 后台菜单、新增角色表
This commit is contained in:
28
internal/model/do/menus.go
Normal file
28
internal/model/do/menus.go
Normal 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 // 软删除时间戳
|
||||
}
|
||||
21
internal/model/do/role_menus.go
Normal file
21
internal/model/do/role_menus.go
Normal 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 // 软删除时间戳
|
||||
}
|
||||
23
internal/model/do/roles.go
Normal file
23
internal/model/do/roles.go
Normal 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 // 软删除时间戳
|
||||
}
|
||||
Reference in New Issue
Block a user