44323
2023-11-27 aa925d851857f50eff0556411366690d9a78a0e5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
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();
        }
    }
 
}