51 lines
1.4 KiB
C#
51 lines
1.4 KiB
C#
using Dlhis.Entity.Canteen.Enums;
|
|
using Kurisu.Core.DataAccess.Entity;
|
|
using SqlSugar;
|
|
using SqlSugar.DbConvert;
|
|
|
|
namespace Dlhis.Entity.Basic;
|
|
|
|
/// <summary>
|
|
/// 就餐配置
|
|
/// </summary>
|
|
[SugarTable(TableName = "CanteenSetting", TableDescription = "就餐配置")]
|
|
public class CanteenSettingEntity : SugarBaseEntity, ITenantId
|
|
{
|
|
/// <summary>
|
|
/// 唯一类型
|
|
/// </summary>
|
|
[SugarColumn(ColumnDataType = "varchar(50)", SqlParameterDbType = typeof(EnumToStringConvert), ColumnDescription = "唯一类型")]
|
|
public CanteenSettingUnqiueEnumType UniqueType { get; set; }
|
|
|
|
/// <summary>
|
|
/// 唯一值
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "唯一值")]
|
|
public string UniqueValue { get; set; }
|
|
|
|
/// <summary>
|
|
/// 分类
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "分类")]
|
|
public string Catalog { get; set; }
|
|
|
|
/// <summary>
|
|
/// 参数
|
|
/// </summary>
|
|
[SugarColumn(ColumnDataType = "varchar(50)", ColumnDescription = "参数", SqlParameterDbType = typeof(EnumToStringConvert))]
|
|
public CanteenSettingItemEnumType Item { get; set; }
|
|
|
|
/// <summary>
|
|
/// 值
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "值")]
|
|
public string Value { get; set; }
|
|
|
|
/// <summary>
|
|
/// 是否启用
|
|
/// </summary>
|
|
[SugarColumn(ColumnDataType = "bit", ColumnDescription = "是否启用")]
|
|
public bool Enable { get; set; }
|
|
|
|
public string TenantId { get; set; }
|
|
} |