2023-03-28 06:33:48 +08:00
|
|
|
namespace SimApi.Communications
|
2020-02-04 16:51:15 +08:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 只有ID的请求
|
|
|
|
|
/// </summary>
|
2023-03-28 06:33:48 +08:00
|
|
|
public record SimApiIdOnlyRequest(int Id);
|
2020-02-04 16:51:15 +08:00
|
|
|
|
2022-05-07 21:45:12 +08:00
|
|
|
/// <summary>
|
|
|
|
|
/// 只有ID的请求(字符串)
|
|
|
|
|
/// </summary>
|
2023-03-28 06:33:48 +08:00
|
|
|
public record SimApiStringIdOnlyRequest(string Id);
|
2022-05-07 21:45:12 +08:00
|
|
|
|
2021-06-05 07:56:48 +08:00
|
|
|
/// <summary>
|
|
|
|
|
/// 动态类型单字段请求
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <typeparam name="T"></typeparam>
|
2023-03-28 06:33:48 +08:00
|
|
|
public record SimApiOneFieldRequest<T>(T Data);
|
2021-06-05 07:56:48 +08:00
|
|
|
|
2020-02-04 16:51:15 +08:00
|
|
|
/// <summary>
|
|
|
|
|
/// 基础分页请求
|
|
|
|
|
/// </summary>
|
2023-03-28 06:33:48 +08:00
|
|
|
public record SimApiBasePageRequest(int Page, int Count);
|
2021-06-05 07:56:48 +08:00
|
|
|
}
|