base response add page
This commit is contained in:
@@ -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; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user