Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix :GetListByTagAsync supports channel code #621

Merged
merged 8 commits into from
May 19, 2023
Original file line number Diff line number Diff line change
@@ -25,5 +25,5 @@ public interface IWebsiteMessageService

Task SendGetNotificationAsync(List<string> userIds);

Task<List<WebsiteMessageModel>> GetListByTagAsync(List<string> tags);
Task<List<WebsiteMessageModel>> GetListByTagAsync(List<string> tags, string channelCode);
}
Original file line number Diff line number Diff line change
@@ -70,10 +70,10 @@ public async Task SendGetNotificationAsync(List<string> userIds)
await _caller.PostAsync(requestUri, userIds);
}

public async Task<List<WebsiteMessageModel>> GetListByTagAsync(List<string> tags)
public async Task<List<WebsiteMessageModel>> GetListByTagAsync(List<string> tags, string channelCode)
{
var requestUri = $"{_party}/ListByTag";
var options = new { tags = string.Join(",", tags) };
var options = new { tags = string.Join(",", tags), channelCode };
return await _caller.GetAsync<List<WebsiteMessageModel>>(requestUri, options) ?? new();
}
}