package com.liquidnet.service.goblin.test;

import com.liquidnet.commons.lang.util.JsonUtils;
import com.liquidnet.service.galaxy.dto.param.GalaxyNftPublishAndBuyReqDto;
import com.liquidnet.service.galaxy.utils.GalaxyDataUtils;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import java.util.List;

/**
 * @author AnJiabin <anjiabin@zhengzai.tv>
 * @version V1.0
 * @Description: TODO
 * @class: TestRedisUtil
 * @Package com.liquidnet.service.goblin.test
 * @Copyright: LightNet @ Copyright (c) 2022
 * @date 2022/7/12 12:02
 */
@Slf4j
@RunWith(SpringJUnit4ClassRunner.class)
@SpringBootTest
public class TestRedisUtil {
    @Autowired
    private GalaxyDataUtils dataUtils;

    @Test
    public void test() {
        String skuId = "2212517482527828303";
        List rsList = dataUtils.getGoblinNumList(skuId);
        log.info("rs:{}",JsonUtils.toJson(rsList));
        GalaxyNftPublishAndBuyReqDto reqDto = dataUtils.getGoblinNumDetails(skuId,String.valueOf(4));
        log.info("reqDto:{}", JsonUtils.toJson(reqDto));
    }
}
