using Tiobon.Core.Model.ViewModels.Extend;
namespace Tiobon.Core.Api.Controllers;
///
/// 简历模板(Controller)
///
[Route("api/[controller]")]
[ApiController, GlobalActionFilter]
[Authorize(Permissions.Name), ApiExplorerSettings(GroupName = Grouping.GroupName_Ghrh)]
public class Ghrh_ResumeTemplateController : BaseController
{
public Ghrh_ResumeTemplateController(IGhrh_ResumeTemplateServices service) : base(service)
{
}
#region 是否开启
///
/// 是否开启
///
///
///
///
[HttpPost("SwitchPublish/{id}/{isPublish}")]
public async Task SwitchPublish(long id, int? isPublish) => await _service.SwitchPublish(id, isPublish);
#endregion
#region 获取分组数据
///
/// 获取分组数据
///
///
///
[HttpPost("QueryGroup")]
public async Task>> QueryGroup([FromBody] QueryForm filter) => await _service.QueryGroup(filter);
#endregion
#region 切换照片类型
///
/// 切换照片类型
///
///
///
///
[HttpPost("PhotoSwitch/{id}/{photoType}")]
public async Task PhotoSwitch(long id, int? photoType) => await _service.PhotoSwitch(id, photoType);
#endregion
#region 模板栏位异动
///
/// 模板栏位异动
///
///
///
///
[HttpPost("ColumnMove/{id}")]
public async Task ColumnMove(long id, [FromBody] List columns) => await _service.ColumnMove(id, columns);
#endregion
#region 获取分组数据
///
/// 获取分组数据
///
///
///
[HttpPost("QueryTemplateColumn")]
public async Task>> QueryTemplateColumn([FromBody] QueryForm filter) => await _service.QueryTemplateColumn(filter);
#endregion
#region 执行分组列栏位操作
///
/// 执行分组列栏位操作
///
///
///
[HttpPost("ExceteTemplateColumnChange")]
public async Task ExceteTemplateColumnChange([FromBody] QueryForm filter) => await _service.ExceteTemplateColumnChange(filter);
#endregion
#region 查询模板栏位
///
/// 查询模板栏位
///
///
///
[HttpPost("QueryTemplateColumnSingle")]
public async Task> QueryTemplateColumnSingle([FromBody] QueryForm filter) => await _service.QueryTemplateColumnSingle(filter);
#endregion
#region 查询模板栏位
///
/// 查询模板栏位
///
///
///
[HttpPost("PT_GHR30_StaffTemplate_IUD")]
public async Task PT_GHR30_StaffTemplate_IUD([FromBody] QueryForm1 filter) => await _service.PT_GHR30_StaffTemplate_IUD(filter);
#endregion
}