DigitalFactory/Admin.NET/Admin.NET.Application/Service/ProductCodeConfiguration/Dto/ProductCodeConfigurationInp...

150 lines
3.7 KiB
C#
Raw Normal View History

2024-03-20 02:37:36 +00:00
using Admin.NET.Core;
using System.ComponentModel.DataAnnotations;
namespace Admin.NET.Application;
/// <summary>
/// 产码配置基础输入参数
/// </summary>
public class ProductCodeConfigurationBaseInput
{
/// <summary>
/// 条码类型
/// </summary>
public virtual string? CodeType { get; set; }
/// <summary>
/// 条码类型ID
/// </summary>
public virtual long? CodeTypeId { get; set; }
/// <summary>
/// 条码长度
/// </summary>
public virtual int? CodeLength { get; set; }
/// <summary>
/// 内码长度
/// </summary>
public virtual int? InternalCodeLength { 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 ProductCodeConfigurationInput : BasePageInput
{
/// <summary>
/// 关键字查询
/// </summary>
public string? SearchKey { get; set; }
/// <summary>
/// 条码类型
/// </summary>
public string? CodeType { get; set; }
/// <summary>
/// 条码类型ID
/// </summary>
public long? CodeTypeId { get; set; }
/// <summary>
/// 条码长度
/// </summary>
public int? CodeLength { get; set; }
/// <summary>
/// 内码长度
/// </summary>
public int? InternalCodeLength { get; set; }
}
/// <summary>
/// 产码配置增加输入参数
/// </summary>
public class AddProductCodeConfigurationInput : ProductCodeConfigurationBaseInput
{
/// <summary>
/// 软删除
/// </summary>
[Required(ErrorMessage = "软删除不能为空")]
public override bool IsDelete { get; set; }
}
/// <summary>
/// 产码配置删除输入参数
/// </summary>
public class DeleteProductCodeConfigurationInput : BaseIdInput
{
}
/// <summary>
/// 产码配置更新输入参数
/// </summary>
public class UpdateProductCodeConfigurationInput : ProductCodeConfigurationBaseInput
{
/// <summary>
/// 主键Id
/// </summary>
[Required(ErrorMessage = "主键Id不能为空")]
public long Id { get; set; }
}
/// <summary>
/// 产码配置主键查询输入参数
/// </summary>
public class QueryByIdProductCodeConfigurationInput : DeleteProductCodeConfigurationInput
{
}