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