api: use wamp services instead of forwarding http requests for internal apis

This commit is contained in:
Abdullah Atta committed 2024-06-07 15:35:31 +05:00
1 parent 353e866cda
commit 99da765a1c
10 files changed
+230 -233

No files matched your search

@@ -0,0 +1,13 @@
using System.Threading.Tasks;
using Streetwriters.Common.Helpers;
using Streetwriters.Common.Models;
using WampSharp.V2.Rpc;
namespace Streetwriters.Common.Interfaces
{
public interface IUserSubscriptionService
{
[WampProcedure("co.streetwriters.subscriptions.subscriptions.get_user_subscription")]
Task<Subscription> GetUserSubscriptionAsync(string clientId, string userId);
}
}