25 lines
782 B
C#
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);
|
||
|
|
}
|
||
|
|
}
|