Add webhook
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using Managing.Domain.Statistics;
|
||||
using Managing.Domain.Trades;
|
||||
using Managing.Domain.Users;
|
||||
using static Managing.Common.Enums;
|
||||
|
||||
namespace Managing.Application.Abstractions.Services;
|
||||
@@ -12,7 +13,7 @@ public interface IMessengerService
|
||||
Task SendPosition(Position position);
|
||||
Task SendClosingPosition(Position position);
|
||||
Task SendMessage(string v);
|
||||
Task SendTradeMessage(string message, bool isBadBehavior = false);
|
||||
Task SendTradeMessage(string message, bool isBadBehavior = false, User user = null);
|
||||
Task SendIncreasePosition(string address, Trade trade, string copyAccountName, Trade? oldTrade = null);
|
||||
Task SendClosedPosition(string address, Trade oldTrade);
|
||||
Task SendDecreasePosition(string address, Trade newTrade, decimal decreaseAmount);
|
||||
|
||||
@@ -8,5 +8,6 @@ public interface IUserService
|
||||
Task<User> GetUserByAddressAsync(string address);
|
||||
Task<User> UpdateAgentName(User user, string agentName);
|
||||
Task<User> UpdateAvatarUrl(User user, string avatarUrl);
|
||||
Task<User> UpdateTelegramChannel(User user, string telegramChannel);
|
||||
User GetUser(string name);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
using Managing.Domain.Users;
|
||||
|
||||
namespace Managing.Application.Abstractions.Services;
|
||||
|
||||
public interface IWebhookService
|
||||
{
|
||||
Task SendTradeNotification(User user, string message, bool isBadBehavior = false);
|
||||
}
|
||||
Reference in New Issue
Block a user