设备类添加产品字段、添加物模型类,新增产品CRUD方法

This commit is contained in:
2026-09-03 17:16:28 +08:00
parent cfa8e78d33
commit bcd6484f45
29 changed files with 1611 additions and 23 deletions
@@ -0,0 +1,28 @@
using Model;
using Model.Dto.Config;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Service.Interface.Config
{
/// <summary>
/// 物模型点 服务接口(产品/设备通用,按 OwnerType+OwnerId 归属)
/// </summary>
public interface IThingPointService
{
/// <summary>查询某归属下的点列表</summary>
Task<Result<List<ThingModelPointDto>>> GetListAsync(int ownerType, long ownerId, string? keyword);
/// <summary>查询单点详情</summary>
Task<Result<ThingModelPointDto>> GetByIdAsync(long id);
/// <summary>新增点(同一归属内 Code 唯一)</summary>
Task<Result> AddAsync(ThingModelPointDto dto);
/// <summary>修改点</summary>
Task<Result> UpdateAsync(ThingModelPointDto dto);
/// <summary>删除点(软删除)</summary>
Task<Result> DeleteAsync(long id);
}
}