🔄refactor: 统一返回给前端的数据结构

This commit is contained in:
yubaolee
2025-06-11 21:14:41 +08:00
parent 0b930dc6b4
commit 069991504c
52 changed files with 265 additions and 287 deletions

View File

@@ -30,7 +30,7 @@ namespace OpenAuth.WebApi.Controllers
var result = new Response<Category>();
try
{
result.Result = _app.Get(id);
result.Data = _app.Get(id);
}
catch (Exception ex)
{
@@ -88,7 +88,7 @@ namespace OpenAuth.WebApi.Controllers
/// 加载列表
/// </summary>
[HttpGet]
public async Task<TableData> Load([FromQuery] QueryCategoryListReq request)
public async Task<PagedDynamicDataResp> Load([FromQuery] QueryCategoryListReq request)
{
return await _app.Load(request);
}