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.

191 lines
3.1 KiB

@test = https://test.tall.wiki/delivery/v1.0
3 years ago
@www = https://www.tall.wiki/delivery/v1.0
@localhost = http://localhost:7340/v1.0
@type = content-type: application/json;charset=utf-8
3 years ago
### debug
GET {{localhost}}/debug
### 登录
# @name login
POST {{test}}/users/signin
{{type}}
{
"client": 0,
"type": 3,
"data": {
3 years ago
"identifier": "zy",
"credential": "123456"
}
}
3 years ago
### 撤销订单
POST {{www}}/stu/revocation
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
{
"param":{
"id":1513042611798286336
}
}
### 查看用户提交的订单列表,分页查找
POST {{www}}/stu/pageOrder
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
{
"param":{
}
}
### 修改订单状态
POST {{www}}/stu/status
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
{
"param":{
"status":1,
"orderIdList":[
1513042611156557824
]
}
}
### 根据id查看订单信息
POST {{localhost}}/stu/orderById
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
{
"param":{
"id":1513342534326427648
}
}
### 查看当前用户提交的最后一次的订单
POST {{www}}/stu/queryNew
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
{
"param":{
}
}
3 years ago
### 导出查询到的订单信息
3 years ago
POST {{www}}/stu/export
3 years ago
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
{
"param":{
"name":"",
"stuNum":"",
"collegeId":"",
"dormitoryId":[],
"address":"",
"symptom":"",
3 years ago
"drugName":"",
3 years ago
"broken":"",
"status":"",
"startTime":"",
"endTime":""
}
}
### 分页查找所有订单信息
3 years ago
POST {{localhost}}/stu/back/query
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
{
"param":{
"name":"",
"stuNum":"",
3 years ago
"phone":"",
"idCard":"320381199410090011",
"collegeId":"",
3 years ago
"dormitoryId":[
],
"address":"",
"symptom":"",
"drugName":"",
"broken":"",
"startTime":"",
"endTime":""
}
}
### 查看当前用户提交的订单
3 years ago
POST {{www}}/stu/query
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
{
"param":{
"status":0
}
}
### 提交订单
3 years ago
POST {{localhost}}/stu/submit
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
{
"param":{
3 years ago
"name":"zy测试-4",
"stuNum":"1234567890001",
"phone":"15335153615",
"idCard":"320381199410090011",
3 years ago
"collegeId":"1512738866191409152",
3 years ago
"collegeName":"学院名",
3 years ago
"dormitoryId":"1512738868900929536",
3 years ago
"dormitoryName":"宿舍名",
3 years ago
"address":"351",
3 years ago
"symptom":"不舒服6",
"broken":"",
"remark":"",
"planTime":"1649491388787",
"orderItemList":[
{
"name":"小药丸",
"specification":"10kg",
"num":2
}
]
}
}
### 查找学员或宿舍
3 years ago
POST {{www}}/stu/area
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
{
"param":{
3 years ago
"name":"令",
"type":"1"
}
}
### 更新用户信息
3 years ago
POST {{www}}/users/update
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
{
"param":{
"nickname":"小逗逗"
}
}