|
@@ -0,0 +1,63 @@
|
|
|
+package com.usky.system.controller.web;
|
|
|
+
|
|
|
+import com.usky.demo.RemoteUserService;
|
|
|
+import com.usky.system.RemoteSystemService;
|
|
|
+import com.usky.system.domain.SysConfig;
|
|
|
+import com.usky.system.service.*;
|
|
|
+import com.usky.system.service.impl.SysConfigServiceImpl;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @author yq
|
|
|
+ * @date 2022/6/23 13:12
|
|
|
+ */
|
|
|
+@RestController
|
|
|
+@RequestMapping("/test")
|
|
|
+public class TestController {
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private ISysConfigService sysConfigService;
|
|
|
+ @Autowired
|
|
|
+ private ISysUserService sysUserService;
|
|
|
+ @Autowired
|
|
|
+ private ISysDeptService sysDeptService;
|
|
|
+ @Autowired
|
|
|
+ private ISysDictTypeService sysDictTypeService;
|
|
|
+ @Autowired
|
|
|
+ private ISysDictDataService sysDictDataService;
|
|
|
+ @Autowired
|
|
|
+ private ISysPostService iSysPostService;
|
|
|
+ @Autowired
|
|
|
+ private ISysMenuService sysMenuService;
|
|
|
+ @Autowired
|
|
|
+ private ISysLogininforService sysLogininforService;
|
|
|
+ @Autowired
|
|
|
+ private ISysOperLogService sysOperLogService;
|
|
|
+
|
|
|
+ @RequestMapping("/test")
|
|
|
+ public void test(){
|
|
|
+ SysConfig byId = sysConfigService.getById(1);
|
|
|
+ sysUserService.getById(1);
|
|
|
+ sysDeptService.getById(1);
|
|
|
+ sysDictTypeService.getById(1);
|
|
|
+ sysDictDataService.getById(1);
|
|
|
+ iSysPostService.getById(1);
|
|
|
+ sysMenuService.getById(1);
|
|
|
+ sysLogininforService.getById(1);
|
|
|
+ sysOperLogService.getById(1);
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private RemoteUserService remoteUserService;
|
|
|
+
|
|
|
+ @RequestMapping("test2")
|
|
|
+ public void test2(){
|
|
|
+ remoteUserService.getByUserName("name");
|
|
|
+ System.out.println("远程调用成功");
|
|
|
+ }
|
|
|
+
|
|
|
+}
|