2021与蓝度共同重构项目,服务端
fix
zhanzhiqin
2021-12-13 5729dac1400ba8bc041aa425227aba238ba6bc6b
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
package com.sandu.ximon.admin.controller;
 
import com.sandu.common.domain.ResponseVO;
import com.sandu.common.util.ResponseUtil;
import com.sandu.ximon.admin.service.LightPoleHeelingService;
import com.sandu.ximon.dao.domain.LightPoleHeeling;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
import java.util.List;
 
/**
 * 灯杆倾斜
 */
@RestController
@AllArgsConstructor
@RequestMapping("/v1/admin/LightPoleHeeling")
public class LightPoleHeelingController {
    private final LightPoleHeelingService lightPoleHeelingService;
 
    @GetMapping
    public ResponseVO<Object> listLightPoleHeeling() {
        List<LightPoleHeeling> list = lightPoleHeelingService.listLightPoleHeeling();
        return ResponseUtil.successPage(list);
    }
 
    /**
     * 模糊查询
     *
     * @return
     */
    @GetMapping("/listLightPoleHeelingByKeyword/{keyword}")
    public ResponseVO<Object> listLightPoleHeelingByKeyword(@PathVariable String keyword) {
        List<LightPoleHeeling> list = lightPoleHeelingService.listLightPoleHeelingByKeyword(keyword);
        return ResponseUtil.successPage(list);
    }
}