package com.izouma.nineth.service;

import com.izouma.nineth.TokenHistory;
import com.izouma.nineth.domain.AssetLock;
import com.izouma.nineth.dto.PageQuery;
import com.izouma.nineth.enums.BalanceType;
import com.izouma.nineth.repo.AssetLockRepo;
import com.izouma.nineth.repo.AssetRepo;
import com.izouma.nineth.repo.TokenHistoryRepo;
import com.izouma.nineth.utils.JpaUtils;
import lombok.AllArgsConstructor;
import org.springframework.data.domain.Page;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Pattern;

@Service
@AllArgsConstructor
public class AssetLockService {

    private AssetLockRepo      assetLockRepo;

    public Page<AssetLock> all(PageQuery pageQuery) {
        return assetLockRepo.findAll(JpaUtils.toSpecification(pageQuery, AssetLock.class), JpaUtils.toPageRequest(pageQuery));
    }


}
