using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FlexJobApi.Core
{
///
/// 查询数据字典选择器
///
[Resource([EnumResourceController.Dictionary], AllowAnonymous = true)]
public class GetDictionaryDataSelectQuery : SelectQuery
{
///
/// 类别Id(Id/编号二选一)
///
public Guid? CategoryId { get; set; }
///
/// 类别编号(Id/编号二选一)
///
public string CategoryCode { get; set; }
///
/// 上级Id
///
public Guid? ParentId { get; set; }
///
/// 关键字
///
public string Keywords { get; set; }
///
/// 查询所有
///
public bool? All { get; set; }
///
/// 最大深度
///
public int? MaxDeep { get; set; }
}
public class GetDictionaryDataSelectQueryResultOption
{
///
/// Id
///
public Guid Id { get; set; }
///
/// 字典路径
///
public string Path { get; set; }
///
/// 编号
///
[MaxLength(128)]
public string Code { get; set; }
///
/// 显示内容
///
[Required]
public string Content { get; set; }
///
/// 字段1
///
public string Field1 { get; set; }
///
/// 字段2
///
public string Field2 { get; set; }
///
/// 字段3
///
public string Field3 { get; set; }
///
/// 字段4
///
public string Field4 { get; set; }
///
/// 字段5
///
public string Field5 { get; set; }
}
}