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.
66 lines
1.3 KiB
66 lines
1.3 KiB
using System.ComponentModel.DataAnnotations;
|
|
using Common.Enum;
|
|
using Entity.DbModel.System;
|
|
|
|
namespace Entity.Dto.Req
|
|
{
|
|
public class DictDataReq : BaseIdReq
|
|
{
|
|
/// <summary>
|
|
/// 状态
|
|
/// </summary>
|
|
public StatusEnum Status { get; set; }
|
|
}
|
|
|
|
public class PageDictDataReq : BasePageReq
|
|
{
|
|
/// <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; }
|
|
}
|
|
} |