mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-11-10 11:24:45 +08:00
🔄refactor: 统一返回给前端的数据结构
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user