|
@@ -0,0 +1,58 @@
|
|
|
|
+package com.pavis.ai.app.fjsocrasy.controller;
|
|
|
|
+
|
|
|
|
+import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
|
|
|
|
+import com.github.xiaoymin.knife4j.annotations.ApiSort;
|
|
|
|
+import com.pavis.ai.app.fjsocrasy.common.http.ResultBody;
|
|
|
|
+import com.pavis.ai.app.fjsocrasy.form.ShuntParam;
|
|
|
|
+import com.pavis.ai.app.fjsocrasy.service.OcrService;
|
|
|
|
+import com.pavis.ai.app.fjsocrasy.service.RecommendInfoService;
|
|
|
|
+import com.pavis.ai.app.fjsocrasy.service.UploadService;
|
|
|
|
+import io.swagger.annotations.Api;
|
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
+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;
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ *@描述
|
|
|
|
+ *@创建人 guanzi
|
|
|
|
+ *@创建时间 2020/12/8 20:36
|
|
|
|
+ */
|
|
|
|
+@Slf4j
|
|
|
|
+@RestController
|
|
|
|
+@Api(tags = "分流接口")
|
|
|
|
+@ApiSort(1)
|
|
|
|
+@RequestMapping("/api")
|
|
|
|
+public class ShuntController {
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ @Autowired
|
|
|
|
+ private OcrService ocrService;
|
|
|
|
+
|
|
|
|
+ @Autowired
|
|
|
|
+ private UploadService uploadService;
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ @Autowired
|
|
|
|
+ private RecommendInfoService recommendInfoService;
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ *@描述
|
|
|
|
+ *@参数
|
|
|
|
+ *@返回值
|
|
|
|
+ *@创建人 guanzi
|
|
|
|
+ *@创建时间 2020/12/8 20:38
|
|
|
|
+ *@修改人和其它信息
|
|
|
|
+ */
|
|
|
|
+ @ApiOperation("分流设置接口")
|
|
|
|
+ @ApiOperationSupport(order = 1)
|
|
|
|
+ @PostMapping("/fjs/shunt/set")
|
|
|
|
+ public ResultBody res(@RequestBody ShuntParam shuntParam) throws Exception {
|
|
|
|
+ return ResultBody.failed().path("/api/fjs/shunt/set").data(null).msg("参数不能为空,请仔细检查参数后重试。");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+}
|