using Tiobon.Core.Model.ViewModels.Extend;
namespace Tiobon.Core.Api.Controllers;
///
/// 问卷题库(Controller)
///
[Route("api/[controller]")]
[ApiController, GlobalActionFilter]
[Authorize(Permissions.Name), ApiExplorerSettings(GroupName = Grouping.GroupName_Ghre)]
public class Ghre_SurveyQuestionPoolController : BaseController
{
public Ghre_SurveyQuestionPoolController(IGhre_SurveyQuestionPoolServices service) : base(service)
{
}
#region 基础接口
#region 查询
///
/// 根据Id查询数据
///
///
///
[HttpPost("QueryFrom/{Id}")]
public async Task> QueryFrom(long Id)
{
return await _service.QueryFrom(Id);
}
#endregion
#region 新增
///
/// 新增数据
///
///
///
[HttpPost("InsertFrom")]
public async Task InsertFrom([FromBody] InsertGhre_SurveyQuestionExtend insertModel)
{
return await _service.InsertFrom(insertModel);
}
#endregion
#region 更新
///
/// 更新数据
///
/// 主键ID
///
///
[HttpPost("UpdateFrom/{Id}")]
public async Task UpdateFrom(long Id, [FromBody] InsertGhre_SurveyQuestionExtend editModel)
{
return await _service.UpdateFrom(Id, editModel);
}
#endregion
#endregion
}