Files
zmkgC/internal/app/system/model/app_roles.go
2025-07-07 20:11:59 +08:00

38 lines
1.3 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// ==========================================================================
// 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"`
}