传参修改

DataMaintenance
陈伟 2025-02-21 15:08:34 +08:00
parent b04445734c
commit fb2bad4e91
2 changed files with 9 additions and 2 deletions

View File

@ -0,0 +1,6 @@
namespace OpenAuth.Repository.Domain.GoView.Request;
public class MainPageReq
{
public string MainPage { get; set; }
}

View File

@ -5,6 +5,7 @@ using OpenAuth.App.ServiceApp.GoView.Request;
using OpenAuth.App.ServiceApp.GoView.Response;
using OpenAuth.Repository.Domain;
using OpenAuth.Repository.Domain.GoView;
using OpenAuth.Repository.Domain.GoView.Request;
namespace OpenAuth.WebApi.Controllers.ServiceControllers.GoView;
@ -238,12 +239,12 @@ public class GoViewProjectController : ControllerBase
/// <param name="mainPage"></param>
/// <returns></returns>
[HttpPost("mainPage/set")]
public Response<bool> SetMainPage([FromBody] string mainPage)
public Response<bool> SetMainPage([FromBody] MainPageReq mainPage)
{
var result = new Response<bool>();
try
{
result.Result = _app.AddParam("mainPage", mainPage);
result.Result = _app.AddParam("mainPage", mainPage.MainPage);
}
catch (Exception ex)
{