whycxzp
2023-12-20 14912f45bdce261601e1476b8bd4a3a502d09d52
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package com.whyc.controller;
 
import com.whyc.dto.Response;
import com.whyc.service.StationService;
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.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
@Api(tags = "台站列表")
@RestController
@RequestMapping("station")
public class StationController {
    @Autowired
    private StationService service;
 
    @ApiOperation(value = "查询台站列表")
    @GetMapping("getStation")
    public Response getStation(){
        return  service.getStation();
    }
}