管理员登录

作者: 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

参数名 类型 必须 描述
email 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 //密码"
}]

测试map

作者: yeguozhong yedaxia.github.com

请求URL

/test-map GET POST

返回结果

Map{}