123456789101112131415161718192021222324252627282930313233 |
- package com.rongwei.bsserver.controller;
- import com.rongwei.bscommon.sys.service.TestrunService;
- import com.rongwei.rwcommon.base.R;
- import lombok.extern.slf4j.Slf4j;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.web.bind.annotation.*;
- import java.util.Map;
- @RestController
- @RequestMapping("/testrun")
- @Slf4j
- public class TestrunController {
- @Autowired TestrunService testrunService;
- @PostMapping("/dataImport")
- @ResponseBody
- public R dataImport(@RequestBody Map<String,Object> map) {
- testrunService.DataUpdate(map);
- return R.ok();
- }
- @PostMapping("/dataImport2")
- @ResponseBody
- public R dataImport2(@RequestBody Map<String,Object> map) {
- testrunService.Datasave(map);
- return R.ok();
- }
- }
|