mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-10-31 10:18:42 +08:00 
			
		
		
		
	完成部分权限的认证操作的迁移
This commit is contained in:
		| @@ -9,17 +9,15 @@ import com.ruoyi.framework.web.domain.Server; | ||||
|  | ||||
| /** | ||||
|  * 服务器监控 | ||||
|  *  | ||||
|  * | ||||
|  * @author ruoyi | ||||
|  */ | ||||
| @RestController | ||||
| @RequestMapping("/monitor/server") | ||||
| public class ServerController | ||||
| { | ||||
| public class ServerController { | ||||
|     @PreAuthorize("@ss.hasPermi('monitor:server:list')") | ||||
|     @GetMapping() | ||||
|     public AjaxResult getInfo() throws Exception | ||||
|     { | ||||
|     public AjaxResult getInfo() throws Exception { | ||||
|         Server server = new Server(); | ||||
|         server.copyTo(); | ||||
|         return AjaxResult.success(server); | ||||
|   | ||||
| @@ -1,24 +1,24 @@ | ||||
| package com.ruoyi.web.controller.tool; | ||||
| 
 | ||||
| import org.springframework.security.access.prepost.PreAuthorize; | ||||
| import org.springframework.stereotype.Controller; | ||||
| import org.springframework.web.bind.annotation.GetMapping; | ||||
| import org.springframework.web.bind.annotation.RequestMapping; | ||||
| import com.ruoyi.common.core.controller.BaseController; | ||||
| 
 | ||||
| /** | ||||
|  * swagger 接口 | ||||
|  *  | ||||
|  * @author ruoyi | ||||
|  */ | ||||
| @Controller | ||||
| @RequestMapping("/tool/swagger") | ||||
| public class SwaggerController extends BaseController | ||||
| { | ||||
|     @PreAuthorize("@ss.hasPermi('tool:swagger:view')") | ||||
|     @GetMapping() | ||||
|     public String index() | ||||
|     { | ||||
|         return redirect("/swagger-ui.html"); | ||||
|     } | ||||
| } | ||||
| package com.ruoyi.web.controller.tool; | ||||
| 
 | ||||
| import org.springframework.security.access.prepost.PreAuthorize; | ||||
| import org.springframework.stereotype.Controller; | ||||
| import org.springframework.web.bind.annotation.GetMapping; | ||||
| import org.springframework.web.bind.annotation.RequestMapping; | ||||
| import com.ruoyi.common.core.controller.BaseController; | ||||
| 
 | ||||
| /** | ||||
|  * swagger 接口 | ||||
|  *  | ||||
|  * @author ruoyi | ||||
|  */ | ||||
| @Controller | ||||
| @RequestMapping("/tool/swagger") | ||||
| public class SwaggerController extends BaseController | ||||
| { | ||||
|     @PreAuthorize("@ss.hasPermi('tool:swagger:view')") | ||||
|     @GetMapping() | ||||
|     public String index() | ||||
|     { | ||||
|         return redirect("/swagger-ui.html"); | ||||
|     } | ||||
| } | ||||
| @@ -5,31 +5,45 @@ package com.ruoyi.system.domain; | ||||
|  * | ||||
|  * @author ruoyi | ||||
|  */ | ||||
| public class SysUserOnline | ||||
| { | ||||
|     /** 会话编号 */ | ||||
| public class SysUserOnline { | ||||
|     /** | ||||
|      * 会话编号 | ||||
|      */ | ||||
|     private String tokenId; | ||||
|  | ||||
|     /** 部门名称 */ | ||||
|     /** | ||||
|      * 部门名称 | ||||
|      */ | ||||
|     private String deptName; | ||||
|  | ||||
|     /** 用户名称 */ | ||||
|     /** | ||||
|      * 用户名称 | ||||
|      */ | ||||
|     private String userName; | ||||
|  | ||||
|     /** 登录IP地址 */ | ||||
|     /** | ||||
|      * 登录IP地址 | ||||
|      */ | ||||
|     private String ipaddr; | ||||
|  | ||||
|     /** 登录地址 */ | ||||
|     /** | ||||
|      * 登录地址 | ||||
|      */ | ||||
|     private String loginLocation; | ||||
|  | ||||
|     /** 浏览器类型 */ | ||||
|     /** | ||||
|      * 浏览器类型 | ||||
|      */ | ||||
|     private String browser; | ||||
|  | ||||
|     /** 操作系统 */ | ||||
|     /** | ||||
|      * 操作系统 | ||||
|      */ | ||||
|     private String os; | ||||
|  | ||||
|     /** 登录时间 */ | ||||
|     /** | ||||
|      * 登录时间 | ||||
|      */ | ||||
|     private Long loginTime; | ||||
|  | ||||
|  | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 YunaiV
					YunaiV