DigitalFactory/Admin.NET/Admin.NET.Application/Service/CodeElement/Dto/CodeElementInput.cs

137 lines
2.8 KiB
C#
Raw Normal View History

2024-05-24 10:22:01 +00:00
using Admin.NET.Core;
using Microsoft.AspNetCore.Components.Web.Virtualization;
using System.ComponentModel.DataAnnotations;
namespace Admin.NET.Application;
/// <summary>
/// 码元素基础输入参数
/// </summary>
public class CodeElementBaseInput
{
/// <summary>
/// 码包名称
/// </summary>
public virtual string? CodeName { get; set; }
/// <summary>
/// 码长度
/// </summary>
public virtual int CodeLength { get; set; }
/// <summary>
/// 导出格式示例
/// </summary>
public virtual string? ExportFormatExample { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public virtual DateTime? CreateTime { get; set; }
/// <summary>
/// 更新时间
/// </summary>
public virtual DateTime? UpdateTime { get; set; }
/// <summary>
/// 创建者Id
/// </summary>
public virtual long? CreateUserId { get; set; }
/// <summary>
/// 创建者姓名
/// </summary>
public virtual string? CreateUserName { get; set; }
/// <summary>
/// 修改者Id
/// </summary>
public virtual long? UpdateUserId { get; set; }
/// <summary>
/// 修改者姓名
/// </summary>
public virtual string? UpdateUserName { get; set; }
/// <summary>
/// 软删除
/// </summary>
public virtual bool IsDelete { get; set; }
}
/// <summary>
/// 码元素分页查询输入参数
/// </summary>
public class CodeElementInput : BasePageInput
{
/// <summary>
/// 关键字查询
/// </summary>
public string? SearchKey { get; set; }
/// <summary>
/// 码包名称
/// </summary>
public string? CodeName { get; set; }
/// <summary>
/// 码长度
/// </summary>
public virtual int CodeLength { get; set; }
/// <summary>
/// 导出格式示例
/// </summary>
public string? ExportFormatExample { get; set; }
}
/// <summary>
/// 码元素增加输入参数
/// </summary>
public class AddCodeElementInput : CodeElementBaseInput
{
/// <summary>
/// 软删除
/// </summary>
[Required(ErrorMessage = "软删除不能为空")]
public override bool IsDelete { get; set; }
}
/// <summary>
/// 码元素删除输入参数
/// </summary>
public class DeleteCodeElementInput : BaseIdInput
{
/// <summary>
/// 码长度
/// </summary>
[Required(ErrorMessage = "码长度不能为空")]
public int CodeLength { get; set; }
}
/// <summary>
/// 码元素更新输入参数
/// </summary>
public class UpdateCodeElementInput : CodeElementBaseInput
{
/// <summary>
/// 主键Id
/// </summary>
[Required(ErrorMessage = "主键Id不能为空")]
public long Id { get; set; }
}
/// <summary>
/// 码元素主键查询输入参数
/// </summary>
public class QueryByIdCodeElementInput : DeleteCodeElementInput
{
}