设备管理模块Entity添加和controller

This commit is contained in:
2026-08-28 10:40:28 +08:00
parent 9b852e5c95
commit 3e3341dd19
11 changed files with 994 additions and 8 deletions
@@ -0,0 +1,43 @@
using SqlSugar;
namespace Model.Entity.Asset
{
/// <summary>
/// 设备分类(资产分类:支持按实验室/楼层/部门/位置/产品等多级树形分类,可按类型筛选展示)
/// </summary>
public class EquipmentCategoryEntity : BaseEntity
{
/// <summary>
/// 父级分类Id0表示顶级)
/// </summary>
public long ParentId { get; set; }
/// <summary>
/// 分类名称
/// </summary>
[SugarColumn(Length = 100)]
public string? Name { get; set; }
/// <summary>
/// 分类编码
/// </summary>
[SugarColumn(Length = 50)]
public string? Code { get; set; }
/// <summary>
/// 层级(1级、2级……,便于树形展示与筛选)
/// </summary>
public int Level { get; set; } = 1;
/// <summary>
/// 排序号
/// </summary>
public int Sort { get; set; }
/// <summary>
/// 备注
/// </summary>
[SugarColumn(Length = 500)]
public string? Remark { get; set; }
}
}