管理员服务
| 8 | * 管理员服务 |
| 9 | */ |
| 10 | public interface AdminService { |
| 11 | |
| 12 | /** |
| 13 | * 登录界面信息 |
| 14 | * @param username 员工账号 |
| 15 | * @return |
| 16 | */ |
| 17 | public Map<String, Object> getLoginViewModel(String username); |
| 18 | |
| 19 | |
| 20 | /** |
| 21 | * 登录 |
| 22 | * @param username 员工账号 |
| 23 | * @param password 密码 |
| 24 | * @param captchaKey 验证码key |
| 25 | * @param captchaValue 验证码值 |
| 26 | * @param ip IP地址 |
| 27 | * @return |
| 28 | */ |
| 29 | public AdminAuthorization login(String username, String password, String captchaKey, String captchaValue, String ip); |
| 30 | |
| 31 | |
| 32 | /** |
| 33 | * 管理员刷新访问令牌 |
| 34 | * @param refreshToken 刷新令牌 |
| 35 | * @return |
| 36 | */ |
| 37 | public AdminAuthorization refreshAccessToken(String refreshToken); |
| 38 | /** |
| 39 | * 撤销令牌 |
| 40 | * @param accessToken 访问令牌 |
| 41 | */ |
| 42 | public void revokeToken(String accessToken); |
| 43 | |
| 44 | /** |
| 45 | * 查询管理员信息 |
| 46 | * @param fileServerAddress 文件服务器地址 |
| 47 | * @return |
| 48 | */ |
| 49 | public Map<String,Object> queryAdminInfo(String fileServerAddress); |
| 50 | |
| 51 | /** |
| 52 | * 查询管理员概览数据 |
| 53 | * @return |
| 54 | */ |
| 55 | public Map<String,Object> adminOverview(); |
| 56 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…