[성현모] CPMeta 최근데이터 조회 기능 추가
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user