Files
F8WebAI/backend/AgriculturalPlatform.Api/Models/SysRole.cs
T

28 lines
707 B
C#
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.
namespace AgriculturalPlatform.Api.Models;
/// <summary>角色</summary>
public class SysRole
{
public int Id { get; set; }
public string Name { get; set; } = string.Empty;
/// <summary>角色编码(如 super_admin / company_admin / station_staff / viewer</summary>
public string Code { get; set; } = string.Empty;
public string Description { get; set; } = string.Empty;
/// <summary>系统内置角色不可删除</summary>
public bool IsSystem { get; set; }
public DateTime CreatedAt { get; set; } = DateTime.Now;
}
/// <summary>角色-菜单关联</summary>
public class SysRoleMenu
{
public int RoleId { get; set; }
public int MenuId { get; set; }
}