File tree Expand file tree Collapse file tree 3 files changed +13
-3
lines changed
BuildingBlocks/StackSdks/Masa.BuildingBlocks.StackSdks.Mc
Contrib/StackSdks/Masa.Contrib.StackSdks.Mc/Service Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments