Files
2025-08-03 00:11:15 +08:00

17 lines
911 B
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
// Role 角色实体
type Role struct {
Id int `json:"id" orm:"id,primary"` // 角色ID
Name string `json:"name" orm:"name"` // 角色名称
Slug string `json:"slug" orm:"slug"` // 角色标识
Description string `json:"description" orm:"description"` // 角色描述
Level int `json:"level" orm:"level"` // 角色等级
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"` // 删除时间
}