DigitalFactory/Admin.NET/Admin.NET.Application/Service/Distributor/Dto/DistributorInput.cs

215 lines
5.1 KiB
C#
Raw Normal View History

2024-05-20 10:06:52 +00:00
using Admin.NET.Core;
using System.ComponentModel.DataAnnotations;
namespace Admin.NET.Application;
/// <summary>
/// 分销商基础输入参数
/// </summary>
public class DistributorBaseInput
{
/// <summary>
/// 名称
/// </summary>
public virtual string? Name { get; set; }
/// <summary>
/// 编码
/// </summary>
public virtual string? CodeNum { get; set; }
/// <summary>
/// 简称
/// </summary>
public virtual string? SorName { get; set; }
/// <summary>
/// 状态
/// </summary>
public virtual int? Status { get; set; }
/// <summary>
/// 联系人
/// </summary>
public virtual string? Contacts { get; set; }
/// <summary>
/// 电话
/// </summary>
public virtual string? Tel { get; set; }
/// <summary>
/// 所有者账号
/// </summary>
public virtual string? UserName { get; set; }
/// <summary>
/// 品牌
/// </summary>
public virtual string? Brand { get; set; }
/// <summary>
/// 上级分销商
/// </summary>
public virtual string? SuperiorDistributor { get; set; }
/// <summary>
/// 地址
/// </summary>
public virtual string? Address { 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 DistributorInput : 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? SorName { get; set; }
/// <summary>
/// 状态
/// </summary>
public int? Status { get; set; }
/// <summary>
/// 联系人
/// </summary>
public string? Contacts { get; set; }
/// <summary>
/// 电话
/// </summary>
public string? Tel { get; set; }
/// <summary>
/// 所有者账号
/// </summary>
public string? UserName { get; set; }
/// <summary>
/// 品牌
/// </summary>
public string? Brand { get; set; }
/// <summary>
/// 上级分销商
/// </summary>
public string? SuperiorDistributor { get; set; }
/// <summary>
/// 地址
/// </summary>
public string? Address { get; set; }
/// <summary>
/// 备注
/// </summary>
public string? Remarks { get; set; }
}
/// <summary>
/// 分销商增加输入参数
/// </summary>
public class AddDistributorInput : DistributorBaseInput
{
/// <summary>
/// 软删除
/// </summary>
[Required(ErrorMessage = "软删除不能为空")]
public override bool IsDelete { get; set; }
}
/// <summary>
/// 分销商删除输入参数
/// </summary>
public class DeleteDistributorInput : BaseIdInput
{
}
/// <summary>
/// 分销商更新输入参数
/// </summary>
public class UpdateDistributorInput : DistributorBaseInput
{
/// <summary>
/// 主键Id
/// </summary>
[Required(ErrorMessage = "主键Id不能为空")]
public long Id { get; set; }
}
/// <summary>
/// 分销商主键查询输入参数
/// </summary>
public class QueryByIdDistributorInput : DeleteDistributorInput
{
}