base response add page

This commit is contained in:
2020-01-06 12:50:47 +08:00
parent e8d5496ef5
commit ad53bb3530
+8 -2
View File
@@ -94,7 +94,7 @@ namespace YYApi.Communications
{ {
IgnoreReadOnlyProperties = true, IgnoreReadOnlyProperties = true,
PropertyNamingPolicy = JsonNamingPolicy.CamelCase, PropertyNamingPolicy = JsonNamingPolicy.CamelCase,
Converters = {new JsonStringEnumConverter()} Converters = { new JsonStringEnumConverter() }
}); });
} }
} }
@@ -106,8 +106,14 @@ namespace YYApi.Communications
public class BaseResponse<T> : BaseResponse public class BaseResponse<T> : BaseResponse
{ {
/// <summary> /// <summary>
/// 动态内容 /// 动态内容列表
/// </summary> /// </summary>
public T Data { get; set; } public T Data { get; set; }
//当前页码
public int Page { get; set; }
//每页条数
public int Count { get; set; }
//总计条数
public int Total { get; set; }
} }
} }