using Furion.DataValidation;
using System.ComponentModel.DataAnnotations;
namespace GDZZ.Core.Service;
///
/// 字典值参数
///
public class DictDataInput : PageInputBase
{
///
/// 字典类型Id
///
public virtual long TypeId { get; set; }
///
/// 值
///
public virtual string Value { get; set; }
///
/// 编码
///
public virtual string Code { get; set; }
///
/// 排序
///
public virtual int Sort { get; set; }
///
/// 备注
///
public virtual string Remark { get; set; }
///
/// 状态(字典 0正常 1停用 2删除)
///
public virtual CommonStatus Status { get; set; }
}
public class QueryDictDataListInput
{
///
/// 字典类型Id
///
[Required(ErrorMessage = "字典类型Id不能为空"), DataValidation(ValidationTypes.Numeric)]
public long TypeId { get; set; }
}
public class AddDictDataInput : DictDataInput
{
///
/// 字典类型Id
///
[Required(ErrorMessage = "字典类型Id不能为空"), DataValidation(ValidationTypes.Numeric)]
public override long TypeId { get; set; }
///
/// 值
///
[Required(ErrorMessage = "字典值不能为空")]
public override string Value { get; set; }
///
/// 编码
///
[Required(ErrorMessage = "字典值编码不能为空")]
public override string Code { get; set; }
}
public class DeleteDictDataInput
{
///
/// 字典值Id
///
[Required(ErrorMessage = "字典值Id不能为空"), DataValidation(ValidationTypes.Numeric)]
public long Id { get; set; }
}
public class UpdateDictDataInput : AddDictDataInput
{
///
/// 字典值Id
///
[Required(ErrorMessage = "字典值Id不能为空"), DataValidation(ValidationTypes.Numeric)]
public long Id { get; set; }
}
public class QueryDictDataInput : DeleteDictDataInput
{
}