[성현모] cpmeta operation shardid 추가

This commit is contained in:
SHM
2025-11-21 14:09:34 +09:00
parent 4eb29fa4fb
commit 70f20e3954
2 changed files with 24 additions and 12 deletions

View File

@ -22,12 +22,12 @@ namespace Web.Operation.Services
ApiHost = _configService.GetConfig()?.Api.Find(x => x.Id == 1)?.Host;
}
public async Task<Response_GetWbmsMeta> GetWbmsMeta(DateOnly? startDate, DateOnly? endDate, string host)
public async Task<Response_GetWbmsMeta> GetWbmsMeta(DateOnly? startDate, DateOnly? endDate, string host, int shardID = 1)
{
string requestUrl = $"https://{host}/CPMeta/GetWbmsMeta?";
requestUrl += $"startDate={startDate}&";
requestUrl += $"endDate={endDate}&";
requestUrl += $"ShardID=1";
requestUrl += $"ShardID={shardID}";
Http http = new Http();
var res = await http.GetJsonAsync<Response_GetWbmsMeta>($"{requestUrl}");
@ -37,11 +37,11 @@ namespace Web.Operation.Services
return res;
}
public async Task<Response_GetWbmsMeta> GetWbmsMetaByProductID(string productId, string host)
public async Task<Response_GetWbmsMeta> GetWbmsMetaByProductID(string productId, string host, int shardID = 1)
{
string requestUrl = $"https://{host}/CPMeta/GetWbmsMetaByProductID?";
requestUrl += $"ProductID={productId}&";
requestUrl += $"ShardID=1";
requestUrl += $"ShardID={shardID}";
Http http = new Http();
var res = await http.GetJsonAsync<Response_GetWbmsMeta>($"{requestUrl}");
@ -51,11 +51,11 @@ namespace Web.Operation.Services
return res;
}
public async Task<Response_GetWbmsMeta> GetWbmsMetaByMacAddress(string macAddress, string host)
public async Task<Response_GetWbmsMeta> GetWbmsMetaByMacAddress(string macAddress, string host, int shardID = 1)
{
string requestUrl = $"https://{host}/CPMeta/GetWbmsMetaByMacAddress?";
requestUrl += $"MacAddress={macAddress}&";
requestUrl += $"ShardID=1";
requestUrl += $"ShardID={shardID}";
Http http = new Http();
var res = await http.GetJsonAsync<Response_GetWbmsMeta>($"{requestUrl}");