|
@@ -11,7 +11,7 @@ import org.dromara.common.web.core.BaseController;
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
/**
|
|
/**
|
|
- * 品牌组
|
|
|
|
|
|
+ * 品牌组接口
|
|
*/
|
|
*/
|
|
@RequiredArgsConstructor
|
|
@RequiredArgsConstructor
|
|
@RestController
|
|
@RestController
|
|
@@ -21,33 +21,33 @@ public class BrandController extends BaseController {
|
|
|
|
|
|
/**
|
|
/**
|
|
* 查询品牌列表
|
|
* 查询品牌列表
|
|
- * @param brandBo 品牌Bo对象
|
|
|
|
|
|
+ * @param brand 品牌Bo对象
|
|
* @param pageQuery 分页信息
|
|
* @param pageQuery 分页信息
|
|
* @return 查询结果
|
|
* @return 查询结果
|
|
*/
|
|
*/
|
|
@GetMapping()
|
|
@GetMapping()
|
|
- public TableDataInfo<BrandVo> selectPageBrandList(BrandBo brandBo, PageQuery pageQuery) {
|
|
|
|
- return brandService.selectPageBrandList(brandBo, pageQuery);
|
|
|
|
|
|
+ public TableDataInfo<BrandVo> selectPageDiBuList(BrandBo brand, PageQuery pageQuery) {
|
|
|
|
+ return brandService.selectPageBrandList(brand, pageQuery);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
* 新增品牌
|
|
* 新增品牌
|
|
- * @param brandBo 品牌Bo对象
|
|
|
|
|
|
+ * @param brand 品牌Bo对象
|
|
* @return 新增结果
|
|
* @return 新增结果
|
|
*/
|
|
*/
|
|
@PostMapping()
|
|
@PostMapping()
|
|
- public R<Void> insertBrand(@RequestBody BrandBo brandBo) {
|
|
|
|
- return toAjax(brandService.insertBrand(brandBo));
|
|
|
|
|
|
+ public R<Void> insertBrand(@RequestBody BrandBo brand) {
|
|
|
|
+ return toAjax(brandService.insertBrand(brand));
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
* 修改品牌
|
|
* 修改品牌
|
|
- * @param brandBo 品牌Bo对象
|
|
|
|
|
|
+ * @param brand 品牌Bo对象
|
|
* @return 修改结果
|
|
* @return 修改结果
|
|
*/
|
|
*/
|
|
@PutMapping()
|
|
@PutMapping()
|
|
- public R<Void> updateBrand(@RequestBody BrandBo brandBo) {
|
|
|
|
- return toAjax(brandService.updateBrand(brandBo));
|
|
|
|
|
|
+ public R<Void> updateBrand(@RequestBody BrandBo brand) {
|
|
|
|
+ return toAjax(brandService.updateBrand(brand));
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|