eight
2025-03-30 069328ea846a08e673c508725e7e8d019f8a6333
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 );
    }
}