You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

122 lines
2.0 KiB

@test = https://test.tall.wiki/delivery/v1.0
@localhost = http://localhost:7340/v1.0
@type = content-type: application/json;charset=utf-8
### 登录
# @name login
POST {{test}}/users/signin
{{type}}
{
"client": 0,
"type": 3,
"data": {
"identifier": "zy",
"credential": "123456"
}
}
### 修改订单状态
POST {{test}}/stu/status
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
{
"param":{
"status":0,
"orderIdList":[
1512703641465921536,
1512703868751060992
]
}
}
### 分页查找所有订单信息
POST {{test}}/stu/back/query
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
{
"param":{
"name":"",
"stuNum":"",
"collegeId":"",
"dormitoryId":"",
"address":"",
"symptom":"",
"drugName":"",
"broken":"",
"status":"",
"startTime":"",
"endTime":""
}
}
### 查看当前用户提交的订单
POST {{test}}/stu/query
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
{
"param":{
"status":0
}
}
### 提交订单
POST {{test}}/stu/submit
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
{
"param":{
"name":"测试2",
"stuNum":"1234567890000",
"phone":"15335153515",
"idCard":"684616465350655",
"collegeId":"2",
"dormitoryId":"4",
"address":"不知道",
"symptom":"贼难受",
"broken":"",
"remark":"",
"planTime":"1649491388787",
"orderItemList":[
{
"name":"小药丸",
"specification":"10kg",
"num":2
},
{
"name":"大药丸",
"specification":"100kg",
"num":4
}
]
}
}
### 查找学员或宿舍
POST {{test}}/stu/area
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
{
"param":{
"name":"1",
"type":"0"
}
}
### 更新用户信息
POST {{test}}/users/update
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
{
"param":{
"nickname":"小逗逗"
}
}