TestrunController.java 808 B

123456789101112131415161718192021222324252627282930313233
  1. package com.rongwei.bsserver.controller;
  2. import com.rongwei.bscommon.sys.service.TestrunService;
  3. import com.rongwei.rwcommon.base.R;
  4. import lombok.extern.slf4j.Slf4j;
  5. import org.springframework.beans.factory.annotation.Autowired;
  6. import org.springframework.web.bind.annotation.*;
  7. import java.util.Map;
  8. @RestController
  9. @RequestMapping("/testrun")
  10. @Slf4j
  11. public class TestrunController {
  12. @Autowired TestrunService testrunService;
  13. @PostMapping("/dataImport")
  14. @ResponseBody
  15. public R dataImport(@RequestBody Map<String,Object> map) {
  16. testrunService.DataUpdate(map);
  17. return R.ok();
  18. }
  19. @PostMapping("/dataImport2")
  20. @ResponseBody
  21. public R dataImport2(@RequestBody Map<String,Object> map) {
  22. testrunService.Datasave(map);
  23. return R.ok();
  24. }
  25. }