using System.ComponentModel.DataAnnotations;
namespace Myshipping.Core.Service;
///
/// 系统应用参数
///
public class AppInput : PageInputBase
{
///
/// 名称
///
public virtual string Name { get; set; }
///
/// 编码
///
public virtual string Code { get; set; }
///
/// 是否默认激活(Y-是,N-否),只能有一个系统默认激活
/// 用户登录后默认展示此系统菜单
///
public string Active { get; set; }
///
/// 状态(字典 0正常 1停用 2删除)
///
public CommonStatus Status { get; set; }
///
/// 排序
///
public int Sort { get; set; }
}
public class AddAppInput : AppInput
{
///
/// 名称
///
[Required(ErrorMessage = "应用名称不能为空")]
public override string Name { get; set; }
///
/// 编码
///
[Required(ErrorMessage = "应用编码不能为空")]
public override string Code { get; set; }
}
public class DeleteAppInput
{
///
/// 应用Id
///
[Required(ErrorMessage = "应用Id不能为空")]
public long Id { get; set; }
}
public class UpdateAppInput : AppInput
{
///
/// 应用Id
///
[Required(ErrorMessage = "应用Id不能为空")]
public long Id { get; set; }
}
public class QueryAppInput : DeleteAppInput
{
}
public class SetDefaultAppInput : DeleteAppInput
{
}