|
@@ -7,7 +7,7 @@ import com.chelvc.cloud.user.client.AuthorizeClient;
|
|
|
import com.chelvc.cloud.user.client.model.Authorization;
|
|
|
import com.chelvc.cloud.user.client.param.AuthorizeParam;
|
|
|
import com.chelvc.framework.base.annotation.ResponseWrapping;
|
|
|
-import com.chelvc.framework.security.annotation.Authorize;
|
|
|
+import com.chelvc.framework.security.annotation.Security;
|
|
|
import com.chelvc.framework.sms.CaptchaSmsHandler;
|
|
|
import com.chelvc.framework.sms.SmsSession;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
@@ -24,7 +24,7 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
*/
|
|
|
@RestController
|
|
|
@ResponseWrapping
|
|
|
-@Authorize(enabled = false)
|
|
|
+@Security(authorize = false)
|
|
|
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
|
|
public class AuthorizeController {
|
|
|
private final AuthorizeClient authorizeClient;
|
|
@@ -79,7 +79,7 @@ public class AuthorizeController {
|
|
|
*
|
|
|
* @param param 认证参数
|
|
|
*/
|
|
|
- @Authorize
|
|
|
+ @Security
|
|
|
@PostMapping("/logoff")
|
|
|
public void logoff(@RequestBody @Valid AuthorizeParam param) {
|
|
|
this.authorizeClient.logout(param);
|