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.
49 lines
1.5 KiB
49 lines
1.5 KiB
using Tiobon.Core.Model.ViewModels.Extend;
|
|
|
|
namespace Tiobon.Core.Api.Controllers;
|
|
|
|
/// <summary>
|
|
/// 个人简历(Controller)
|
|
/// </summary>
|
|
[Route("api/[controller]")]
|
|
[ApiController, GlobalActionFilter]
|
|
[Authorize(Permissions.Name), ApiExplorerSettings(GroupName = Grouping.GroupName_Ghrh)]
|
|
public class Ghrh_ResumeController : BaseController<IGhrh_ResumeServices, Ghrh_Resume, Ghrh_ResumeDto, InsertGhrh_ResumeInput, EditGhrh_ResumeInput>
|
|
{
|
|
public Ghrh_ResumeController(IGhrh_ResumeServices service) : base(service)
|
|
{
|
|
}
|
|
|
|
#region 获取简历Tabs接口
|
|
/// <summary>
|
|
/// 获取简历Tabs接口
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpPost("QueryViewTab")]
|
|
public ServiceResult<List<ResumeViewTab>> QueryViewTab() => _service.QueryViewTab();
|
|
|
|
#endregion
|
|
|
|
#region 查询
|
|
/// <summary>
|
|
/// 根据条件查询数据
|
|
/// </summary>
|
|
/// <param name="body">条件</param>
|
|
/// <param name="status">status</param>
|
|
/// <returns></returns>
|
|
[HttpPost, Route("QueryList/{status}")]
|
|
public async Task<ServicePageResult<Ghrh_ResumeDto>> QueryByStatus([FromBody] QueryBody body, string status)
|
|
{
|
|
return await _service.QueryFilterPage(body, $"Status ='{status}'");
|
|
}
|
|
#endregion
|
|
|
|
#region 获取查询条件
|
|
/// <summary>
|
|
/// 获取简历Tabs接口
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpPost("QueryConditions/{menuName}")]
|
|
public async Task<ServiceResult<List<ResumeCondition>>> QueryConditions() => await _service.QueryConditions();
|
|
#endregion
|
|
} |