【7.0.2】更新退出方法

pull/5/head
fengshuonan 2021-03-23 23:13:05 +08:00
parent bb8dfbb659
commit 192624ce6e
1 changed files with 2 additions and 1 deletions

View File

@ -39,6 +39,7 @@ import cn.stylefeng.roses.kernel.wrapper.api.annotation.Wrapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
@ -89,7 +90,7 @@ public class LoginController {
* @author fengshuonan
* @date 2021/3/17 17:24
*/
@GetResource(name = "登出", path = "/logout", requiredPermission = false)
@ApiResource(name = "登出", path = "/logout", requiredPermission = false, method = {RequestMethod.GET, RequestMethod.POST})
public ResponseData logoutPage() {
authServiceApi.logout();
return new SuccessResponseData();