Files
nl-video-api/internal/model/entity/permission.go
2025-08-03 00:11:15 +08:00

25 lines
1.5 KiB
Go
Raw Permalink 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.
package entity
// Permission 权限实体
type Permission struct {
Id int `json:"id" orm:"id,primary"` // 权限ID
ParentId int `json:"parent_id" orm:"parent_id"` // 父级权限ID
Name string `json:"name" orm:"name"` // 权限名称
Slug string `json:"slug" orm:"slug"` // 权限标识
Type int `json:"type" orm:"type"` // 权限类型1-菜单2-按钮3-接口
Path string `json:"path" orm:"path"` // 路由路径
Component string `json:"component" orm:"component"` // 组件路径
Icon string `json:"icon" orm:"icon"` // 图标
Method string `json:"method" orm:"method"` // 请求方法
ApiPath string `json:"api_path" orm:"api_path"` // API路径
Description string `json:"description" orm:"description"` // 权限描述
IsHidden int `json:"is_hidden" orm:"is_hidden"` // 是否隐藏0-否1-是
IsCache int `json:"is_cache" orm:"is_cache"` // 是否缓存0-否1-是
IsSystem int `json:"is_system" orm:"is_system"` // 是否系统权限0-否1-是
Sort int `json:"sort" orm:"sort"` // 排序
Status int `json:"status" orm:"status"` // 状态1-启用0-禁用
CreatedAt string `json:"created_at" orm:"created_at"` // 创建时间
UpdatedAt string `json:"updated_at" orm:"updated_at"` // 更新时间
DeletedAt string `json:"deleted_at" orm:"deleted_at"` // 删除时间
}