Skip to content

Commit 4ddc39c

Browse files
authored
reactor : GetUnreadAsync add tag (#673)
1 parent f3f67ba commit 4ddc39c

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// Copyright (c) MASA Stack All rights reserved.
2+
// Licensed under the MIT License. See LICENSE.txt in the project root for license information.
3+
4+
namespace Masa.BuildingBlocks.StackSdks.Mc.Model;
5+
6+
public class GetUnreadModel
7+
{
8+
public string ChannelCode { get; set; } = string.Empty;
9+
10+
public string Tag { get; set; } = string.Empty;
11+
}

src/BuildingBlocks/StackSdks/Masa.BuildingBlocks.StackSdks.Mc/Service/IWebsiteMessageService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ public interface IWebsiteMessageService
2727

2828
Task<List<WebsiteMessageTagModel>> GetListByTagAsync(List<string> tags, string channelCode);
2929

30-
Task<int> GetUnreadAsync(string channelCode);
30+
Task<int> GetUnreadAsync(GetUnreadModel options);
3131
}

src/Contrib/StackSdks/Masa.Contrib.StackSdks.Mc/Service/WebsiteMessageService.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,9 @@ public async Task<List<WebsiteMessageTagModel>> GetListByTagAsync(List<string> t
7777
return await _caller.GetAsync<List<WebsiteMessageTagModel>>(requestUri, options) ?? new();
7878
}
7979

80-
public async Task<int> GetUnreadAsync(string channelCode)
80+
public async Task<int> GetUnreadAsync(GetUnreadModel options)
8181
{
8282
var requestUri = $"{_party}/Unread";
83-
var options = new { channelCode };
8483
return await _caller.GetAsync<int>(requestUri, options);
8584
}
8685
}

0 commit comments

Comments
 (0)