| | |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.*; |
| | | |
| | | /** |
| | |
| | | * 创建任务 |
| | | * @return |
| | | */ |
| | | @GetMapping("/createCall") |
| | | public R createCall(){ |
| | | List<Map<String,String>> list = new ArrayList<>(); |
| | | Map<String,String> maps = new HashMap<>(); |
| | | maps.put("phone","15170720695"); |
| | | maps.put("name","测试水库"); |
| | | maps.put("over","1.2"); |
| | | maps.put("code","1241241122"); |
| | | maps.put("userName","zrj"); |
| | | maps.put("userId","123456"); |
| | | list.add(maps); |
| | | callService.createTask(list); |
| | | @PostMapping("/createCall") |
| | | public R createCall(@RequestBody List<Map<String,String>> list){ |
| | | // 返回 |
| | | return R.status(true); |
| | | return R.data(callService.createTask(list)); |
| | | } |
| | | |
| | | /** |