Unnecessary path variable definition [WEB_ANNOTATION_NAMES]

This commit is contained in:
shimingxy
2025-12-22 12:15:39 +08:00
parent 83699f1b86
commit 424a86d3e7
53 changed files with 104 additions and 104 deletions

View File

@@ -40,7 +40,7 @@ public class AuthorizeCredentialEndpoint extends AuthorizeBaseEndpoint{
@GetMapping("/get/{appId}")
public Message<Accounts> get(
@PathVariable("appId") String appId,
@PathVariable String appId,
@CurrentUser UserInfo currentUser){
Apps app = getApp(appId);
Accounts account = getAccounts(app,currentUser);

View File

@@ -53,7 +53,7 @@ public class AuthorizeEndpoint extends AuthorizeBaseEndpoint{
//all single sign on url
@Operation(summary = "认证总地址接口", description = "参数应用ID分发到不同应用的认证地址",method="GET")
@GetMapping("/authz/{id}")
public ModelAndView authorize(HttpServletRequest request,@PathVariable("id") String id){
public ModelAndView authorize(HttpServletRequest request,@PathVariable String id){
Apps app = getApp(id);
WebContext.setAttribute(WebConstants.SINGLE_SIGN_ON_APP_ID, app.getId());
ModelAndView modelAndView = WebContext.redirect(app.getLoginUrl());

View File

@@ -50,7 +50,7 @@ public class AuthorizeProtectedEndpoint{
@GetMapping("/authz/protected")
public ModelAndView authorizeProtected(
@RequestParam("password") String password,
@RequestParam String password,
@RequestParam("redirect_uri") String redirectUri,
@CurrentUser UserInfo currentUser){
if( currentUser.getAppLoginPassword().equals(PasswordReciprocal.getInstance().encode(password))){

View File

@@ -38,7 +38,7 @@ public class OnlineSessionEndpoint {
@Operation(summary = "在线ticket验证接口", description = "")
@GetMapping(value="/validate")
public String ticketValidate(@RequestParam(value ="ticket",required = true) String ticket) {
public String ticketValidate(@RequestParam(required = true) String ticket) {
Session session = sessionManager.get(ticket);
return session == null ? "" : session.getId();
}