小说小程序前端代码仓库(小程序)
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.

77 lines
1.6 KiB

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