using Admin.NET.Core;
using System.ComponentModel.DataAnnotations;
namespace Admin.NET.Application;
///
/// 客户基础输入参数
///
public class CustomBaseInput
{
///
/// 名称
///
public virtual string Name { get; set; }
///
/// 编码
///
public virtual string? CodeNum { get; set; }
///
/// 分类
///
public virtual long Classify { get; set; }
///
/// 年龄
///
public virtual int? Age { get; set; }
///
/// 拓展字段整型
///
public virtual int? ExpandField { get; set; }
///
/// 联系人
///
public virtual int Contacts { get; set; }
///
/// 品牌
///
public virtual string? Brand { get; set; }
///
/// 外部编码
///
public virtual string? ExternalNumber { get; set; }
///
/// 可用状态
///
public virtual bool IsEnable { 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 CustomInput : BasePageInput
{
///
/// 关键字查询
///
public string? SearchKey { get; set; }
///
/// 名称
///
public string? Name { get; set; }
///
/// 编码
///
public string? CodeNum { get; set; }
///
/// 分类
///
public long? Classify { get; set; }
///
/// 年龄
///
public int? Age { get; set; }
///
/// 拓展字段整型
///
public int? ExpandField { get; set; }
///
/// 联系人
///
public int? Contacts { get; set; }
///
/// 品牌
///
public string? Brand { get; set; }
///
/// 外部编码
///
public string? ExternalNumber { get; set; }
///
/// 可用状态
///
public bool? IsEnable { get; set; }
}
///
/// 客户增加输入参数
///
public class AddCustomInput : CustomBaseInput
{
///
/// 名称
///
[Required(ErrorMessage = "名称不能为空")]
public override string Name { get; set; }
///
/// 分类
///
[Required(ErrorMessage = "分类不能为空")]
public override long Classify { get; set; }
///
/// 联系人
///
[Required(ErrorMessage = "联系人不能为空")]
public override int Contacts { get; set; }
///
/// 可用状态
///
[Required(ErrorMessage = "可用状态不能为空")]
public override bool IsEnable { get; set; }
///
/// 软删除
///
[Required(ErrorMessage = "软删除不能为空")]
public override bool IsDelete { get; set; }
}
///
/// 客户删除输入参数
///
public class DeleteCustomInput : BaseIdInput
{
}
///
/// 客户更新输入参数
///
public class UpdateCustomInput : CustomBaseInput
{
///
/// 主键Id
///
[Required(ErrorMessage = "主键Id不能为空")]
public long Id { get; set; }
}
///
/// 客户主键查询输入参数
///
public class QueryByIdCustomInput : DeleteCustomInput
{
}