|
|
@@ -15,7 +15,6 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
import javax.annotation.Resource;
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import java.util.List;
|
|
|
-import java.util.Map;
|
|
|
|
|
|
@Tag(name = "营养推荐", description = "精准营养推荐搜索")
|
|
|
@RestController
|
|
|
@@ -33,17 +32,6 @@ public class RecommendationController {
|
|
|
return Result.success(results);
|
|
|
}
|
|
|
|
|
|
- @Operation(summary = "按维度获取匹配商品")
|
|
|
- @PostMapping("/dimension-products")
|
|
|
- public Result<List<RecommendationResult>> dimensionProducts(
|
|
|
- @RequestBody Map<String, Object> params) {
|
|
|
- String dimensionCode = (String) params.get("dimensionCode");
|
|
|
- Long familyId = params.get("familyId") != null ? ((Number) params.get("familyId")).longValue() : null;
|
|
|
- Integer limit = params.get("limit") != null ? ((Number) params.get("limit")).intValue() : null;
|
|
|
- List<RecommendationResult> results = recommendationService.getDimensionProducts(dimensionCode, familyId, limit);
|
|
|
- return Result.success(results);
|
|
|
- }
|
|
|
-
|
|
|
@Operation(summary = "获取用户复购提醒列表")
|
|
|
@PostMapping("/repurchase-reminders")
|
|
|
public Result<List<RecommendationResult>> repurchaseReminders(
|