定时任务新增
<p><strong>简要描述:</strong> </p>
<ul>
<li>新建定时任务</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>http://xx.com/cloudtaskservice/schedule/save</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST </li>
</ul>
<p><strong>参数示例:</strong> </p>
<pre><code>{
"app": "monitor", --应用
"taskCode": "monitor-test", --任务编号
"cron": "0 0 12 * * ?", --corn表达式
"taskMode": "HTTP_NORMAL",--普通http方式
"content": "http://172.16.158.34:10001?a=1&b=2", --请求url
"concurrency": 2, --并行方式,1串行,2并行
"timeout": 60000,--超时时间
"retryStrategy": "NR",--重试策略:NR不重试
"remark": "测试测试",--备注
"state": 2,--任务状态:2暂停状态,1运行状态
"callBack": 0--是否回调:0不回调
}</code></pre>
<p><strong>返回示例</strong></p>
<pre><code>{"msg":"success","code":0,"id":125}</code></pre>
<p><strong>返回参数说明</strong> </p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">msg</td>
<td style="text-align: left;">string</td>
<td>错误消息</td>
</tr>
<tr>
<td style="text-align: left;">code</td>
<td style="text-align: left;">number</td>
<td>是否成功0成功,1失败</td>
</tr>
<tr>
<td style="text-align: left;">id</td>
<td style="text-align: left;">number</td>
<td>任务id</td>
</tr>
</tbody>
</table>
<p><strong>备注</strong>
线上前端地址:<a href="https://ytaskh5.ldxinyong.com/#/n/schedule">https://ytaskh5.ldxinyong.com/#/n/schedule</a>
线上后端地址:<a href="https://ytask.ldxinyong.com/">https://ytask.ldxinyong.com/</a>
测试前端地址:<a href="http://172.16.158.55/cloud-task-service/#/n/schedule">http://172.16.158.55/cloud-task-service/#/n/schedule</a>
测试后端地址:<a href="http://172.16.158.55:11001">http://172.16.158.55:11001</a></p>