代码拉取完成,页面将自动刷新
# 接口和Content-Type不能换行
@createdAt = {{$datetime iso8601}}
@token = Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MTMsInVzZXJuYW1lIjoidGVzdCIsInVzZXJUeXBlIjoxLCJlbWFpbCI6InljX21pY3JvX2Zyb250QDE2My5jb20iLCJmcmVlemVkIjowLCJhdmF0YXIiOiIiLCJkZXNjIjoiIiwiY3JlYXRlVGltZSI6IjIwMjQtMDktMjFUMDM6MDU6MDAuMDU1WiIsImlhdCI6MTcyNjg4NzkwNywiZXhwIjoxNzI3NDkyNzA3fQ.oyAYdK3jQgnfBgfuMGxeQqhfJHVo9exxZZ8NQf-l8qA
# 注册用户
POST http://localhost:3332/api/sys/registry
Content-Type: application/json
{
"username": "aaa2",
"password": "aaa2",
"confirmPassword": "aaa2",
"email": "2342342342342342@qq.com",
"code": "261025"
}
###
# 发送注册验证码
GET http://localhost:3332/api/sys/sendEmailForRegistry?email=2342342342342342@qq.com
Authorization: {{token}}
###
# 用户登录
POST http://localhost:3332/api/sys/login
Content-Type: application/json
{
"username": "test",
"password": "test"
}
###
# 发送找回密码验证码
GET http://localhost:3332/api/sys/sendEmailForGorgot?email=yc_micro_front@163.com
###
# 找回密码
POST http://localhost:3332/api/sys/forgot
Content-Type: application/json
{
"username": "test",
"password": "test2",
"confirmPassword": "test2",
"email": "yc_micro_front@163.com",
"code": 143495
}
###
// 查询用户
GET http://localhost:3332/api/user/list?page=1&pageSize=10
Authorization: {{token}}
###
// 更新用户
PATCH http://localhost:3332/api/user/edit
Content-Type: application/json
Authorization: {{token}}
{
"id": 4,
"username": "Minnie",
"email": "Minie@example.com"
}
###
// 修改密码
POST http://localhost:3332/api/sys/forgot
Content-Type: application/json
Authorization: {{token}}
{
"password": "jmin000",
"confirmPassword": "jmin000",
"email": "yc_micro_front@163.com",
"code": "211781"
}
###
// 删除用户
DELETE http://localhost:3332/api/user/4
Authorization: {{token}}
###
// 创建角色
POST http://localhost:3332/api/role/create
Authorization: {{token}}
Content-Type: application/json
{
"name": "管理员",
"desc": "我是管理员",
"permissions": [1,2,3]
}
###
// 删除角色
DELETE http://localhost:3332/api/role/2
Authorization: {{token}}
###
// 获取用户功能权限列表
GET http://localhost:3332/api/permission/list
Authorization: {{token}}
###
// 开单
POST http://localhost:3332/api/order/create
Content-Type: application/json
Authorization: {{token}}
{
"productList": [
{ "name": "电饭煲2342xxx", "price": 0.1, "id": 1}
],
"discount": 0.8
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。