ShuntController.java 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. package com.pavis.ai.app.fjsocrasy.controller;
  2. import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
  3. import com.github.xiaoymin.knife4j.annotations.ApiSort;
  4. import com.pavis.ai.app.fjsocrasy.common.http.ResultBody;
  5. import com.pavis.ai.app.fjsocrasy.form.ShuntParam;
  6. import com.pavis.ai.app.fjsocrasy.service.OcrService;
  7. import io.swagger.annotations.Api;
  8. import io.swagger.annotations.ApiOperation;
  9. import lombok.extern.slf4j.Slf4j;
  10. import org.springframework.beans.factory.annotation.Autowired;
  11. import org.springframework.web.bind.annotation.PostMapping;
  12. import org.springframework.web.bind.annotation.RequestBody;
  13. import org.springframework.web.bind.annotation.RequestMapping;
  14. import org.springframework.web.bind.annotation.RestController;
  15. /**
  16. *@描述
  17. *@创建人 guanzi
  18. *@创建时间 2020/12/8 20:36
  19. */
  20. @Slf4j
  21. @RestController
  22. @Api(tags = "分流接口")
  23. @ApiSort(1)
  24. @RequestMapping("/api")
  25. public class ShuntController {
  26. @Autowired
  27. private OcrService ocrService;
  28. /**
  29. *@描述
  30. *@参数
  31. *@返回值
  32. *@创建人 guanzi
  33. *@创建时间 2020/12/8 20:38
  34. *@修改人和其它信息
  35. */
  36. @ApiOperation("分流设置接口")
  37. @ApiOperationSupport(order = 1)
  38. @PostMapping("/fjs/shunt/set")
  39. public ResultBody res(@RequestBody ShuntParam shuntParam) throws Exception {
  40. return ResultBody.failed().path("/api/fjs/shunt/set").data(ocrService.shuntSet(shuntParam));
  41. }
  42. }