This commit is contained in:
2025-07-07 20:11:59 +08:00
parent ab0fdbc447
commit 06e3aa2eb3
2009 changed files with 193082 additions and 0 deletions

View File

@ -0,0 +1,37 @@
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2024-05-28 15:11:36
// 生成路径: internal/app/system/model/app_roles.go
// 生成人gfast
// desc:app角色
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// AppRolesInfoRes is the golang structure for table app_roles.
type AppRolesInfoRes struct {
gmeta.Meta `orm:"table:app_roles"`
RoleId uint `orm:"role_id,primary" json:"roleId"` //
RoleName string `orm:"role_name" json:"roleName"` // 角色名
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` //
}
type AppRoleDetails struct {
gmeta.Meta `orm:"table:app_roles"`
RoleId uint `orm:"role_id,primary" json:"roleId"` //
RoleName string `orm:"role_name" json:"roleName"` // 角色名
Menus []AppMenusInfoRes `json:"menus"` // 拥有的菜单
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` //
}
type AppRolesListRes struct {
RoleId uint `json:"roleId"`
RoleName string `json:"roleName"`
CreatedAt *gtime.Time `json:"createdAt"`
}