namespace Tiobon.Core.Api.Controllers;
///
/// 试卷(Controller)
///
[Route("api/[controller]")]
[ApiController, GlobalActionFilter]
[Authorize(Permissions.Name), ApiExplorerSettings(GroupName = Grouping.GroupName_Ghre)]
public class Ghre_ExamPaperController : BaseController
{
public Ghre_ExamPaperController(IGhre_ExamPaperServices service) : base(service)
{
}
#region 基础接口
#region 查询
///
/// 根据Id查询数据
///
///
///
[HttpPost("QueryDefault/{Id}")]
public async Task> QueryDefault(long Id)
{
return await _service.QueryDefault(Id);
}
#endregion
#region 新增
///
/// 新增
///
///
///
[HttpPost("Insert1")]
public async Task> Insert1([FromBody] DefaultGhre_ExamPaperPageData insert)
{
return await _service.Insert1(insert);
}
#endregion
#region 更新
///
/// 更新
///
///
///
///
[HttpPost("Update1/{id}")]
public async Task Update1(long id, [FromBody] DefaultGhre_ExamPaperPageData insert)
{
return await _service.Update1(id, insert);
}
#endregion
#region 新增配置数据
///
/// 新增配置数据
///
///
///
[HttpPost("InsertConfig")]
public async Task> InsertConfig([FromBody] InsertGhre_ExamPaperConfigInput insert)
{
return await _service.InsertConfig(insert);
}
#endregion
#endregion
}