🔄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

@@ -25,7 +25,7 @@ namespace OpenAuth.WebApi.Controllers
var result = new Response<SysOrg>();
try
{
result.Result = _app.Get(id);
result.Data = _app.Get(id);
}
catch (Exception ex)
{
@@ -49,7 +49,7 @@ namespace OpenAuth.WebApi.Controllers
try
{
_app.Add(obj);
result.Result = obj;
result.Data = obj;
}
catch (Exception ex)
{