feat:增加查询用户菜谱接口
This commit is contained in:
@@ -39,10 +39,16 @@ public class FoodController {
|
||||
return foodService.deleteRecipe(id);
|
||||
}
|
||||
|
||||
@Operation(summary = "查询用户美食菜谱")
|
||||
@GetMapping("/recipe/user/{id}")
|
||||
public List<SummaryDto> queryRecipeByUser(@PathVariable("id") long id) {
|
||||
return foodService.queryRecipeByUser(id);
|
||||
}
|
||||
|
||||
@Operation(summary = "查询美食菜谱")
|
||||
@GetMapping("/recipe")
|
||||
public List<SummaryDto> querySummary(FoodQueryVo foodQueryVo) {
|
||||
return foodService.querySummary(foodQueryVo);
|
||||
public List<SummaryDto> queryRecipeSummary(FoodQueryVo foodQueryVo) {
|
||||
return foodService.queryRecipeSummary(foodQueryVo);
|
||||
}
|
||||
|
||||
@Operation(summary = "分页查询美食菜谱")
|
||||
@@ -53,10 +59,10 @@ public class FoodController {
|
||||
return foodService.querySummaryByPage(currentPage, pageSize, foodQueryVo);
|
||||
}
|
||||
|
||||
@Operation(summary = "查询美食")
|
||||
@Operation(summary = "根据id查询美食")
|
||||
@GetMapping("/recipe/{id}")
|
||||
public @JsonView(ReadView.class) RecipeDto queryRecipe(@PathVariable("id") long id) {
|
||||
return foodService.queryRecipe(id);
|
||||
public @JsonView(ReadView.class) RecipeDto queryRecipeById(@PathVariable("id") long id) {
|
||||
return foodService.queryRecipeById(id);
|
||||
}
|
||||
|
||||
@Operation(summary = "查询所有美食名称")
|
||||
|
||||
Reference in New Issue
Block a user