1 Star 0 Fork 0

Heylzh/store-web-backend

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
.http 2.48 KB
一键复制 编辑 原始数据 按行查看 历史
不乐兮 提交于 2024-09-24 00:43 . Update .http & README.md
# 接口和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
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/healerlzh/store-web-backend.git
git@gitee.com:healerlzh/store-web-backend.git
healerlzh
store-web-backend
store-web-backend
master

搜索帮助