using Model.Entity.Config; namespace Model.Dto.Config { /// /// 产品 DTO(Id 由 long 改为 string,避免前端精度丢失) /// public class ProductDto { /// 主键 Id(long → string) public string Id { get; set; } /// 型号(唯一) public string Model { get; set; } /// 产品名称 public string? Name { get; set; } /// 产品分类Id public string CategoryId { get; set; } /// 分类名称(只读展示) public string? CategoryName { get; set; } /// 制造商 public string? Manufacturer { get; set; } /// 产品描述 public string? Description { get; set; } /// 通讯协议 public IotDeviceProtocolEnum ProtocolType { get; set; } /// 消息模型 public string? MessageModel { get; set; } /// 是否启用 public bool IsEnabled { get; set; } = true; /// 备注 public string? Remark { get; set; } /// 创建时间 public DateTime? CreateTime { get; set; } } }