apis.js 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364
  1. /**
  2. * 接口列表文件
  3. */
  4. export default {
  5. conf: {
  6. getGroupConf: {
  7. url: "conf/getGroupConf",
  8. auth: false,
  9. method: "GET", //全局信息
  10. }
  11. },
  12. template: {
  13. list: {
  14. url: "template/list",
  15. auth: false,
  16. method: "GET", //全局信息
  17. },
  18. info: {
  19. url: "template/info",
  20. auth: false,
  21. method: "GET", //全局信息
  22. }
  23. },
  24. ai: {
  25. chat: {
  26. url: "ai/chat",
  27. auth: true,
  28. method: "POST",
  29. },
  30. getProxy: {
  31. url: "ai/getProxy",
  32. auth: true,
  33. method: "GET",
  34. },
  35. test: {
  36. url: "ai/test",
  37. auth: false,
  38. method: "POST",
  39. },
  40. getAddress: {
  41. url: "ai/getAddress",
  42. auth: true,
  43. method: "GET",
  44. },
  45. checkText: {
  46. url: "ai/checkText",
  47. auth: true,
  48. method: "GET",
  49. },
  50. painting: {
  51. url: "ai/painting",
  52. auth: true,
  53. method: "POST",
  54. },
  55. showTask: {
  56. url: "ai/showTask",
  57. auth: true,
  58. method: "GET",
  59. },
  60. tts: {
  61. url: "ai/tts",
  62. auth: true,
  63. method: "POST",
  64. },
  65. ttsJob: {
  66. url: "ai/ttsJob",
  67. auth: true,
  68. method: "GET",
  69. },
  70. recognizer: {
  71. url: "ai/recognizer",
  72. auth: true,
  73. method: "POST",
  74. }
  75. },
  76. gallery: {
  77. list: {
  78. url: "gallery/list",
  79. auth: true,
  80. method: "GET",
  81. },
  82. del: {
  83. url: "gallery/del",
  84. auth: true,
  85. method: "POST",
  86. }
  87. },
  88. commission: {
  89. addTeam: {
  90. url: "commission/addTeam",
  91. auth: false,
  92. method: "POST", //绑定分享关系
  93. },
  94. teamList: {
  95. url: "commission/teamList",
  96. auth: false,
  97. method: "GET", //首页信息
  98. },
  99. auth: {
  100. url: "commission/auth",
  101. auth: false,
  102. method: "GET", //分销商信息
  103. },
  104. apply: {
  105. url: "commission/apply",
  106. auth: false,
  107. method: "POST", //申请成为分销商
  108. },
  109. incomeLog: {
  110. url: "commission/incomeLog",
  111. auth: false,
  112. method: "GET", //我的佣金收入明细
  113. },
  114. cashoutLog: {
  115. url: "commission/cashoutLog",
  116. auth: false,
  117. method: "GET", //提现记录
  118. },
  119. extract: {
  120. url: "commission/extract",
  121. auth: false,
  122. method: "POST", //申请提现
  123. },
  124. ranking: {
  125. url: "commission/ranking",
  126. auth: false,
  127. method: "GET", //分销排行榜
  128. },
  129. update: {
  130. url: "commission/update",
  131. auth: false,
  132. method: "POST", //提现信息
  133. }
  134. },
  135. question: {
  136. list: {
  137. url: "question/list",
  138. auth: false,
  139. method: "GET", //对话记录
  140. },
  141. my: {
  142. url: "question/my",
  143. auth: false,
  144. method: "GET", //对话记录
  145. },
  146. add: {
  147. url: "question/add",
  148. auth: false,
  149. method: "POST", //对话记录
  150. },
  151. del: {
  152. url: "question/del",
  153. auth: false,
  154. method: "POST", //对话记录删除
  155. }
  156. },
  157. city: {
  158. list: {
  159. url: "city/list",
  160. auth: false,
  161. method: "GET", //图片上传
  162. },
  163. },
  164. common: {
  165. upload: {
  166. url: "common/upload",
  167. auth: false,
  168. method: "POST", //图片上传
  169. },
  170. del_pic: {
  171. url: "common/del_pic",
  172. auth: false,
  173. method: "POST", //图片删除
  174. },
  175. template: {
  176. url: "common/template",
  177. auth: false,
  178. method: "GET", //模板数据
  179. },
  180. sendMobileCode: {
  181. url: "common/sendMobileCode",
  182. auth: false,
  183. method: "POST", //验证码
  184. },
  185. qrcodePath: {
  186. url: "common/qrcodePath",
  187. auth: false,
  188. method: "GET", //二维码数据
  189. }
  190. },
  191. wechat: {
  192. test: {
  193. url: "",
  194. auth: true,
  195. method: "POST", //微信支付页面授权
  196. },
  197. miniappSilenceAuth: {
  198. url: "wechat/miniappSilenceAuth",
  199. auth: false,
  200. method: "POST", //微信小程序静默登录
  201. },
  202. miniappAuth: {
  203. url: "wechat/miniappAuth",
  204. auth: false,
  205. method: "POST", //小程序登录
  206. },
  207. authBindindPhone: {
  208. url: "wechat/authBindindPhone",
  209. auth: false,
  210. method: "POST", //手机号登录
  211. },
  212. wechatJssdk: {
  213. url: "wechat/wechatJssdk",
  214. auth: false,
  215. method: "GET",
  216. },
  217. wechatAuth: {
  218. url: "wechat/wechatAuth",
  219. auth: false,
  220. method: "GET",
  221. },
  222. authBindindPhoneCode: {
  223. url: "wechat/authBindindPhoneCode",
  224. auth: false,
  225. method: "POST", //手机号登录
  226. }
  227. },
  228. user: {
  229. info: {
  230. url: "user/info",
  231. auth: true,
  232. method: "POST", //用户信息
  233. },
  234. profile: {
  235. url: "user/profile",
  236. auth: true,
  237. method: "POST", //修改用户信息
  238. },
  239. userData: {
  240. url: "user/userData",
  241. auth: true,
  242. method: "GET", //用户重要信息
  243. },
  244. login: {
  245. url: "user/login",
  246. auth: false,
  247. method: "POST", //用户登录
  248. },
  249. register: {
  250. url: "user/register",
  251. auth: false,
  252. method: "POST", //用户注册
  253. }
  254. },
  255. order: {
  256. create: {
  257. url: "order/create",
  258. auth: true,
  259. method: "POST", //创建订单
  260. },
  261. detail: {
  262. url: "order/detail",
  263. auth: true,
  264. method: "GET", //订单详情
  265. }
  266. },
  267. pay: {
  268. prepay: {
  269. url: "pay/prepay",
  270. auth: true,
  271. method: "POST", //微信预支付
  272. },
  273. },
  274. member: {
  275. list: {
  276. url: "member/list",
  277. auth: false,
  278. method: "GET", //会员列表
  279. },
  280. addCoin: {
  281. url: "member/addCoin",
  282. auth: false,
  283. method: "POST", //奖励金币
  284. },
  285. reduceCoin: {
  286. url: "member/reduceCoin",
  287. auth: false,
  288. method: "POST", //消费金币
  289. },
  290. bill: {
  291. url: "member/bill",
  292. auth: false,
  293. method: "GET", //记录
  294. },
  295. kami: {
  296. url: "member/kami",
  297. auth: false,
  298. method: "POST", //卡密兑换
  299. }
  300. },
  301. more: {
  302. list: {
  303. url: "more/list",
  304. auth: false,
  305. method: "GET", //更多好玩列表
  306. },
  307. visit: {
  308. url: "more/visit",
  309. auth: false,
  310. method: "POST", //增加在玩记录
  311. },
  312. },
  313. messageSystem: {
  314. list: {
  315. url: "messageSystem/list",
  316. auth: false,
  317. method: "GET", //消息列表
  318. },
  319. detail: {
  320. url: "messageSystem/detail",
  321. auth: false,
  322. method: "GET", //消息详情
  323. },
  324. new: {
  325. url: "messageSystem/new",
  326. auth: false,
  327. method: "GET", //最新
  328. }
  329. },
  330. chat: {
  331. getList: {
  332. url: "chat/getList",
  333. auth: false,
  334. method: "GET", //聊天列表
  335. },
  336. getChatHistoryConent: {
  337. url: "chat/getChatHistoryConent",
  338. auth: false,
  339. method: "GET", //获取历史聊天对话内容记录
  340. },
  341. getHead: {
  342. url: "chat/getHead",
  343. auth: false,
  344. method: "GET", //获得聊天双方头像
  345. },
  346. saveMessage: {
  347. url: "chat/saveMessage",
  348. auth: false,
  349. method: "POST", //保存信息
  350. },
  351. setRead: {
  352. url: "chat/setRead",
  353. auth: false,
  354. method: "POST", //设置未读消息为已读
  355. },
  356. getChatCode: {
  357. url: "chat/getChatCode",
  358. auth: false,
  359. method: "GET", //获取聊天code
  360. }
  361. }
  362. };