小说小程序前端代码仓库(小程序)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

89 lines
1.8 KiB

  1. // 首页相关接口
  2. const api = {
  3. // 批量订阅章节
  4. batchSubscribeBookCatalog: {
  5. url: '/all_index/batchSubscribeBookCatalog',
  6. method: 'GET',
  7. auth: true,
  8. },
  9. // 获取首页banner
  10. getBanner: {
  11. url: '/all_index/getBanner',
  12. method: 'GET',
  13. },
  14. // 获取书城区域列表
  15. getBookAreaList: {
  16. url: '/all_index/getBookAreaList',
  17. method: 'GET',
  18. },
  19. // 根据目录查询章节小说信息明细
  20. getBookCatalogDetail: {
  21. url: '/all_index/getBookCatalogDetail',
  22. method: 'GET',
  23. },
  24. // 根据书本标识获取书本目录列表
  25. getBookCatalogList: {
  26. url: '/all_index/getBookCatalogList',
  27. method: 'GET',
  28. },
  29. // 根据书本标识获取书本详细信息
  30. getBookDetail: {
  31. url: '/all_index/getBookDetail',
  32. method: 'GET',
  33. },
  34. // 获取书城分类列表
  35. getCategoryList: {
  36. url: '/all_index/getCategoryList',
  37. method: 'GET',
  38. },
  39. // 获取亲密度排行版
  40. getIntimacyRankList: {
  41. url: '/all_index/getIntimacyRankList',
  42. method: 'GET',
  43. },
  44. // 获取首页最新小说列表带分页
  45. getNewList: {
  46. url: '/all_index/getNewList',
  47. method: 'GET',
  48. },
  49. // 获取首页公告
  50. getNotice: {
  51. url: '/all_index/getNotice',
  52. method: 'GET',
  53. },
  54. // 获取公告详情
  55. getNoticeById: {
  56. url: '/all_index/getNoticeById',
  57. method: 'GET',
  58. },
  59. // 获取公告列表带分页
  60. getNoticePage: {
  61. url: '/all_index/getNoticePage',
  62. method: 'GET',
  63. },
  64. // 获取首页精品推荐小说列表带分页
  65. getRecommendList: {
  66. url: '/all_index/getRecommendList',
  67. method: 'GET',
  68. },
  69. // 观看视频之后开启章节
  70. openBookCatalog: {
  71. url: '/all_index/openBookCatalog',
  72. method: 'GET',
  73. auth: true,
  74. },
  75. // 订阅章节
  76. subscribeBook: {
  77. url: '/all_index/subscribeBook',
  78. method: 'GET',
  79. auth: true,
  80. },
  81. // 根据书本标识进行投票
  82. vote: {
  83. url: '/all_index/vote',
  84. method: 'GET',
  85. auth: true,
  86. },
  87. }
  88. export default api