You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
621 B
24 lines
621 B
3 months ago
|
using System.Collections.Generic;
|
||
|
using System.Text.Json.Serialization;
|
||
|
|
||
|
namespace Kean.Presentation.Rest
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// Restful Api 批量操作资源时的数据结构
|
||
|
/// </summary>
|
||
|
/// <typeparam name="T">项目数据类型</typeparam>
|
||
|
public sealed class Batch<T>
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 获取操作方法
|
||
|
/// </summary>
|
||
|
[JsonConverter(typeof(JsonStringEnumConverter))]
|
||
|
public BatchMethod Method { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 获取或设置数据
|
||
|
/// </summary>
|
||
|
public IEnumerable<T> Data { get; set; }
|
||
|
}
|
||
|
}
|