文档
测试

用户注册接口

POST
http://127.0.0.1:8000/register/

接口描述

用户注册接口

请求头

参数名
类型
描述
必填
Content-Type
String
参数值为: application/json
必填

请求参数

参数名
类型
描述
必填
account
String
注册账户
必填
password
String
密码
必填
birthday
String
出生年月
必填

响应参数

参数名
类型
描述
必填
status
Int
请求状态码(200:请求成功)
必填
msg
String
请求信息
必填
data
Dict
用户信息
必填
id
Int
用户id
必填
birthday
String
出生年月
必填
account
String
用户账号
必填
password
String
登录密码
必填
gender
Int
性别(1:男;2:女)
必填
usertype
Int
用户类型(1:普通用户 ; 2:VIP用户)
必填

说明 / 示例

``` { "status": 200, "msg": "用户注册成功", "data": { "id": 11, "birthday": "2020-05-04", "account": "18518753283", "password": "Abc123456", "gender": 1, "usertype": 1 } } ```