From ad53bb353025b267fbfcae5c89c6f0efff1ca43a Mon Sep 17 00:00:00 2001 From: xRain Date: Mon, 6 Jan 2020 12:50:47 +0800 Subject: [PATCH] base response add page --- Communications/Base.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Communications/Base.cs b/Communications/Base.cs index d891bdb..f67da37 100644 --- a/Communications/Base.cs +++ b/Communications/Base.cs @@ -94,7 +94,7 @@ namespace YYApi.Communications { IgnoreReadOnlyProperties = true, PropertyNamingPolicy = JsonNamingPolicy.CamelCase, - Converters = {new JsonStringEnumConverter()} + Converters = { new JsonStringEnumConverter() } }); } } @@ -106,8 +106,14 @@ namespace YYApi.Communications public class BaseResponse : BaseResponse { /// - /// 动态内容 + /// 动态内容列表 /// public T Data { get; set; } + //当前页码 + public int Page { get; set; } + //每页条数 + public int Count { get; set; } + //总计条数 + public int Total { get; set; } } } \ No newline at end of file