// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。
//
// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。
//
// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任!
using Admin.NET.Core;
using System.ComponentModel.DataAnnotations;
using Magicodes.ExporterAndImporter.Core;
using Magicodes.ExporterAndImporter.Excel;
namespace FZCZTB.Net.CustomerSYSTem.Service.FBS_Role.Dto;
///
/// 客户角色基础输入参数
///
public class FBS_RoleBaseInput
{
///
/// 主键Id
///
public virtual long? Id { get; set; }
///
/// 名称
///
public virtual string? Name { get; set; }
///
/// 编码
///
public virtual string? Code { get; set; }
///
/// 排序
///
public virtual int? OrderNo { get; set; }
///
/// 数据范围
///
[Dict(nameof(DataScopeEnum), AllowNullValue = true)]
public virtual DataScopeEnum? DataScope { get; set; }
///
/// 备注
///
public virtual string? Remark { get; set; }
///
/// 状态
///
[Dict(nameof(StatusEnum), AllowNullValue = true)]
public virtual StatusEnum? Status { get; set; }
}
///
/// 客户角色分页查询输入参数
///
public class PageFBS_RoleInput : BasePageInput
{
///
/// 名称
///
public string? Name { get; set; }
///
/// 编码
///
public string? Code { get; set; }
///
/// 排序
///
public int? OrderNo { get; set; }
///
/// 数据范围
///
[Dict(nameof(DataScopeEnum), AllowNullValue = true)]
public DataScopeEnum? DataScope { get; set; }
///
/// 备注
///
public string? Remark { get; set; }
///
/// 状态
///
[Dict(nameof(StatusEnum), AllowNullValue = true)]
public StatusEnum? Status { get; set; }
///
/// 选中主键列表
///
public List SelectKeyList { get; set; }
}
///
/// 客户角色增加输入参数
///
public class AddFBS_RoleInput
{
///
/// 名称
///
[MaxLength(64, ErrorMessage = "名称字符长度不能超过64")]
public string? Name { get; set; }
///
/// 编码
///
[MaxLength(64, ErrorMessage = "编码字符长度不能超过64")]
public string? Code { get; set; }
///
/// 排序
///
public int? OrderNo { get; set; }
///
/// 数据范围
///
[Dict(nameof(DataScopeEnum), AllowNullValue = true)]
public DataScopeEnum? DataScope { get; set; }
///
/// 备注
///
[MaxLength(128, ErrorMessage = "备注字符长度不能超过128")]
public string? Remark { get; set; }
///
/// 状态
///
[Dict(nameof(StatusEnum), AllowNullValue = true)]
public StatusEnum? Status { get; set; }
}
///
/// 客户角色删除输入参数
///
public class DeleteFBS_RoleInput
{
///
/// 主键Id
///
[Required(ErrorMessage = "主键Id不能为空")]
public long? Id { get; set; }
}
///
/// 客户角色更新输入参数
///
public class UpdateFBS_RoleInput
{
///
/// 主键Id
///
[Required(ErrorMessage = "主键Id不能为空")]
public long? Id { get; set; }
///
/// 名称
///
[MaxLength(64, ErrorMessage = "名称字符长度不能超过64")]
public string? Name { get; set; }
///
/// 编码
///
[MaxLength(64, ErrorMessage = "编码字符长度不能超过64")]
public string? Code { get; set; }
///
/// 排序
///
public int? OrderNo { get; set; }
///
/// 数据范围
///
[Dict(nameof(DataScopeEnum), AllowNullValue = true)]
public DataScopeEnum? DataScope { get; set; }
///
/// 备注
///
[MaxLength(128, ErrorMessage = "备注字符长度不能超过128")]
public string? Remark { get; set; }
///
/// 状态
///
[Dict(nameof(StatusEnum), AllowNullValue = true)]
public StatusEnum? Status { get; set; }
}
///
/// 客户角色主键查询输入参数
///
public class QueryByIdFBS_RoleInput : DeleteFBS_RoleInput
{
}
///
/// 设置状态输入参数
///
public class SetFBS_RoleStatusInput : BaseStatusInput
{
}
///
/// 客户角色数据导入实体
///
[ExcelImporter(SheetIndex = 1, IsOnlyErrorRows = true)]
public class ImportFBS_RoleInput : BaseImportInput
{
///
/// 名称
///
[ImporterHeader(Name = "名称")]
[ExporterHeader("名称", Format = "", Width = 25, IsBold = true)]
public string? Name { get; set; }
///
/// 编码
///
[ImporterHeader(Name = "编码")]
[ExporterHeader("编码", Format = "", Width = 25, IsBold = true)]
public string? Code { get; set; }
///
/// 排序
///
[ImporterHeader(Name = "排序")]
[ExporterHeader("排序", Format = "", Width = 25, IsBold = true)]
public int? OrderNo { get; set; }
///
/// 数据范围
///
[ImporterHeader(Name = "数据范围")]
[ExporterHeader("数据范围", Format = "", Width = 25, IsBold = true)]
public DataScopeEnum? DataScope { get; set; }
///
/// 备注
///
[ImporterHeader(Name = "备注")]
[ExporterHeader("备注", Format = "", Width = 25, IsBold = true)]
public string? Remark { get; set; }
///
/// 状态
///
[ImporterHeader(Name = "状态")]
[ExporterHeader("状态", Format = "", Width = 25, IsBold = true)]
public StatusEnum? Status { get; set; }
}