namespace Tiobon.Core.Api.Controllers;
///
/// 开班管理(Controller)
///
[Route("api/[controller]")]
[ApiController, GlobalActionFilter]
[Authorize(Permissions.Name), ApiExplorerSettings(GroupName = Grouping.GroupName_Ghre)]
public class Ghre_OpenClassController : BaseController
{
public Ghre_OpenClassController(IGhre_OpenClassServices service) : base(service)
{
}
#region 查询
///
/// 根据条件查询数据
///
/// 条件
/// status
///
[HttpPost, Route("QueryList/{status}")]
public async Task> QueryByStatus([FromBody] QueryBody body, string status)
{
return await _service.QueryFilterPage(body, $"Status ='{status}'");
}
#endregion
#region 学员
///
/// 根据条件查询数据
///
/// 开班ID
///
[HttpPost, Route("QueryStaff/{Id}")]
public async Task>> QueryStaff(long Id) => await _service.QueryStaff(Id);
#endregion
#region 费用
///
/// 查询团体费用
///
/// 开班ID
///
[HttpPost, Route("QueryGroupFee/{Id}")]
public async Task>> QueryGroupFee(long Id) => await _service.QueryGroupFee(Id);
///
/// 查询个人费用
///
/// 开班ID
///
[HttpPost, Route("QueryPersonalFee/{Id}")]
public async Task>> QueryPersonalFee(long Id) => await _service.QueryPersonalFee(Id);
#endregion
}