perf: 规范变量名

This commit is contained in:
xiongxiaoyang 2022-05-21 19:38:17 +08:00
parent 28a2717231
commit c431683540
2 changed files with 3 additions and 6 deletions

View File

@ -43,9 +43,9 @@ public class AuthInterceptor implements HandlerInterceptor {
String requestUri = request.getRequestURI();
// 根据请求的 URI 得到认证策略
String authStrategyName = requestUri.substring(ApiRouterConsts.API_URL_PREFIX.length() + 1);
authStrategyName = authStrategyName.substring(0,authStrategyName.indexOf("/"));
authStrategyName = String.format("%sAuthStrategy",authStrategyName);
String subUri = requestUri.substring(ApiRouterConsts.API_URL_PREFIX.length() + 1);
String systemName = subUri.substring(0,subUri.indexOf("/"));
String authStrategyName = String.format("%sAuthStrategy",systemName);
// 开始认证
try {

View File

@ -18,7 +18,6 @@ import java.util.List;
@Builder
public class BookCommentRespDto {
private Long commentTotal;
private List<CommentInfo> comments;
@ -41,6 +40,4 @@ public class BookCommentRespDto {
}
}