Files
BuYuHouDuan/CommonService/IBackgroundOperationService.cs
T
2026-10-12 16:22:04 +08:00

25 lines
782 B
C#

using System.Threading.Tasks;
using CommonDomain;
using UserDomain.Entity;
namespace CommonService
{
public interface IBackgroundOperationService
{
Task<(bool success, string message)> Charge(
string adminUserId, string targetUserId, int currencyType, long amount, string remark);
Task<(bool success, string message)> Deduct(
string adminUserId, string targetUserId, int currencyType, long amount, string remark);
Task<(List<BackgroundOperationLog> data, int total)> QueryLogs(
string? adminUserId = null,
string? targetUserId = null,
int? operationType = null,
int pageIndex = 1,
int pageSize = 20);
Task<UserEntity> SearchUser(string keyword);
}
}