demo_data.go 640 B

12345678910111213141516171819202122232425262728293031
  1. package api
  2. var DemoVideos = []Video{
  3. {
  4. Id: 1,
  5. Author: DemoUser,
  6. //PlayUrl: "http://pathcystore.oss-cn-shanghai.aliyuncs.com/video/demo.mp4",
  7. PlayUrl: "https://www.w3schools.com/html/movie.mp4",
  8. CoverUrl: "https://cdn.pixabay.com/photo/2016/03/27/18/10/bear-1283347_1280.jpg",
  9. FavoriteCount: 0,
  10. CommentCount: 0,
  11. IsFavorite: false,
  12. },
  13. }
  14. var DemoComments = []Comment{
  15. {
  16. Id: 1,
  17. User: DemoUser,
  18. Content: "Test Comment",
  19. CreateDate: "05-01",
  20. },
  21. }
  22. var DemoUser = User{
  23. Id: 1,
  24. Name: "TestUser",
  25. FollowCount: 0,
  26. FollowerCount: 0,
  27. IsFollow: false,
  28. }