package com.xiaopeng.operation.controller; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.xiaopeng.common.core.domain.R; import com.xiaopeng.api.model.operation.XpRegion; import com.xiaopeng.operation.service.XpRegionService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import java.io.BufferedReader; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.URL; import java.util.List; /** *
* 省市管理 前端控制器 *
* */ @Api(tags = "省市管理") @RestController @RequestMapping("/base/v1/mini-program") public class XpRegionController { private final XpRegionService regionService; @Autowired public XpRegionController(XpRegionService regionService) { this.regionService = regionService; } /** * 查询省市管理 */ @ApiOperation(value = "查询省市管理",tags = {"小程序-省市管理"},response = XpRegion.class) @GetMapping(value = "/open/t-region/getRegion") public R