diff --git "a/gameditor/\345\211\215\347\253\257\346\216\245\345\217\243/\347\231\273\345\275\225\351\241\265.md" "b/gameditor/\345\211\215\347\253\257\346\216\245\345\217\243/\347\231\273\345\275\225\351\241\265.md" index 5105212..27e9774 100644 --- "a/gameditor/\345\211\215\347\253\257\346\216\245\345\217\243/\347\231\273\345\275\225\351\241\265.md" +++ "b/gameditor/\345\211\215\347\253\257\346\216\245\345\217\243/\347\231\273\345\275\225\351\241\265.md" @@ -197,3 +197,54 @@ curl 'http://tx-gz14.heyqiwu.cn/api/platform/user/userLoad/register/acquire' \ } ``` +### 用户注册 + +**METHOD**: POST + +**path**: api/platform/user/userLoad/register + +**RequestHeaders:** 同创作平台请求header + +#### 请求param字段说明 + +| key | type | required | description | +| ---- | ---- | -------- | ----------- | +| 无 | | | | + +#### 请求body字段说明 + +| key | type | required | description | +| -------- | ---- | -------- | ----------- | +| username | | yes | 用户名 | +| password | | yes | 密码 | +| nickname | | yes | 昵称 | +| email | | yes | 邮箱 | +| platform | | yes | 平台 | + +#### 请求示例 + +```js +curl 'http://tx-gz14.heyqiwu.cn/api/platform/user/userLoad/register' \ + -H 'Accept: application/json, text/plain, */*' \ + -H 'Accept-Language: zh-CN,zh;q=0.9' \ + -H 'Authorization: Basic ZXlKaGJHY2lPaUpJVXpJMU5pSjkuZXlKcFlYUWlPakUzTURJeU56WXhNemtzSW1WNGNDSTZNVGN3TWpJNE16TXpPU3dpWVhWMGFHOXlhWFI1SWpveExDSnBaQ0k2TWpJMGZRLi00aGJiUWtUNlNsMjBYUUxMUE5wZGN2aEhuUTFNbHFqSS1KSXdEb1ZsNm86czAwcGVyczNjcmV0' \ + -H 'Connection: keep-alive' \ + -H 'Content-Type: application/json;charset=UTF-8' \ + -H 'Origin: http://localhost:8080' \ + -H 'Referer: http://localhost:8080/' \ + -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36' \ + --data-raw '{"username":"用户名","password":"jxd15623889207","nickname":"昵称","email":"1036795585@qq.com","platform":"work"}' \ + --compressed \ + --insecure +``` + +#### 响应实例 + +```json +{ + "code": 1, + "msg": "成功", + "data": null +} +``` +