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.

97 lines
2.1 KiB

@tall = https://www.tall.wiki/gateway/tall/v1.0
@test = https://test.tall.wiki/gateway/tall/v1.0
@localhost = http://localhost:7030/v1.0
5 years ago
@localhost_tall_ht = http://localhost:7031/v1.0
@type = content-type: application/json;charset=utf-8
### login
# @name login
5 years ago
POST {{localhost}}/users/signin
{{type}}
{
"client": 1,
"data": {
"credential": "123456",
5 years ago
"identifier": "zy11"
},
"scene": 0,
"type": 3
}
5 years ago
### POST查询任务列表
POST {{localhost}}/projects/1386946484263587840/tasks
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
{
"endTime": 1576836000000,
"id": "1386946484263587840",
"imitation": 0,
"page": 1,
"priority": 0,
"process": 0,
"roleId": "1386946485492518912",
"startTime": 1570496400000
}
5 years ago
### get查询任务列表
5 years ago
GET {{localhost}}/projects/1205016950191820800/tasks?roleId=1205016953639538688&page=-1&startTime=1619539200000&endTime=1619625599999&process=0
5 years ago
# GET http://192.168.31.13/gateway/tall-ht/v1.0/projects/1205016950191820800/tasks?roleId=1205016953639538688&page=-1&process=0
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
5 years ago
5 years ago
### 修改任务
POST {{test}}/tasks/change
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
{
"id":"1205016960845352960",
"beginTime":"1609430300021",
"endTime":"1672329600000",
"cycle":"不重复"
}
### 添加任务
POST {{test}}/tasks
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
{
"projectId":"1205016950191820800",
"parentTaskId":1205016959608033280,
"taskName":"受试者合作评分",
"description":"开始测评及查看测评结果",
"executorId":1205016953639538688,
"beginTime":"1609430400000",
"endTime":"1672329600000"
}
### 通过角色id查询任务
5 years ago
POST {{localhost}}/projects/1267343073726304256/tasks
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
{
"roleId":"1267343074305118209",
"startTime":1617638400000,
"endTime":1617724799999,
"imitation":-1
}
5 years ago
### 通过角色id查询任务
GET {{localhost}}/tasks/key?projectId=1364782799835500544&key=
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}