3 changed files with 147 additions and 1 deletions
File diff suppressed because one or more lines are too long
@ -0,0 +1,121 @@ |
|||
@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":"小逗逗" |
|||
} |
|||
} |
|||
Loading…
Reference in new issue