package com.dsh.other.controller; import cn.hutool.http.HttpRequest; import cn.hutool.http.HttpResponse; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.dsh.other.entity.Phone; import com.dsh.other.entity.Store; import com.dsh.other.entity.StoreEvaluation; import com.dsh.other.service.PhoneService; import com.dsh.other.service.StoreService; import com.dsh.other.service.TGameConfigService; import com.dsh.other.service.TGameService; import com.dsh.other.util.ResultUtil; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; import io.swagger.annotations.ApiOperation; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; import javax.annotation.Resource; import java.util.Date; import java.util.List; /** * 客服电话 控制器 */ @Controller @RequestMapping("") public class TGameController { @Resource private TGameService gameService; @Resource private TGameConfigService gameConfigService; @Resource private StoreService storeService; @ResponseBody @PostMapping("/api/game/getSpaceId") @ApiOperation(value = "智慧球场-获取场地id", tags = {"APP-智慧球场"}) @ApiImplicitParams({ @ApiImplicitParam(value = "场地名称", name = "name", required = true, dataType = "String"), }) public ResultUtil getSpaceId(String name) { try { HttpRequest httpRequest = HttpRequest.get("https://try.daowepark.com/v7/user_api/general/space_list?page=1&page_num=100"); HttpResponse execute = httpRequest.execute(); String body = execute.body(); return ResultUtil.success(); } catch (Exception e) { return ResultUtil.runErr(); } } }