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/Ghrh/Ghrh_TemplateController.cs

25 lines
888 B

namespace Tiobon.Core.Api.Controllers;
/// <summary>
/// 招聘模板(Controller)
/// </summary>
[Route("api/[controller]")]
[ApiController, GlobalActionFilter]
[Authorize(Permissions.Name), ApiExplorerSettings(GroupName = Grouping.GroupName_Ghrh)]
public class Ghrh_TemplateController : BaseController<IGhrh_TemplateServices, Ghrh_Template, Ghrh_TemplateDto, InsertGhrh_TemplateInput, EditGhrh_TemplateInput>
{
public Ghrh_TemplateController(IGhrh_TemplateServices service) : base(service)
{
}
#region 是否开启
/// <summary>
/// 是否开启
/// </summary>
/// <param name="id"></param>
/// <param name="isPublish"></param>
/// <returns></returns>
[HttpPost("SwitchPublish/{id}/{isPublish}")]
public async Task<ServiceResult> SwitchPublish(long id, int? isPublish) => await _service.SwitchPublish(id, isPublish);
#endregion
}