ware.js 987 B

123456789101112131415161718192021222324252627282930313233343536
  1. const wareList = [];
  2. for (let i = 1; i < 401; i++) {
  3. wareList.push({
  4. id: String(i),
  5. code: 'J-001-' + i,
  6. name: `第${i}课件`,
  7. digest: null,
  8. cpId: '805',
  9. status: 'NORMAL',
  10. gmtCreated: 1512981450000,
  11. gmtModified: 1512981450000,
  12. resourceList: [{
  13. id: 'abckiejijnafkdjkdafsk0' + i,
  14. code: 'J-01-03' + i,
  15. name: '测试图片',
  16. size: 100,
  17. status: 'DEL',
  18. type: '3',
  19. gmtCreated: (new Date()).getTime(),
  20. gmtModified: (new Date()).getTime(),
  21. url: 'http://efunimgs.oss-cn-beijing.aliyuncs.com/resources/J/02/01/611901.jpg',
  22. },{
  23. id: 'dsakfjweioqdasfjkadioe' + i,
  24. code: 'V-01-02' + i,
  25. name: '测试视频',
  26. size: 1024,
  27. status: 'NORMAL',
  28. type: '0',
  29. gmtCreated: (new Date()).getTime(),
  30. gmtModified: (new Date()).getTime(),
  31. url: 'http://efunvideo.ai160.com/vs2m/015/01503009/01503009031/01503009031.m3u8',
  32. }],
  33. });
  34. }
  35. module.exports = { wareList };