Files
IOT_API/Model/Dto/Asset/EquipmentAttachmentDto.cs

44 lines
1.4 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using Model.Entity.Asset;
namespace Model.Dto.Asset
{
/// <summary>
/// 设备附件 DTOId 由 long 改为 string,避免前端精度丢失)
/// </summary>
public class EquipmentAttachmentDto
{
/// <summary>主键 Idlong → string</summary>
public string Id { get; set; }
/// <summary>删除状态(0、未删除;1、已删除)</summary>
public byte IsDel { get; set; }
/// <summary>创建时间</summary>
public DateTime? CreateTime { get; set; }
/// <summary>设备Id(关联 EquipmentEntity.Id,雪花 Id 转 string 防精度丢失)</summary>
public string EquipmentId { get; set; }
/// <summary>文件名称</summary>
public string? FileName { get; set; }
/// <summary>文件类型(说明书/合格证/校准证书等)</summary>
public AttachmentTypeEnum FileType { get; set; }
/// <summary>文件扩展名(如 .pdf、.jpg</summary>
public string? FileExt { get; set; }
/// <summary>文件存储地址</summary>
public string? FileUrl { get; set; }
/// <summary>文件大小(byte</summary>
public long FileSize { get; set; }
/// <summary>上传人</summary>
public string? Uploader { get; set; }
/// <summary>备注</summary>
public string? Remark { get; set; }
}
}