Files
IOT_API/Model/Dto/System/SystemParamDto.cs

36 lines
1.2 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.
namespace Model.Dto.System
{
/// <summary>
/// 系统参数 DTO
/// </summary>
public class SystemParamDto
{
public string Id { get; set; }
public string ParamKey { get; set; }
public string ParamName { get; set; }
public string? ParamValue { get; set; }
/// <summary>值类型(0=int, 1=text, 2=enum, 3=json</summary>
public byte ParamType { get; set; }
/// <summary>枚举选项(原始 JSON 字符串,由前端解析;仅 ParamType=enum 有值)</summary>
public string? ParamOptions { get; set; }
public string? Unit { get; set; }
public string? Group { get; set; }
public int Sort { get; set; }
public string? Remark { get; set; }
/// <summary>是否系统内置(1=不可删,仅允许改 Value</summary>
public byte IsSystem { get; set; }
public string? LastUpdateUser { get; set; }
public DateTime? LastUpdateTime { get; set; }
public DateTime? CreateTime { get; set; }
}
/// <summary>
/// 业务侧批量取值返回项
/// </summary>
public class SystemParamValueDto
{
public string Key { get; set; }
public string? Value { get; set; }
}
}