You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
1.4 KiB

7 months ago
using System.ComponentModel.DataAnnotations;
using Common.Enum;
using Entity.DbModel.System;
using HybirdFrameworkCore.Entity;
7 months ago
namespace Entity.Dto.Req
{
public class DictDataReq : BaseIdReq
{
/// <summary>
/// 状态
/// </summary>
public StatusEnum Status { get; set; }
}
public class PageDictDataReq : QueryPageModel
7 months ago
{
/// <summary>
/// 字典类型Id
/// </summary>
public long DictTypeId { get; set; }
/// <summary>
/// 值
/// </summary>
public string Value { get; set; } = "";
/// <summary>
/// 编码
/// </summary>
public string Code { get; set; } = "";
}
public class AddDictDataReq : SysDictData
{
}
public class UpdateDictDataReq : AddDictDataReq
{
}
public class DeleteDictDataReq : BaseIdReq
{
}
public class GetDataDictDataReq
{
/// <summary>
/// 字典类型Id
/// </summary>
public long DictTypeId { get; set; }
}
public class QueryDictDataReq
{
/// <summary>
/// 编码
/// </summary>
[Required(ErrorMessage = "字典唯一编码不能为空")]
public string Code { get; set; }
/// <summary>
/// 状态
/// </summary>
public int? Status { get; set; }
}
}