|
|
@@ -65,7 +65,7 @@ router.put('/config', (req, res) => {
|
|
|
res.json(wrapper('success'));
|
|
|
});
|
|
|
|
|
|
-router.get('/history/list', (req, res) => {
|
|
|
+router.get('/record/list', (req, res) => {
|
|
|
res.json(wrapper(
|
|
|
Mock.mock(
|
|
|
{
|
|
|
@@ -81,7 +81,19 @@ router.get('/history/list', (req, res) => {
|
|
|
));
|
|
|
});
|
|
|
|
|
|
-router.get('/history/details', (req, res) => {
|
|
|
+router.get('/record', (req, res) => {
|
|
|
+ res.json(wrapper(
|
|
|
+ Mock.mock({
|
|
|
+ 'id|+5': 101,
|
|
|
+ pipelineId: 100,
|
|
|
+ 'result|1': ['成功', '失败', '执行中'],
|
|
|
+ startTime: Random.datetime(),
|
|
|
+ username: 'hkshu12',
|
|
|
+ }).data,
|
|
|
+ ));
|
|
|
+});
|
|
|
+
|
|
|
+router.get('/record/details', (req, res) => {
|
|
|
res.json(wrapper(`2021-03-16 00:01:58.621 INFO 20584 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8080 (http) with context path ''
|
|
|
2021-03-16 00:01:58.622 INFO 20584 --- [ main] d.s.w.p.DocumentationPluginsBootstrapper : Context refreshed
|
|
|
2021-03-16 00:01:58.634 INFO 20584 --- [ main] d.s.w.p.DocumentationPluginsBootstrapper : Found 1 custom documentation plugin(s)
|