Files
simapi-net/Communications/SimApiBaseRequest.cs
T

37 lines
732 B
C#
Raw Normal View History

using System.ComponentModel.DataAnnotations;
namespace SimApi.Communications;
2020-02-04 16:51:15 +08:00
2024-03-23 07:29:43 +08:00
/// <summary>
/// 只有ID的请求
/// </summary>
public class SimApiIdOnlyRequest
{
[Required] public int Id { get; set; }
}
2022-05-07 21:45:12 +08:00
2024-03-23 07:29:43 +08:00
/// <summary>
/// 只有ID的请求(字符串)
/// </summary>
public class SimApiStringIdOnlyRequest
{
[Required] public string Id { get; set; }
}
2021-06-05 07:56:48 +08:00
2024-03-23 07:29:43 +08:00
/// <summary>
/// 动态类型单字段请求
/// </summary>
/// <typeparam name="T"></typeparam>
public class SimApiOneFieldRequest<T>
{
[Required] public T Data { get; set; }
}
2024-03-23 07:29:43 +08:00
/// <summary>
/// 基础分页请求
/// </summary>
public class SimApiBasePageRequest
{
[Required] public int Page { get; set; }
[Required] public int Count { get; set; }
}