---
title: "执行注册提交处理"
method: POST
path: "/register/do"
tags: ["前台-注册"]
---

# 执行注册提交处理

`POST /register/do`

注意提交的密码是明文。
注册成功后自动登录。前端页面引导跳转

## Request body

- DefineUserApiRegisterReq
  - `captcha` string — 验证码
  - `nickname` string — 昵称
  - `passport` string — 账号
  - `password` string — 密码

## Response `200`

请求结果

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

---

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