| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得品牌") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1") |
| | | @PreAuthorize("@ss.hasPermission('mdm:brand:query')") |
| | | public CommonResult<MdmBrandDO> getBrand(@RequestParam("id") Long id) { |
| | | return success(brandService.getBrand(id)); |
| | | } |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得品牌分页") |
| | | @PreAuthorize("@ss.hasPermission('mdm:brand:query')") |
| | | public CommonResult<PageResult<MdmBrandDO>> getBrandPage(@Valid MdmBrandPageReqVO pageReqVO) { |
| | | return success(brandService.getBrandPage(pageReqVO)); |
| | | } |
| | | |
| | | @GetMapping("/list") |
| | | @Operation(summary = "获得品牌列表") |
| | | @PreAuthorize("@ss.hasPermission('mdm:brand:query')") |
| | | public CommonResult<List<MdmBrandDO>> getBrandList() { |
| | | return success(brandService.getBrandList(null)); |
| | | } |
| | |
| | | @GetMapping("/list-by-ids") |
| | | @Operation(summary = "获得品牌列表") |
| | | @Parameter(name = "ids", description = "编号列表", required = true, example = "1,2,3") |
| | | @PreAuthorize("@ss.hasPermission('mdm:brand:query')") |
| | | public CommonResult<List<MdmBrandDO>> getBrandListByIds(@RequestParam("ids") List<Long> ids) { |
| | | return success(brandService.getBrandList(ids)); |
| | | } |