using MediatR;
|
using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
|
namespace FlexJobApi.Core
|
{
|
/// <summary>
|
/// 选择器查询
|
/// </summary>
|
/// <typeparam name="TValue"></typeparam>
|
public abstract class SelectQuery<TValue> : IRequest<List<SelectQueryResultItem<TValue>>>
|
{
|
|
}
|
|
/// <summary>
|
/// 选择器查询-结果-项
|
/// </summary>
|
public class SelectQueryResultItem<TValue>
|
{
|
/// <summary>
|
/// 值
|
/// </summary>
|
public TValue Value { get; set; }
|
|
/// <summary>
|
/// 标签
|
/// </summary>
|
public string Label { get; set; }
|
|
/// <summary>
|
/// 数据
|
/// </summary>
|
public object Data { get; set; }
|
}
|
}
|