优化问卷题目池新增编辑接口

master
xiaochanghai 1 month ago
parent f056785194
commit 29d3961150
  1. 4
      Tiobon.Core.Api/Controllers/Ghre/Ghre_SurveyQuestionPoolController.cs
  2. 4
      Tiobon.Core.Api/Tiobon.Core.xml
  3. 4
      Tiobon.Core.IServices/Ghre/IGhre_SurveyQuestionPoolServices.cs
  4. 6
      Tiobon.Core.Services/Ghre/Ghre_SurveyQuestionPoolServices.cs

@ -37,7 +37,7 @@ public class Ghre_SurveyQuestionPoolController : BaseController<IGhre_SurveyQues
/// <param name="insertModel"></param>
/// <returns></returns>
[HttpPost("InsertFrom")]
public async Task<ServiceResult> InsertFrom([FromBody] InsertGhre_SurveyQuestionExtend insertModel)
public async Task<ServiceResult> InsertFrom([FromBody] FromGhre_SurveyQuestionPoolPageData insertModel)
{
return await _service.InsertFrom(insertModel);
}
@ -52,7 +52,7 @@ public class Ghre_SurveyQuestionPoolController : BaseController<IGhre_SurveyQues
/// <returns></returns>
[HttpPost("UpdateFrom/{Id}")]
public async Task<ServiceResult> UpdateFrom(long Id, [FromBody] InsertGhre_SurveyQuestionExtend editModel)
public async Task<ServiceResult> UpdateFrom(long Id, [FromBody] FromGhre_SurveyQuestionPoolPageData editModel)
{
return await _service.UpdateFrom(Id, editModel);
}

@ -1595,14 +1595,14 @@
<param name="Id"></param>
<returns></returns>
</member>
<member name="M:Tiobon.Core.Api.Controllers.Ghre_SurveyQuestionPoolController.InsertFrom(Tiobon.Core.Model.ViewModels.Extend.InsertGhre_SurveyQuestionExtend)">
<member name="M:Tiobon.Core.Api.Controllers.Ghre_SurveyQuestionPoolController.InsertFrom(Tiobon.Core.Model.FromGhre_SurveyQuestionPoolPageData)">
<summary>
新增数据
</summary>
<param name="insertModel"></param>
<returns></returns>
</member>
<member name="M:Tiobon.Core.Api.Controllers.Ghre_SurveyQuestionPoolController.UpdateFrom(System.Int64,Tiobon.Core.Model.ViewModels.Extend.InsertGhre_SurveyQuestionExtend)">
<member name="M:Tiobon.Core.Api.Controllers.Ghre_SurveyQuestionPoolController.UpdateFrom(System.Int64,Tiobon.Core.Model.FromGhre_SurveyQuestionPoolPageData)">
<summary>
更新数据
</summary>

@ -8,9 +8,9 @@ namespace Tiobon.Core.IServices;
/// </summary>
public interface IGhre_SurveyQuestionPoolServices : IBaseServices<Ghre_SurveyQuestionPool, Ghre_SurveyQuestionPoolDto, InsertGhre_SurveyQuestionPoolInput, EditGhre_SurveyQuestionPoolInput>
{
Task<ServiceResult> UpdateFrom(long Id, InsertGhre_SurveyQuestionExtend editModel);
Task<ServiceResult> UpdateFrom(long Id, FromGhre_SurveyQuestionPoolPageData editModel);
Task<ServiceResult> InsertFrom(InsertGhre_SurveyQuestionExtend insertModel);
Task<ServiceResult> InsertFrom(FromGhre_SurveyQuestionPoolPageData insertModel);
Task<ServiceResult<FromGhre_SurveyQuestionPoolInput>> QueryFrom(long Id);
}

@ -1,8 +1,4 @@
using Newtonsoft.Json;
using System.Net;
using Tiobon.Core.IServices;
namespace Tiobon.Core.Services;
namespace Tiobon.Core.Services;
/// <summary>
/// 问卷题库 (服务)

Loading…
Cancel
Save