Class CityControllerVisitor

java.lang.Object
com.bytedesk.liangshibao.city.CityControllerVisitor

@RestController @RequestMapping("/visitor/api/v1/city") public class CityControllerVisitor extends Object
  • Field Details

  • Constructor Details

    • CityControllerVisitor

      public CityControllerVisitor()
  • Method Details

    • getHotCites

      @GetMapping("/hot") public org.springframework.http.ResponseEntity<?> getHotCites()
      列出所有城市,客户端调用 TODO: 生成json文件,客户端直接读取json文件可加快速度 http://127.0.0.1:9003/visitor/api/v1/city/all
      Returns:
      json
    • getOpenCities

      @GetMapping("/open") public org.springframework.http.ResponseEntity<?> getOpenCities()
    • getOpenCitiesMap

      @GetMapping("/open/map") public org.springframework.http.ResponseEntity<?> getOpenCitiesMap()