[성현모] cpmeta operation shardid 추가
This commit is contained in:
@ -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}");
|
||||
|
||||
Reference in New Issue
Block a user