eight
2024-12-12 2bc90e242eceb83d9aa80d48ea9f991c0f9b99c6
jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/devmanage/DevModelController.java
@@ -92,4 +92,20 @@
                        BeanUtils.toBean(list, DevModelRespVO.class));
    }
    @GetMapping("/brand-option")
    @Operation(summary = "获得品牌选项")
    @PreAuthorize("@ss.hasPermission('ecg:dev-model:query')")
    public CommonResult<List<OptionVO>> getBrandOption(String category) {
        List<OptionVO> optionVOList = devModelService.getBrandOptions( category );
        return success( optionVOList );
    }
    @GetMapping("/model-option")
    @Operation(summary = "获得模型选项")
    @PreAuthorize("@ss.hasPermission('ecg:dev-model:query')")
    public CommonResult<List<OptionVO>> getModelOption(String category, String brand) {
        List<OptionVO> optionVOList = devModelService.getBrandModelOptions( category, brand );
        return success( optionVOList );
    }
}