using Admin.NET.Core;
using System.ComponentModel.DataAnnotations;
namespace Admin.NET.Application;
///
/// 供应商基础输入参数
///
public class SupplierBaseInput
{
///
/// 供应商名称
///
public virtual string? Name { get; set; }
///
/// 联系人
///
public virtual string? Contacts { get; set; }
///
/// 电话
///
public virtual string? Tel { get; set; }
///
/// 企业类型
///
public virtual string? CompanyType { get; set; }
///
/// 职务
///
public virtual string? Duties { get; set; }
///
/// 地址
///
public virtual string? Address { 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 SupplierInput : BasePageInput
{
///
/// 关键字查询
///
public string? SearchKey { get; set; }
///
/// 供应商名称
///
public string? Name { get; set; }
///
/// 联系人
///
public string? Contacts { get; set; }
///
/// 电话
///
public string? Tel { get; set; }
///
/// 企业类型
///
public string? CompanyType { get; set; }
///
/// 职务
///
public string? Duties { get; set; }
///
/// 地址
///
public string? Address { get; set; }
///
/// 备注
///
public string? Remarks { get; set; }
}
///
/// 供应商增加输入参数
///
public class AddSupplierInput : SupplierBaseInput
{
///
/// 软删除
///
[Required(ErrorMessage = "软删除不能为空")]
public override bool IsDelete { get; set; }
}
///
/// 供应商删除输入参数
///
public class DeleteSupplierInput : BaseIdInput
{
}
///
/// 供应商更新输入参数
///
public class UpdateSupplierInput : SupplierBaseInput
{
///
/// 主键Id
///
[Required(ErrorMessage = "主键Id不能为空")]
public long Id { get; set; }
}
///
/// 供应商主键查询输入参数
///
public class QueryByIdSupplierInput : DeleteSupplierInput
{
}