refactor(video): 清理 Security/User stub,替换为框架 SecurityFrameworkUtils
- 删除 SecurityUtils/LoginUser/JwtUtils 3 个空壳 stub - 删除 UserMapper/RoleMapper/UserApiKeyMapper 3 个废弃 Mapper 及 DTO - 删除 IUserService/IRoleService/IUserApiKeyService 及实现类 - MediaController 改用 SecurityFrameworkUtils.getLoginUserId() - 21 个 Controller 的 JwtUtils.HEADER 替换为 "Authorization" 字面量 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,22 +0,0 @@
|
|||||||
package com.viewsh.module.video.conf.security;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* JWT utility stub — WVP authentication removed, replaced by viewsh Security framework.
|
|
||||||
* This class exists only to satisfy unused imports and annotation references in migrated controllers.
|
|
||||||
* TODO: Phase 6 - remove all references to this class from controllers
|
|
||||||
*
|
|
||||||
* @deprecated Use viewsh SecurityFrameworkUtils instead
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
public class JwtUtils {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* HTTP header name for JWT token — used in Swagger @SecurityRequirement annotations.
|
|
||||||
* TODO: Phase 6 - replace with viewsh security header name
|
|
||||||
*/
|
|
||||||
public static final String HEADER = "Authorization";
|
|
||||||
|
|
||||||
private JwtUtils() {
|
|
||||||
// utility stub, not instantiable
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,26 +0,0 @@
|
|||||||
package com.viewsh.module.video.conf.security;
|
|
||||||
|
|
||||||
import com.viewsh.module.video.conf.security.dto.LoginUser;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* WVP SecurityUtils stub — replaced by viewsh Security framework.
|
|
||||||
* TODO: Phase 6 - replace usages with viewsh SecurityFrameworkUtils
|
|
||||||
*
|
|
||||||
* @deprecated Use viewsh SecurityFrameworkUtils instead
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
public class SecurityUtils {
|
|
||||||
|
|
||||||
private SecurityUtils() {
|
|
||||||
// utility stub
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get current login user info.
|
|
||||||
* TODO: Phase 6 - implement using viewsh SecurityFrameworkUtils.getLoginUser()
|
|
||||||
*/
|
|
||||||
public static LoginUser getUserInfo() {
|
|
||||||
// Stub: always returns null (anonymous user) until Phase 6 auth integration
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
package com.viewsh.module.video.conf.security.dto;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* WVP LoginUser stub — replaced by viewsh Security framework.
|
|
||||||
* TODO: Phase 6 - replace usages with viewsh LoginUser
|
|
||||||
*
|
|
||||||
* @deprecated Use viewsh SecurityFrameworkUtils instead
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
public class LoginUser {
|
|
||||||
|
|
||||||
private Long id;
|
|
||||||
private String username;
|
|
||||||
|
|
||||||
public Long getId() {
|
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setId(Long id) {
|
|
||||||
this.id = id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getUsername() {
|
|
||||||
return username;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setUsername(String username) {
|
|
||||||
this.username = username;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user