【7.6.0】【sys】新增一个退出接口

pull/57/head
fengshuonan 2023-06-25 16:44:49 +08:00
parent a82ad02cf2
commit 5f52dd3914
1 changed files with 13 additions and 0 deletions

View File

@ -10,6 +10,7 @@ import cn.stylefeng.roses.kernel.scanner.api.annotation.PostResource;
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;
@ -40,4 +41,16 @@ public class LoginController {
return new SuccessResponseData<>(loginResponse);
}
/**
*
*
* @author fengshuonan
* @since 2023/6/25 16:43
*/
@ApiResource(name = "登出", path = "/logoutAction", method = {RequestMethod.GET, RequestMethod.POST})
public ResponseData<?> logoutAction() {
authServiceApi.logout();
return new SuccessResponseData<>();
}
}