using Admin.NET.Core;
using System.ComponentModel.DataAnnotations;
namespace Admin.NET.Application;
///
/// 网址信息基础输入参数
///
public class UrlInfoBaseInput
{
///
/// 名称
///
public virtual string? Name { get; set; }
///
/// 网址
///
public virtual string? Url { get; set; }
///
/// 网址类型ID
///
public virtual long? UrlTypeId { get; set; }
///
/// 网址类型
///
public virtual string? UrlType { get; set; }
///
/// 是否启用
///
public virtual bool? IsEnable { get; set; }
///
/// 备注
///
public virtual string? Remarks { 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 UrlInfoInput : BasePageInput
{
///
/// 关键字查询
///
public string? SearchKey { get; set; }
///
/// 名称
///
public string? Name { get; set; }
///
/// 网址
///
public string? Url { get; set; }
///
/// 网址类型
///
public string? UrlType { get; set; }
}
///
/// 网址信息增加输入参数
///
public class AddUrlInfoInput : UrlInfoBaseInput
{
///
/// 软删除
///
[Required(ErrorMessage = "软删除不能为空")]
public override bool IsDelete { get; set; }
}
///
/// 网址信息删除输入参数
///
public class DeleteUrlInfoInput : BaseIdInput
{
}
///
/// 网址信息更新输入参数
///
public class UpdateUrlInfoInput : UrlInfoBaseInput
{
///
/// 主键Id
///
[Required(ErrorMessage = "主键Id不能为空")]
public long Id { get; set; }
}
///
/// 网址信息主键查询输入参数
///
public class QueryByIdUrlInfoInput : DeleteUrlInfoInput
{
}