mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2026-03-31 05:33:24 +08:00
🔄refactor: 统一返回给前端的数据结构
This commit is contained in:
@@ -25,13 +25,13 @@ namespace OpenAuth.WebApi.Controllers
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpGet]
|
||||
public async Task<TableData> Load([FromQuery]QueryAppListReq request)
|
||||
public async Task<PagedDynamicDataResp> Load([FromQuery]QueryAppListReq request)
|
||||
{
|
||||
var applications =await _app.GetList(request);
|
||||
return new TableData
|
||||
return new PagedDynamicDataResp
|
||||
{
|
||||
data = applications,
|
||||
count = applications.Count
|
||||
Data = applications,
|
||||
Count = applications.Count
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user