Remove get best agent

This commit is contained in:
2025-10-06 18:31:29 +07:00
parent b4ba9b93e6
commit 746308bc4f
4 changed files with 0 additions and 75 deletions

View File

@@ -662,35 +662,6 @@ public class DataController : ControllerBase
return Ok(balances);
}
/// <summary>
/// Retrieves a paginated list of the best performing agents based on their total value
/// </summary>
/// <param name="startDate">The start date for calculating agent performance</param>
/// <param name="endDate">Optional end date for calculating agent performance (defaults to current time)</param>
/// <param name="page">Page number (defaults to 1)</param>
/// <param name="pageSize">Number of items per page (defaults to 10)</param>
/// <returns>A paginated list of agent balances and total count</returns>
[HttpGet("GetBestAgents")]
public async Task<ActionResult<BestAgentsResponse>> GetBestAgents(
DateTime startDate,
DateTime? endDate = null,
int page = 1,
int pageSize = 10)
{
var (agents, totalCount) = await _agentService.GetBestAgents(startDate, endDate, page, pageSize);
var response = new BestAgentsResponse
{
Agents = agents,
TotalCount = totalCount,
CurrentPage = page,
PageSize = pageSize,
TotalPages = (int)Math.Ceiling(totalCount / (double)pageSize)
};
return Ok(response);
}
/// <summary>
/// Retrieves an array of online agent names
/// </summary>