---
title: "注销退出"
method: GET
path: "/user/logout"
tags: ["前台-用户"]
---

# 注销退出

`GET /user/logout`

注销成功后前端引导页面跳转到首页。

## Response `200`

执行结果

- ResponseJsonRes
  - `code` integer — 错误码((0:成功, 1:失败, >1:错误码))
  - `data` object — 返回数据(业务接口定义具体数据结构)
  - `message` string — 提示信息
  - `redirect` string — 引导客户端跳转到指定路由

---

[API](https://skmtc.net/gogf/apis/goframe-api.md) · [All operations](https://skmtc.net/gogf/apis/goframe-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gogf/goframe-api/versions/d05fe905b682/schema)
