/// <summary> /// 异步获取提现 /// </summary> public async Task <OutCashDto> GetOutCashByIdAsync(Guid id) { var entity = await OutCashRepository.FindAsync(id); var result = entity.ToDto(); return(result); }
/// <summary> /// 修改提现 /// </summary> public async Task UpdateAsync(OutCashUpdateRequest request) { var entity = await OutCashRepository.FindAsync(request.OutCashId); request.MapTo(entity); await OutCashRepository.UpdateAsync(entity); await UnitOfWork.CommitAsync(); }