mirror of https://gitee.com/stylefeng/roses
【7.6.0】【sys】新增一个退出接口
parent
a82ad02cf2
commit
5f52dd3914
|
@ -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<>();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue