You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Tiobon.Web.Core/Tiobon.Core.Api/Controllers/Ghre/Ghre_ExamPaperController.cs

60 lines
1.6 KiB

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