[성현모] CPMeta 최근데이터 조회 기능 추가

This commit is contained in:
SHM
2026-02-13 08:50:33 +09:00
parent 3626030124
commit 3f94a7b2b2
10 changed files with 107 additions and 3 deletions

View File

@ -79,5 +79,18 @@ namespace WebApi.Project.UniqueKeyApi.Controllers
return Results.Ok(response);
}
[HttpGet]
public async Task<IResult> GetWbmsLatest([FromQuery] int count = 20, int? ShardID = 1)
{
Guid guid = Guid.NewGuid();
LogXnet.WriteLine($"[Request][{GetRequestMethod()}:{GetMethodName()}][Client IP:{GetClientIP()}][RequestUrl:{GetRequestUrl()}]::({guid}){Environment.NewLine} Count:{count}", LogXLabel.CONTROLLER);
Response_GetWbms response = await _cpMetaService.GetWbmsLatest(new Request_GetWbmsLatest() { Count = count, ShardID = (int)ShardID }, guid.ToString());
LogXnet.WriteLine($"[Response]::({guid}){Environment.NewLine} {response.ToJson()}", LogXLabel.CONTROLLER);
return Results.Ok(response);
}
}
}