|
|
@ -1,5 +1,11 @@ |
|
|
import type { Request, Response } from 'express'; |
|
|
import type { Request, Response } from 'express'; |
|
|
import { fakeList, defaultUser, titles, avatars, desc } from '../../../../mock/utils'; |
|
|
import { |
|
|
|
|
|
avatars, |
|
|
|
|
|
defaultUser, |
|
|
|
|
|
desc, |
|
|
|
|
|
fakeList, |
|
|
|
|
|
titles, |
|
|
|
|
|
} from '../../../../mock/utils'; |
|
|
|
|
|
|
|
|
function getProjectNotice() { |
|
|
function getProjectNotice() { |
|
|
return titles.slice(0, 6).map((title, i) => ({ |
|
|
return titles.slice(0, 6).map((title, i) => ({ |
|
|
@ -8,7 +14,14 @@ function getProjectNotice() { |
|
|
logo: avatars[i], |
|
|
logo: avatars[i], |
|
|
description: desc[i % desc.length], |
|
|
description: desc[i % desc.length], |
|
|
updatedAt: i % 2 === 0 ? new Date() : new Date('2017-07-24'), |
|
|
updatedAt: i % 2 === 0 ? new Date() : new Date('2017-07-24'), |
|
|
member: ['科学搬砖组', '全组都是吴彦祖', '中二少女团', '程序员日常', '高逼格设计天团', '骗你来学计算机'][i], |
|
|
member: [ |
|
|
|
|
|
'科学搬砖组', |
|
|
|
|
|
'全组都是吴彦祖', |
|
|
|
|
|
'中二少女团', |
|
|
|
|
|
'程序员日常', |
|
|
|
|
|
'高逼格设计天团', |
|
|
|
|
|
'骗你来学计算机', |
|
|
|
|
|
][i], |
|
|
href: '', |
|
|
href: '', |
|
|
memberLink: '', |
|
|
memberLink: '', |
|
|
})); |
|
|
})); |
|
|
@ -39,4 +52,4 @@ function getCurrentUser(_req: Request, res: Response) { |
|
|
export default { |
|
|
export default { |
|
|
'GET /api/fake_list_Detail': getFakeList, |
|
|
'GET /api/fake_list_Detail': getFakeList, |
|
|
'GET /api/currentUserDetail': getCurrentUser, |
|
|
'GET /api/currentUserDetail': getCurrentUser, |
|
|
}; |
|
|
}; |
|
|
|