|
|
@@ -0,0 +1,38 @@
|
|
|
+package com.mangoo.rating.recommend.app.controller;
|
|
|
+
|
|
|
+import com.mangoo.rating.recommend.AjaxResult;
|
|
|
+import com.mangoo.rating.recommend.annotation.ApiLog;
|
|
|
+import com.mangoo.rating.recommend.enums.BusinessType;
|
|
|
+import com.mangoo.rating.recommend.request.recommend.RecommendRequest;
|
|
|
+import com.mangoo.rating.recommend.service.RecommendService;
|
|
|
+import io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
+import org.springframework.validation.annotation.Validated;
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
+import javax.annotation.Resource;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 小程序-评级时效推荐接口
|
|
|
+ *
|
|
|
+ * @author gengjintao
|
|
|
+ * @date 2026/06/24
|
|
|
+ */
|
|
|
+@Api(tags = "小程序-评级时效推荐接口")
|
|
|
+@RestController
|
|
|
+@RequestMapping("/api/recommend")
|
|
|
+public class RecommendController {
|
|
|
+
|
|
|
+ @Resource
|
|
|
+ private RecommendService recommendService;
|
|
|
+
|
|
|
+ @ApiOperation("批量推荐评级时效并按时效分单")
|
|
|
+ @PostMapping("/efficiency")
|
|
|
+ @ApiLog(title = "评级时效推荐", businessType = BusinessType.SEARCH)
|
|
|
+ public AjaxResult recommendEfficiency(@Validated @RequestBody RecommendRequest request) {
|
|
|
+ return recommendService.recommendEfficiency(request);
|
|
|
+ }
|
|
|
+}
|