Platform upgrade: login auth fix, OCR/OSS upload, system menus and dicts, weather dashboard, weighing and invoice modules
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
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; }
|
||||
}
|
||||
Reference in New Issue
Block a user