批量删除套餐、菜品起售停售(TODO)
This commit is contained in:
@@ -98,9 +98,22 @@ public class DishController {
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
@ApiOperation("根据分类id查询菜品")
|
||||
public Result<List> list(String categoryId){
|
||||
public Result<List> list(Long categoryId){
|
||||
log.info("根据分类id查询菜品: {}",categoryId);
|
||||
List<Dish> dishes = dishService.selectByCategoryId(categoryId);
|
||||
return Result.success(dishes);
|
||||
}
|
||||
|
||||
/**
|
||||
* 菜品起售停售
|
||||
* @param status
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/status/{status}")
|
||||
@ApiOperation("菜品起售停售")
|
||||
public Result startOrStop(@PathVariable Integer status,Long id){
|
||||
dishService.startOrStop(status,id);
|
||||
return Result.success();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user