using Admin.NET.Core;
using System.ComponentModel.DataAnnotations;
namespace Admin.NET.Application;
///
/// 资料编码规则基础输入参数
///
public class CodeRuleByInfomationBaseInput
{
///
/// 名称
///
public virtual string? Name { get; set; }
///
/// 编码
///
public virtual string? CodeNum { get; set; }
///
/// 前缀
///
public virtual string? Prefix { get; set; }
///
/// 后缀
///
public virtual string? Suffix { get; set; }
///
/// 流水号长度
///
public virtual int? SerialLength { get; set; }
///
/// 备注
///
public virtual string? Remarks { get; set; }
///
/// 租户Id
///
public virtual long? TenantId { 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 CodeRuleByInfomationInput : BasePageInput
{
///
/// 关键字查询
///
public string? SearchKey { get; set; }
///
/// 名称
///
public string? Name { get; set; }
///
/// 编码
///
public string? CodeNum { get; set; }
///
/// 前缀
///
public string? Prefix { get; set; }
///
/// 后缀
///
public string? Suffix { get; set; }
///
/// 流水号长度
///
public int? SerialLength { get; set; }
}
///
/// 资料编码规则增加输入参数
///
public class AddCodeRuleByInfomationInput : CodeRuleByInfomationBaseInput
{
///
/// 软删除
///
[Required(ErrorMessage = "软删除不能为空")]
public override bool IsDelete { get; set; }
}
///
/// 资料编码规则删除输入参数
///
public class DeleteCodeRuleByInfomationInput : BaseIdInput
{
}
///
/// 资料编码规则更新输入参数
///
public class UpdateCodeRuleByInfomationInput : CodeRuleByInfomationBaseInput
{
///
/// 主键Id
///
[Required(ErrorMessage = "主键Id不能为空")]
public long Id { get; set; }
}
///
/// 资料编码规则主键查询输入参数
///
public class QueryByIdCodeRuleByInfomationInput : DeleteCodeRuleByInfomationInput
{
}