|
|
@@ -58,6 +58,15 @@ router.post('/subNode/:parentId', (req, res) => {
|
|
|
router.get('/:projectId', (req, res) => {
|
|
|
res.json(wrapper(
|
|
|
Mock.mock([{
|
|
|
+ 'commits|0-10': [
|
|
|
+ {
|
|
|
+ 'gitlabUsername|1': ['hks', 'wph', 'zxr', 'cyt'],
|
|
|
+ 'id|+1': 101,
|
|
|
+ message: 'git commit message',
|
|
|
+ timestamp: Random.datetime(),
|
|
|
+ title: 'titleeee',
|
|
|
+ },
|
|
|
+ ],
|
|
|
deep: 1,
|
|
|
description: Random.csentence(10, 40),
|
|
|
endTime: Random.datetime(),
|
|
|
@@ -75,6 +84,15 @@ router.get('/:projectId', (req, res) => {
|
|
|
'type|1': ['需求', '任务'],
|
|
|
},
|
|
|
{
|
|
|
+ 'commits|0-10': [
|
|
|
+ {
|
|
|
+ 'gitlabUsername|1': ['hks', 'wph', 'zxr', 'cyt'],
|
|
|
+ 'id|+1': 101,
|
|
|
+ message: 'git commit message',
|
|
|
+ timestamp: Random.datetime(),
|
|
|
+ title: 'titleeee',
|
|
|
+ },
|
|
|
+ ],
|
|
|
deep: 2,
|
|
|
description: Random.csentence(10, 40),
|
|
|
endTime: Random.datetime(),
|
|
|
@@ -92,6 +110,15 @@ router.get('/:projectId', (req, res) => {
|
|
|
'type|1': ['需求', '任务'],
|
|
|
},
|
|
|
{
|
|
|
+ 'commits|0-10': [
|
|
|
+ {
|
|
|
+ 'gitlabUsername|1': ['hks', 'wph', 'zxr', 'cyt'],
|
|
|
+ 'id|+1': 101,
|
|
|
+ message: 'git commit message',
|
|
|
+ timestamp: Random.datetime(),
|
|
|
+ title: 'titleeee',
|
|
|
+ },
|
|
|
+ ],
|
|
|
deep: 2,
|
|
|
description: Random.csentence(10, 40),
|
|
|
endTime: Random.datetime(),
|
|
|
@@ -109,6 +136,15 @@ router.get('/:projectId', (req, res) => {
|
|
|
'type|1': ['需求', '任务'],
|
|
|
},
|
|
|
{
|
|
|
+ 'commits|0-10': [
|
|
|
+ {
|
|
|
+ 'gitlabUsername|1': ['hks', 'wph', 'zxr', 'cyt'],
|
|
|
+ 'id|+1': 101,
|
|
|
+ message: 'git commit message',
|
|
|
+ timestamp: Random.datetime(),
|
|
|
+ title: 'titleeee',
|
|
|
+ },
|
|
|
+ ],
|
|
|
deep: 3,
|
|
|
description: Random.csentence(10, 40),
|
|
|
endTime: Random.datetime(),
|
|
|
@@ -126,6 +162,15 @@ router.get('/:projectId', (req, res) => {
|
|
|
'type|1': ['需求', '任务'],
|
|
|
},
|
|
|
{
|
|
|
+ 'commits|0-10': [
|
|
|
+ {
|
|
|
+ 'gitlabUsername|1': ['hks', 'wph', 'zxr', 'cyt'],
|
|
|
+ 'id|+1': 101,
|
|
|
+ message: 'git commit message',
|
|
|
+ timestamp: Random.datetime(),
|
|
|
+ title: 'titleeee',
|
|
|
+ },
|
|
|
+ ],
|
|
|
deep: 3,
|
|
|
description: Random.csentence(10, 40),
|
|
|
endTime: Random.datetime(),
|
|
|
@@ -143,6 +188,15 @@ router.get('/:projectId', (req, res) => {
|
|
|
'type|1': ['需求', '任务'],
|
|
|
},
|
|
|
{
|
|
|
+ 'commits|0-10': [
|
|
|
+ {
|
|
|
+ 'gitlabUsername|1': ['hks', 'wph', 'zxr', 'cyt'],
|
|
|
+ 'id|+1': 101,
|
|
|
+ message: 'git commit message',
|
|
|
+ timestamp: Random.datetime(),
|
|
|
+ title: 'titleeee',
|
|
|
+ },
|
|
|
+ ],
|
|
|
deep: 4,
|
|
|
description: Random.csentence(10, 40),
|
|
|
endTime: Random.datetime(),
|
|
|
@@ -160,6 +214,16 @@ router.get('/:projectId', (req, res) => {
|
|
|
'type|1': ['需求', '任务'],
|
|
|
},
|
|
|
{
|
|
|
+ 'commits|0-10': [
|
|
|
+ {
|
|
|
+ 'gitlabUsername|1': ['hks', 'wph', 'zxr', 'cyt'],
|
|
|
+ 'id|+1': 101,
|
|
|
+ message: 'git commit message',
|
|
|
+
|
|
|
+ timestamp: Random.datetime(),
|
|
|
+ title: 'titleeee',
|
|
|
+ },
|
|
|
+ ],
|
|
|
deep: 4,
|
|
|
description: Random.csentence(10, 40),
|
|
|
endTime: Random.datetime(),
|
|
|
@@ -177,6 +241,15 @@ router.get('/:projectId', (req, res) => {
|
|
|
'type|1': ['需求', '任务'],
|
|
|
},
|
|
|
{
|
|
|
+ 'commits|0-10': [
|
|
|
+ {
|
|
|
+ 'gitlabUsername|1': ['hks', 'wph', 'zxr', 'cyt'],
|
|
|
+ 'id|+1': 101,
|
|
|
+ message: 'git commit message',
|
|
|
+ timestamp: Random.datetime(),
|
|
|
+ title: 'titleeee',
|
|
|
+ },
|
|
|
+ ],
|
|
|
deep: 4,
|
|
|
description: Random.csentence(10, 40),
|
|
|
endTime: Random.datetime(),
|