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.
75 lines
1.7 KiB
75 lines
1.7 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
|
|
@type = content-type: application/json;charset=utf-8
|
|
|
|
|
|
### login
|
|
# @name login
|
|
POST {{test}}/users/signin
|
|
{{type}}
|
|
|
|
{
|
|
"client": 1,
|
|
"data": {
|
|
"credential": "123456",
|
|
"identifier": "whj"
|
|
},
|
|
"scene": 0,
|
|
"type": 3
|
|
}
|
|
### get查询任务列表
|
|
GET {{localhost}}/v1.0/projects/1205016950191820800/tasks?roleId=1205016953639538688&page=-1&process=0
|
|
# 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}}
|
|
|
|
### 修改任务
|
|
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查询任务
|
|
|
|
POST {{localhost}}/projects/1267343073726304256/tasks
|
|
{{type}}
|
|
Authorization: Bearer {{login.response.body.$.data.token}}
|
|
|
|
{
|
|
"roleId":"1267343074305118209",
|
|
"startTime":1617638400000,
|
|
"endTime":1617724799999,
|
|
"imitation":-1
|
|
}
|
|
|
|
|
|
### 通过角色id查询任务
|
|
|
|
GET {{localhost}}/tasks/key?projectId=1364782799835500544&key=
|
|
{{type}}
|
|
Authorization: Bearer {{login.response.body.$.data.token}}
|
|
|
|
|
|
|