lyhzzz hai 9 meses
pai
achega
4749a0c5f9

+ 16 - 0
src/main/java/com/fdkankan/manage/controller/IndexController.java

@@ -3,11 +3,16 @@ package com.fdkankan.manage.controller;
 
 import com.fdkankan.manage.common.ResultData;
 import com.fdkankan.manage.entity.JyPlatform;
+import com.fdkankan.manage.entity.JyUser;
 import com.fdkankan.manage.service.IJyPlatformService;
+import com.fdkankan.manage.service.IJyUserService;
 import com.fdkankan.manage.vo.request.JyPlatformParam;
+import com.fdkankan.manage.vo.request.UserParam;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.*;
 
+import java.util.List;
+
 /**
  * <p>
  *  前端控制器
@@ -22,12 +27,23 @@ public class IndexController {
 
     @Autowired
     IJyPlatformService jyPlatformService;
+    @Autowired
+    IJyUserService jyUserService;
 
     @GetMapping("/addressKey/{address}")
     public ResultData getByAddress(@PathVariable String address){
         return ResultData.ok(jyPlatformService.getByAddress(address));
     }
 
+    @GetMapping("test")
+    public ResultData test(){
+        UserParam userParam = new UserParam();
+        userParam.setRyId("11");
+        userParam.setRyNo("122");
+        List<JyUser> jyUserList = jyUserService.getByAddParam(userParam);
+
+        return ResultData.ok(jyUserList);
+    }
 
 }
 

+ 1 - 9
src/main/java/com/fdkankan/manage/controller/inner/InnerAPIController.java

@@ -306,14 +306,6 @@ public class InnerAPIController extends BaseController {
     }
 
 
-    @GetMapping("test")
-    public ResultData test(){
-        UserParam userParam = new UserParam();
-        userParam.setRyId("11");
-        userParam.setRyNo("122");
-        List<JyUser> jyUserList = jyUserService.getByAddParam(userParam);
-
-        return ResultData.ok(jyUserList);
-    }
+
 
 }