传参修改
parent
b04445734c
commit
fb2bad4e91
|
|
@ -0,0 +1,6 @@
|
||||||
|
namespace OpenAuth.Repository.Domain.GoView.Request;
|
||||||
|
|
||||||
|
public class MainPageReq
|
||||||
|
{
|
||||||
|
public string MainPage { get; set; }
|
||||||
|
}
|
||||||
|
|
@ -5,6 +5,7 @@ using OpenAuth.App.ServiceApp.GoView.Request;
|
||||||
using OpenAuth.App.ServiceApp.GoView.Response;
|
using OpenAuth.App.ServiceApp.GoView.Response;
|
||||||
using OpenAuth.Repository.Domain;
|
using OpenAuth.Repository.Domain;
|
||||||
using OpenAuth.Repository.Domain.GoView;
|
using OpenAuth.Repository.Domain.GoView;
|
||||||
|
using OpenAuth.Repository.Domain.GoView.Request;
|
||||||
|
|
||||||
namespace OpenAuth.WebApi.Controllers.ServiceControllers.GoView;
|
namespace OpenAuth.WebApi.Controllers.ServiceControllers.GoView;
|
||||||
|
|
||||||
|
|
@ -238,12 +239,12 @@ public class GoViewProjectController : ControllerBase
|
||||||
/// <param name="mainPage"></param>
|
/// <param name="mainPage"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
[HttpPost("mainPage/set")]
|
[HttpPost("mainPage/set")]
|
||||||
public Response<bool> SetMainPage([FromBody] string mainPage)
|
public Response<bool> SetMainPage([FromBody] MainPageReq mainPage)
|
||||||
{
|
{
|
||||||
var result = new Response<bool>();
|
var result = new Response<bool>();
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
result.Result = _app.AddParam("mainPage", mainPage);
|
result.Result = _app.AddParam("mainPage", mainPage.MainPage);
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue