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);
|
}
|
|
|
}
|