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(); String requestUri = request.getRequestURI();
// 根据请求的 URI 得到认证策略 // 根据请求的 URI 得到认证策略
String authStrategyName = requestUri.substring(ApiRouterConsts.API_URL_PREFIX.length() + 1); String subUri = requestUri.substring(ApiRouterConsts.API_URL_PREFIX.length() + 1);
authStrategyName = authStrategyName.substring(0,authStrategyName.indexOf("/")); String systemName = subUri.substring(0,subUri.indexOf("/"));
authStrategyName = String.format("%sAuthStrategy",authStrategyName); String authStrategyName = String.format("%sAuthStrategy",systemName);
// 开始认证 // 开始认证
try { try {

View File

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