comment.js 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. const comment = {
  2. status: "成功",
  3. code: 200,
  4. data: [
  5. {
  6. id: 'comment0001', //主键id
  7. date: '2018-07-05 08:30', //评论时间
  8. ownerId: 'talents100020', //文章的id
  9. fromId: 'errhefe232213', //评论者id
  10. fromName: '犀利的评论家', //评论者昵称
  11. fromAvatar: 'http://ww4.sinaimg.cn/bmiddle/006DLFVFgy1ft0j2pddjuj30v90uvagf.jpg', //评论者头像
  12. likeNum: 3, //点赞人数
  13. content: 'xxx', //评论内容
  14. reply: [ //回复,或子评论
  15. {
  16. id: '34523244545', //主键id
  17. commentId: 'comment0001', //父评论id,即父亲的id
  18. fromId: 'observer223432', //评论者id
  19. fromName: '夕阳红', //评论者昵称
  20. fromAvatar: 'https://wx4.sinaimg.cn/mw690/69e273f8gy1ft1541dmb7j215o0qv7wh.jpg', //评论者头像
  21. toId: 'errhefe232213', //被评论者id
  22. toName: '犀利的评论家', //被评论者昵称
  23. toAvatar: 'http://ww4.sinaimg.cn/bmiddle/006DLFVFgy1ft0j2pddjuj30v90uvagf.jpg', //被评论者头像
  24. content: 'xxx', //评论内容
  25. date: '2025-01-05 08:35' //评论时间
  26. },
  27. {
  28. id: '34523244545',
  29. commentId: 'comment0001',
  30. fromId: 'observer567422',
  31. fromName: '清晨一缕阳光',
  32. fromAvatar: 'http://imgsrc.baidu.com/imgad/pic/item/c2fdfc039245d688fcba1b80aec27d1ed21b245d.jpg',
  33. toId: 'observer223432',
  34. toName: '夕阳红',
  35. toAvatar: 'https://wx4.sinaimg.cn/mw690/69e273f8gy1ft1541dmb7j215o0qv7wh.jpg',
  36. content: 'xxx!',
  37. date: '2025-071-05 08:50'
  38. }
  39. ]
  40. }
  41. ]
  42. };
  43. export {comment}