Dispenser/DispenserCore/Model/Entity/SystemParams.cs

36 lines
1.2 KiB
C#
Raw Permalink Normal View History

2024-08-16 07:20:09 +00:00
using System.ComponentModel;
using DispenserCommon.Atrributes;
using SQLite;
namespace DispenserCore.Model.Entity;
/// <summary>
/// 系统参数
/// </summary>
[Table("system_params")]
[Description("系统参数")]
public class SystemParams : Entity
{
[Column("device_type"), Description("设备类型")]
public string? DeviceType { get; set; }
[Column("version"), Description("版本号"), Property(IsReadOnly = true)]
public string? Version { get; set; }
[Column("name"), Description("名称")] public string? Name { get; set; }
[Column("acs_ip"), Description("ACS 控制器IP")]
public string AcsIp { get; set; }
[Column("image_storage_path"), Description("照片存储路径")]
public string? ImageStoragePath { get; set; }
[Column("camera_viewer_storage_path"), Description("相机预览控件图片存储路径")]
public string? CameraViewerStoragePath { get; set; }
[Column("enable_auto_clear_image"), Description("是否自动清除历史照片")]
public bool EnableAutoClearImage { get; set; }
[Column("retained_day"), Description("照片保留天数")]
public int RetainedDay { get; set; }
}