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