作者: yeguozhong yedaxia.github.com
请求URL
/api/v1/admin/login
post
GET
请求参数 application/x-www-form-urlencoded
参数名 | 类型 | 必须 | 描述 |
---|---|---|---|
name | string | 是 | 登录名 |
password | string | 是 | 密码 |
返回结果
{ "userId":"string //用户id", "userName":"string //用户名", "friend":"SimpleUser{}", "password":"string //密码" }
作者: yeguozhong yedaxia.github.com
请求URL
/api/v1/admin/emailLogin
POST
请求参数 application/x-www-form-urlencoded
参数名 | 类型 | 必须 | 描述 |
---|---|---|---|
string | 是 | ||
password | string | 否 |
返回结果
{ "userId":"string //用户id", "userName":"string //用户名", "friend":"SimpleUser{}", "password":"string //密码" }
作者: yeguozhong yedaxia.github.com
请求URL
/api/v1/admin/add
POST
请求体 application/json
{ "name":"string //名字", "password":"string //密码" }
返回结果
{ "userId":"string //用户id", "userName":"string //用户名", "friend":"SimpleUser{}", "password":"string //密码" }
作者: yeguozhong yedaxia.github.com
请求URL
/api/v1/admin/addMany
POST
请求体 application/json
[{ "name":"string //名字", "password":"string //密码" }]
返回结果
[{ "userId":"string //用户id", "userName":"string //用户名", "friend":"SimpleUser{}", "password":"string //密码" }]