Platform upgrade: login auth fix, OCR/OSS upload, system menus and dicts, weather dashboard, weighing and invoice modules

This commit is contained in:
2026-08-14 01:12:33 +08:00
parent c377421a3e
commit 8099ebae0a
75 changed files with 5611 additions and 473 deletions
@@ -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; }
}