urlMap.js 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. export default {
  2. wx_login: 'api/user/wechatlogin',// 微信登录
  3. mobileCode: 'api/sms/send', // 获取手机验证码
  4. register: 'api/yexam/user/register', // 注册
  5. login: 'api/user/login', // 登录
  6. logout: 'api/user/logout', // 退出登录
  7. resetPwd: 'api/user/resetpwd', // 修改登录密码
  8. swiper: 'api/yexam/banner/index', // 轮播图
  9. // page
  10. // limit
  11. search: 'api/shouye/tikusousuolist', // 搜索题库
  12. tikuList: 'api/shouye/tikulist', // 题库列表
  13. nologintikuunitlist: 'api/tiku/nologintikulist', // 题库列表
  14. minegetuserinfo: 'api/user/getuserinfo', // 获取会员信息
  15. checkToken: 'api/Token/check', // 检测Token是否过期
  16. refreshToken: 'api/token/refresh', // 刷新token
  17. subjectList:'api/yexam/subject/all', //科目列表
  18. unitList: 'api/yexam/subject/unit', // 科目下章节列表
  19. // subject_id
  20. // unit_id 顶级传0
  21. // page
  22. // limit
  23. unitPracticeRecord: 'api/yexam/subject/question_info', // 科目顶部练习记录
  24. // subject_id
  25. zhentiList: 'api/yexam/library/index', // 历年真题
  26. // page
  27. // limit
  28. //subject_id
  29. /****************** 章节练习 **********************/
  30. unitCard: 'api/yexam/unit/card', // 章节练习答题卡
  31. // unit_id
  32. unit_postion: 'api/yexam/unit/position',//上次答到第几题
  33. // unit_id
  34. // timu_details: 'api/yexam/question/info',//章节练习和历年真题的题目详情都用这个接口获取 以前的
  35. timu_details: 'api/yexam/unit/question',//章节练习的题目详情 用这个接口获取
  36. // unit_id
  37. // num
  38. // unitansqueedit: 'api/yexam/unit/ansqueedit', // 章节练习答题操作 章节练习
  39. unitansqueedit: 'api/yexam/unit/ans_que', // 章节练习答题操作 章节练习
  40. // id
  41. // answer
  42. unitshoucangeedit: 'api/yexam/unit/fav', // 收藏题目 章节联系
  43. // id
  44. emptyTestLog: 'api/yexam/unit/emptytestlog', //清空答题记录
  45. // unit_id
  46. wrongQuestion: 'api/yexam/unit/error_log', //章节练习错题
  47. // subject_id
  48. // page
  49. // limit
  50. collect: 'api/yexam/unit/fav_list',// 章节练习收藏列表
  51. // subject_id
  52. // page
  53. // limit
  54. unit_errorCard: 'api/yexam/unit/error_card', // 章节练习错题答题卡
  55. // unit_id
  56. unit_remove_error: 'api/yexam/unit/remove_error', // 章节练习 移除错题
  57. // id
  58. unit_fav_card: 'api/yexam/unit/fav_card', // 章节练习收藏答题卡
  59. // unit_id
  60. /****************** 历年真题 **********************/
  61. emptyLibraryLog: 'api/yexam/library/emptytestlog', //清空答题记录
  62. // library_id
  63. zhenti_wrongQuestion: 'api/yexam/library/error_log', //历年真题错题
  64. // subject_id
  65. // page
  66. // limit
  67. zhenti_collect: 'api/yexam/library/fav_list',// 历年真题收藏列表
  68. // subject_id
  69. // page
  70. // limit
  71. zhentiCard: 'api/yexam/library/card', // 历年真题答题卡
  72. //library_id
  73. zhenti_postion: 'api/yexam/library/position',//历年真题上次答到第几题
  74. // library_id
  75. zhentiansqueedit: 'api/yexam/library/ansqueedit', // 历年真题答题操作
  76. // id
  77. // answer
  78. zhentishoucangeedit: 'api/yexam/library/fav', // 收藏题目 历年真题
  79. // id
  80. library_errorCard: 'api/yexam/library/error_card', // 历年真题错题答题卡
  81. // library_id
  82. library_remove_error: 'api/yexam/library/remove_error', // 移除错题 历年真题
  83. // id
  84. library_fav_card: 'api/yexam/library/fav_card', // 章节练习收藏答题卡
  85. // library_id
  86. /****************** 考试 **********************/
  87. record: 'api/yexam/exam/record',// 考试记录
  88. // subject_id
  89. // page
  90. // limit
  91. mockExaminationList: 'api/yexam/exam/virtual', // 模拟考试列表
  92. // library_id
  93. // page
  94. // limit
  95. examinationList: 'api/yexam/exam/index', // 正式考试列表
  96. // library_id
  97. // page
  98. // limit
  99. exam_begin: 'api/yexam/exam/begin',//开始考试
  100. // exam_id
  101. exam_end: 'api/yexam/exam/up',//考试交卷
  102. // exam_id
  103. exam_answer: 'api/yexam/exam/answer',//考试答题
  104. // exam_id
  105. // question_id
  106. // answer
  107. examCard: 'api/yexam/exam/card',//考试答题卡
  108. // exam_id
  109. examPosition: 'api/yexam/exam/position',//考试答题卡
  110. // exam_id
  111. exam_timu_details: 'api/yexam/exam/question',//考试获取题目详情(如果本次考试答过本题,则包含本题答案)
  112. // exam_id
  113. // question_id
  114. exam_error_list: 'api/yexam/exam/error_log',//考试错题列表
  115. // subject_id
  116. // type 1考试 2模拟考试
  117. // page
  118. // limit
  119. exam_error_card: 'api/yexam/exam/error_card',//考试错题答题卡
  120. // exam_user_id 模拟考试存在多次参与的情况
  121. userInfo: 'api/yexam/user/getuserinfo',//用户信息
  122. editUserInfo: 'api/yexam/user/profile', // 修改用户信息
  123. // nickname
  124. // avatar
  125. resetpwd: 'api/yexam/user/resetpwd', // 修改密码
  126. //* 2020年12月4日 修改为微信h5授权登录和小程序授权登录 */
  127. /* 1.小程序授权登录 */
  128. 'authMini':'api/yexam/user/oauthMiniUser',
  129. 'authUser':'api/yexam/user/authUser',
  130. 'getMinAppid':'api/yexam/user/mini_appid',//获取小程序appid
  131. 'getAppid':'api/yexam/user/appid',//获取微信公众号appid
  132. 'getConfig': 'api/yexam/user/config',
  133. 'jiucuo':'api/yexam/tag/add',//提交纠错
  134. // question_id
  135. // type
  136. 'getNote':'api/yexam/note/index',//获取随手记内容
  137. // question_id
  138. 'addNote':'api/yexam/note/add',//添加随手记内容
  139. // question_id
  140. // content
  141. 'userProfile':'api/user/profile',//用户信息
  142. // nickname
  143. // avatar
  144. 'noticeList':'api/yexam/notice/index',// 通知公告列表
  145. // subject_id
  146. // page
  147. // limit
  148. 'articleInfo':'api/yexam/notice/info',
  149. // id
  150. // 通知公告详情
  151. "questionsSearchResult":'api/yexam/question/search',//搜索题目列表\
  152. // type 1单选 2多选 3判断 4填空 5简答题
  153. // keyword
  154. // page
  155. // limit
  156. "questionSearchInfo":'api/yexam/question/info',//题目详情
  157. // id
  158. 'phList':'api/yexam/exam/ph',//排行榜
  159. 'getAd':'api/score/ad/index',//广告
  160. 'checkvip':'api/yexam/user/check_vip',//是否vip
  161. //subject_id
  162. 'exchangesubject':'api/yexam/user/exchange_subject',//激活码兑换科目
  163. //code
  164. //subject_id
  165. 'myexchange':'api/yexam/user/my_exchange',//我兑换的科目列表
  166. //page
  167. //limit
  168. 'navList':'api/yexam.nav/index',//首页导航图标接口
  169. //page
  170. //limit
  171. 'settingindex':'api/yexam/setting/index',//关于我们和联系客服接口
  172. // 'decryptData':'api/yexam/user/decryptData',//小程序解码
  173. 'unitVip':'api/yexam.unit/info',//id 章节详情 是否需要vip权限
  174. 'examVip':'api/yexam.exam/info',// id 考试详情 是否需要vip权限
  175. 'zhentiVip':'api/yexam/library/info',//id 历年真题详情
  176. //购买激活码
  177. 'buyJhm': 'api/yexam/Subject/create_order',
  178. 'yqhb': 'api/yexam/user/recommend_poster',
  179. 'sh': 'api/yexam/notice/auth'
  180. };