|
|
@@ -1,57 +0,0 @@
|
|
|
-package com.fdkankan.manage.controller;
|
|
|
-
|
|
|
-import com.fdkankan.common.response.ResultData;
|
|
|
-import com.fdkankan.manage.entity.Agent;
|
|
|
-import com.fdkankan.manage.service.IAgentService;
|
|
|
-import com.fdkankan.redis.util.RedisUtil;
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.*;
|
|
|
-import org.springframework.web.multipart.MultipartFile;
|
|
|
-
|
|
|
-import java.util.List;
|
|
|
-import java.util.Map;
|
|
|
-
|
|
|
-/**
|
|
|
- * <p>
|
|
|
- * TODO
|
|
|
- * </p>
|
|
|
- *
|
|
|
- * @author dengsixing
|
|
|
- * @since 2022/5/27
|
|
|
- **/
|
|
|
-@RestController
|
|
|
-@RequestMapping("/service/manage")
|
|
|
-public class TestController {
|
|
|
-
|
|
|
- @Autowired
|
|
|
- RedisUtil redisUtil;
|
|
|
-
|
|
|
- @Autowired
|
|
|
- private IAgentService agentService;
|
|
|
-
|
|
|
- @GetMapping("/test")
|
|
|
- public ResultData test(String num){
|
|
|
-
|
|
|
- List<Agent> list = agentService.list();
|
|
|
-
|
|
|
- return ResultData.ok(list.toArray());
|
|
|
- }
|
|
|
-
|
|
|
- @PostMapping("/test3")
|
|
|
- public ResultData test3(String num, @RequestParam("file") MultipartFile file){
|
|
|
-
|
|
|
- List<Agent> list = agentService.list();
|
|
|
-
|
|
|
- return ResultData.ok(list.toArray());
|
|
|
- }
|
|
|
-
|
|
|
- @PostMapping("/test1")
|
|
|
- public ResultData test(@RequestBody Map<String, String> params){
|
|
|
-
|
|
|
- List<Agent> list = agentService.list();
|
|
|
-
|
|
|
- return ResultData.ok(list.toArray());
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
-}
|