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