let productList = []; const statuses = ['NORMAL', 'DEL']; for (let i = 1; i < 300; i++) { productList.push({ id: String(i), code: 'course-code-' + i, name: '小学语文二年级上册' + i, title: '小学语文二年级上册' + i, digest: '这段是课程描述,很长很长很长很长很长很长很长很长很长很长很长很长...', detail: '这段是课程详情,这门课程讲的是小学语文,有很多很多很多很多很多很多很多很多的故事...', keyword: null, coverUrl: 'http://efunimgs.oss-cn-beijing.aliyuncs.com/resources/J/02/01/612102.jpg', bgUrl: 'http://efunimgs.oss-cn-beijing.aliyuncs.com/resources/J/02/01/612102.jpg', type: 'COURSE', status: statuses[i % 2], subItemList: null, supportList: null, gmtCreated: 1512981450000, gmtModified: 1512981450000, }) } for (let i = 300; i < 600; i++) { productList.push({ id: String(i), code: 'support-code-' + i, name: '小学语文二年级上册练习册' + i, title: '小学语文二年级上册练习册' + i, digest: '这段是周边描述,很长很长很长很长很长很长很长很长很长很长很长很长...', detail: '这段是周边详情,这个周边是小学语文练习册,有很多很多很多很多很多很多很多很多的题目...', keyword: null, subItemList: null, supportList: null, type: 'SUPPORT', status: statuses[i % 2], gmtCreated: 1512981450000, gmtModified: 1512981450000, }) } for (let i = 600; i < 1000; i++) { productList.push({ id: String(i), code: 'package-code-' + i, name: '小学语文二年级课程包-' + i, title: '小学语文二年级课程包', digest: '小学二年级语文的全部课程,包括相关的联系册,文具,教具...', detail: '该课程包的详情描述,很长很长很长很长很长很长很长很长很长很长...', keyword: null, subItemList: null, supportList: null, type: 'PACKAGE', status: statuses[i % 2], gmtCreated: 15129876650000, gmtModified: 1512289450000, }) } module.exports = { productList };