using Admin.NET.Core;
using System.ComponentModel.DataAnnotations;
namespace Admin.NET.Application;
///
/// 仓库基础输入参数
///
public class WarehouseBaseInput
{
///
/// 名称
///
public virtual string? Name { get; set; }
///
/// 编码
///
public virtual string? CodeNum { get; set; }
///
/// 可用状态
///
public virtual bool IsEnable { get; set; }
///
/// 仓库条码
///
public virtual string? BarCode { get; set; }
///
/// 仓库拓展字段
///
public virtual string? ExpandField { 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 WarehouseInput : BasePageInput
{
///
/// 关键字查询
///
public string? SearchKey { get; set; }
///
/// 名称
///
public string? Name { get; set; }
///
/// 编码
///
public string? CodeNum { get; set; }
///
/// 可用状态
///
public bool? IsEnable { get; set; }
///
/// 仓库条码
///
public string? BarCode { get; set; }
///
/// 仓库拓展字段
///
public string? ExpandField { get; set; }
}
///
/// 仓库增加输入参数
///
public class AddWarehouseInput : WarehouseBaseInput
{
///
/// 可用状态
///
[Required(ErrorMessage = "可用状态不能为空")]
public override bool IsEnable { get; set; }
///
/// 软删除
///
[Required(ErrorMessage = "软删除不能为空")]
public override bool IsDelete { get; set; }
}
///
/// 仓库删除输入参数
///
public class DeleteWarehouseInput : BaseIdInput
{
}
///
/// 仓库更新输入参数
///
public class UpdateWarehouseInput : WarehouseBaseInput
{
///
/// 主键Id
///
[Required(ErrorMessage = "主键Id不能为空")]
public long Id { get; set; }
}
///
/// 仓库主键查询输入参数
///
public class QueryByIdWarehouseInput : DeleteWarehouseInput
{
}