郑永安
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
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.model.dto.resp.SafeCheckRegionTypeRespDTO;
import com.gkhy.safePlatform.safeCheck.service.SafeCheckBaseManagerService;
import org.checkerframework.checker.units.qual.A;
import org.omg.CORBA.PUBLIC_MEMBER;
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("/SafeCheckRegionType")
public class SafeCheckRegionTypeController {
 
    @Autowired
    private SafeCheckBaseManagerService safeCheckBaseManagerService;
 
    /**
     * @description 区域或设施设备类型 目前只提供获取所有的类型,预留后面增删改查的空间
     */
    @GetMapping(value = "/select/listRegionType")
    public ResultVO<List<SafeCheckRegionTypeRespDTO>> lisRegionType(){
        List<SafeCheckRegionTypeRespDTO> safeCheckRegionTypeRespDTOS = safeCheckBaseManagerService.listRegionType();
        return new ResultVO<>(ResultCodes.OK, safeCheckRegionTypeRespDTOS);
    }
}