Browse Source

20210406添加任务

master
zy_Java 5 years ago
parent
commit
d0527d0b0a
  1. 28
      tall/TaskController.http
  2. 4
      tall/task.http
  3. 35
      tall/task/task.http

28
tall/TaskController.http

@ -15,7 +15,7 @@
### login
# @name login
POST {{loaclhost}}{{tallLocal}}/users/signin
POST {{test}}{{tall}}/users/signin
{{type}}
{
@ -32,25 +32,27 @@ POST {{loaclhost}}{{tallLocal}}/users/signin
//任务相关API
### 添加清单(任务)
POST {{loaclhost}}{{tallLocal}}/tasks/
POST {{test}}{{tall}}/tasks/
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
{
"projectId":"1376806339233320960",
"parentTaskId":"1376806344874659840",
"taskName":"测试",
"projectId":"1267343073726304256",
"parentTaskId":"1267343074888126464",
"taskName":"新建任务(输入/输出文档)更改",
"description":"",
"executorId":"1376806343784140800",
"beginTime":"",
"endTime":"",
"cycle":"",
"taskDeliver":[],
"inputDoc":[],
"executorId":"1267343074305118209",
"beginTime":"1617675959314",
"endTime":"1618021559314",
"cycle":"不重复",
"taskDeliver":["输出文档啦啦啦"],
"inputDoc":["输入文档啦啦啦"],
"pluginList":[],
"priority":"",
"priority":1,
"milestone":"普通任务",
"taskRemind":{
"remindTiming":"7",
"remindTiming":"0",
"duration":"0",
"unit":"0"
}
}

4
tall/task.http

@ -1,4 +0,0 @@
@tall = https://www.tall.wiki/gateway/tall/v1.0
@test = https://test.tall.wiki/gateway/tall/v1.0
@localhost = http://localhost:7030
@type = content-type: application/json;charset=utf-8

35
tall/task/task.http

@ -0,0 +1,35 @@
@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 {{localhost}}/users/signin
{{type}}
{
"client": 1,
"data": {
"credential": "123456",
"identifier": "zy11"
},
"scene": 0,
"type": 3
}
### 通过角色id查询任务
POST {{test}}/projects/1267343073726304256/tasks
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
{
"roleId":"1267343074305118209",
"startTime":1617638400000,
"endTime":1617724799999,
"imitation":-1
}
Loading…
Cancel
Save