郑永安
2023-06-19 7a6abd05683528032687c75e80e0bd2030a3e46c
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
package com.gkhy.safePlatform.safeCheck.controller;
 
import com.gkhy.safePlatform.commons.enums.ResultCodes;
import com.gkhy.safePlatform.commons.vo.ResultVO;
import com.gkhy.safePlatform.safeCheck.model.dto.resp.SafeCheckQuotaTypeRespDTO;
import com.gkhy.safePlatform.safeCheck.service.SafeCheckBaseManagerService;
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;
 
import java.util.List;
 
 
@RestController
@RequestMapping("/safeCheckQuotaType")
public class SafeCheckQuotaTypeController {
 
    @Autowired
    private SafeCheckBaseManagerService safeCheckBaseManagerService;
 
    /**
     * 获取巡检指标所有的类型 目前只提供获取所有的类型,预留后面增删改查的空间
     * @return
     */
    @GetMapping(value = "/select/listQuotaType")
    public ResultVO<List<SafeCheckQuotaTypeRespDTO>> listQuotaType(){
        List<SafeCheckQuotaTypeRespDTO> safeCheckQuotaTypeRespDTOS = safeCheckBaseManagerService.listQuotaType();
        return new ResultVO<>(ResultCodes.OK, safeCheckQuotaTypeRespDTOS);
    }
 
 
}