//package com.zbkj.front.user;
//
//import com.alibaba.fastjson.JSON;
//import com.github.pagehelper.PageInfo;
//import com.zbkj.common.constants.Constants;
//import com.zbkj.common.model.game.Game;
//import com.zbkj.common.request.*;
//import com.zbkj.common.response.*;
//import com.zbkj.common.utils.DateUtil;
//import com.zbkj.front.service.ProductService;
//import com.zbkj.service.service.GameService;
//import com.zbkj.service.service.GameTreeProductService;
//import com.zbkj.service.service.SystemGroupDataService;
//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.SpringRunner;
//
//import java.util.HashMap;
//import java.util.List;
//
//@SpringBootTest
//@RunWith(SpringRunner.class)
//public class GameTest {
//
//    @Autowired private GameService gameService;
//    @Autowired private GameTreeProductService gameTreeProductService;
//
//    @Test
//    public void fruitExchange(){
//        UserExchangeRequest request = new UserExchangeRequest();
//        request.setTreeProductId("2");
//        request.setStoreId("1");
//        request.setNumber("1");
//        request.setPhone("16621399662");
//        request.setRealName("唐");
//        Boolean b = gameTreeProductService.fruitExchange(request);
//        System.out.println(b);
//    }
//
//    @Test
//    public void gameTreeProductService(){
//        PageParamRequest page = new PageParamRequest();
//        page.setLimit(10);
//        page.setPage(1);
//        GameTreeProductListRequest request = new GameTreeProductListRequest();
//        PageInfo<GameTreeProductResponse> res = gameTreeProductService.getList(request, page);
//        System.out.println(JSON.toJSONString(res));
//    }
//
//    @Test
//    public void getUserFarm(){
//        UserTreeFarmRequest request = new UserTreeFarmRequest();
//        request.setGameId("3");
//        UserTreeFarmResponse userFarm = gameService.getUserFarm(request);
//        System.out.println(JSON.toJSONString(userFarm));
//    }
//
//    @Test
//    public void info(){
//        GameResponse res = gameService.getVoByFront("2");
//        System.out.println(JSON.toJSONString(res));
//    }
//
//    @Test
//    public void getUserWater(){
//        UserWaterRequest req = new UserWaterRequest();
//        req.setUserItemId("1");
//        UserWaterResponse userWater = gameService.getUserWater(req);
//        System.out.println(JSON.toJSONString(userWater));
//    }
//
//    @Test
//    public void getGameItem(){
//        Object gameItem = gameService.getGameItem("3", "9");
//        System.out.println(JSON.toJSONString(gameItem));
//    }
//
//    @Test
//    public void getPrizeDraw(){
//        GameResponse data = gameService.getVoByFront("2");
//        System.out.println(JSON.toJSONString(data));
//    }
//
//    @Test
//    public void getTree(){
//        GameResponse data = gameService.getVoByFront("3");
//        System.out.println(JSON.toJSONString(data));
//    }
//
//    @Test
//    public void getGameItemList(){
//        PageParamRequest page = new PageParamRequest();
//        page.setLimit(10);
//        page.setPage(1);
//        PageInfo<Object> list = gameService.getGameItemList("2", page);
//        System.out.println(JSON.toJSONString(list));
//    }
//
//    @Test
//    public void detail(){
//        Game detail = gameService.getDetail(2);
//        System.out.println(JSON.toJSONString(detail));
//    }
//
//    @Test
//    public void prizeDraw(){
//        PrizeDrawResponse res = gameService.prizeDraw("2");
//        System.out.println(JSON.toJSONString(res));
//    }
//
//}