|
|
@@ -33,6 +33,7 @@ import cn.tr.plugin.security.utils.SaTokenUtils;
|
|
|
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
+import jdk.nashorn.internal.objects.annotations.Function;
|
|
|
import lombok.AllArgsConstructor;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
@@ -53,7 +54,6 @@ public class OAuth2ServerController {
|
|
|
@ApiOperationSupport(author = "lf")
|
|
|
@GetMapping("/token")
|
|
|
@OperateLog(loginType = LoginType.login,logArgs = false,logResultData = false)
|
|
|
- @SaIgnore
|
|
|
public CommonResult<Object> request(@Validated OAuth2PswReqDTO source) {
|
|
|
SaRequest req = SaHolder.getRequest();
|
|
|
SaResponse res = SaHolder.getResponse();
|
|
|
@@ -83,6 +83,7 @@ public class OAuth2ServerController {
|
|
|
}
|
|
|
throw new ServiceException(TRExcCode.USER_ERROR_A0200,"登录失败");
|
|
|
|
|
|
+
|
|
|
}
|
|
|
throw new ServiceException(TRExcCode.USER_ERROR_A0200,"暂未开放的授权模式");
|
|
|
}
|