apis.js 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564
  1. /**
  2. * 接口列表文件
  3. */
  4. import {
  5. API_STEROOT,
  6. } from '@/common/request/request';
  7. export default {
  8. userInfo: {
  9. info: 'https://meta.swdz.com/index.php/api.user/info?uniacid=5059'
  10. },
  11. conf: {
  12. getGroupConf: {
  13. url: "conf/getGroupConf",
  14. auth: false,
  15. method: "GET", //全局信息
  16. }
  17. },
  18. template: {
  19. list: {
  20. url: "template/list",
  21. auth: false,
  22. method: "GET", //全局信息
  23. },
  24. info: {
  25. url: "template/info",
  26. auth: false,
  27. method: "GET", //全局信息
  28. }
  29. },
  30. digit: {
  31. digitCheckText: {
  32. url: "ai/digit",
  33. auth: true,
  34. method: "POST",
  35. },
  36. },
  37. ai: {
  38. digitCheckText: {
  39. url: "digit/checkText",
  40. auth: true,
  41. method: "POST",
  42. },
  43. chat: {
  44. url: "ai/chat",
  45. auth: true,
  46. method: "POST",
  47. },
  48. chat4: {
  49. url: "ai/chat4",
  50. auth: false,
  51. method: "POST",
  52. },
  53. baidu: {
  54. url: "ai/chatBaidu",
  55. auth: false,
  56. method: "POST",
  57. },
  58. chat4event: {
  59. url: "ai/chat4event",
  60. auth: false,
  61. method: "POST",
  62. },
  63. getProxy: {
  64. url: "ai/getProxy",
  65. auth: true,
  66. method: "GET",
  67. },
  68. test: {
  69. url: "ai/test",
  70. auth: false,
  71. method: "POST",
  72. },
  73. getAddress: {
  74. url: "ai/getAddress",
  75. auth: true,
  76. method: "GET",
  77. },
  78. checkText: {
  79. url: "ai/checkText",
  80. auth: true,
  81. method: "GET",
  82. },
  83. painting: {
  84. url: "ai/painting",
  85. auth: true,
  86. method: "POST",
  87. },
  88. showTask: {
  89. url: "ai/showTask",
  90. auth: true,
  91. method: "GET",
  92. },
  93. tts: {
  94. url: "ai/tts",
  95. auth: true,
  96. method: "POST",
  97. },
  98. ttsJob: {
  99. url: "ai/ttsJob",
  100. auth: true,
  101. method: "GET",
  102. },
  103. recognizer: {
  104. url: "ai/recognizer",
  105. auth: true,
  106. method: "POST",
  107. }
  108. },
  109. robot: {
  110. createRobot: {
  111. url: "robot/createRobot",
  112. auth: true,
  113. method: "POST",
  114. },
  115. checkRobotIsScan: {
  116. url: "robot/checkRobotIsScan",
  117. auth: true,
  118. method: "POST",
  119. },
  120. info: {
  121. url: "user/info",
  122. auth: true,
  123. method: "POST",
  124. },
  125. },
  126. digitalMen: {
  127. workList: {
  128. url: "Digit/list",
  129. auth: false,
  130. method: "POST",
  131. },
  132. generateWork: {
  133. url: "Digit/addDigit",
  134. auth: true,
  135. method: "POST",
  136. },
  137. delWork: {
  138. url: "Digit/deleteDigit",
  139. auth: true,
  140. method: "POST",
  141. },
  142. roleList: {
  143. url: "Digit/getRoleList",
  144. auth: false,
  145. method: "POST",
  146. },
  147. voiceList: {
  148. url: "Digit/getAudioList",
  149. auth: false,
  150. method: "POST",
  151. },
  152. backList: {
  153. url: "Digit/getBackList",
  154. auth: false,
  155. method: "POST",
  156. },
  157. draftList: {
  158. url: "Digit/draftList",
  159. auth: true,
  160. method: "POST",
  161. },
  162. getBg: {
  163. url: "Digit/getBackImageByRole",
  164. auth: false,
  165. method: "POST",
  166. },
  167. },
  168. gallery: {
  169. getOpensdDetail: {
  170. url: "gallery/getOpensdDetail",
  171. auth: true,
  172. method: "GET",
  173. },
  174. list: {
  175. url: "gallery/list",
  176. auth: true,
  177. method: "GET",
  178. },
  179. del: {
  180. url: "gallery/del",
  181. auth: true,
  182. method: "POST",
  183. },
  184. getWords: {
  185. url: "gallery/getWords",
  186. auth: false,
  187. method: "GET",
  188. },
  189. getModels: {
  190. url: "gallery/getModels",
  191. auth: false,
  192. method: "GET",
  193. },
  194. create: {
  195. url: "gallery/create",
  196. auth: true,
  197. method: "POST",
  198. },
  199. chat: {
  200. url: "gallery/chat",
  201. auth: true,
  202. method: "POST",
  203. },
  204. all: {
  205. url: "gallery/all",
  206. auth: false,
  207. method: "GET",
  208. },
  209. fetch: {
  210. url: "gallery/fetch",
  211. auth: true,
  212. method: "GET",
  213. },
  214. detail: {
  215. url: "gallery/detail",
  216. auth: false,
  217. method: "GET",
  218. },
  219. imagine: {
  220. url: "gallery/imagine",
  221. auth: true,
  222. method: "POST",
  223. },
  224. getAsyncResult: {
  225. url: "gallery/getAsyncResult",
  226. auth: true,
  227. method: "GET",
  228. },
  229. upscale: {
  230. url: "gallery/upscale",
  231. auth: true,
  232. method: "POST",
  233. },
  234. variation: {
  235. url: "gallery/variation",
  236. auth: true,
  237. method: "POST",
  238. },
  239. setOpen: {
  240. url: "gallery/setOpen",
  241. auth: true,
  242. method: "POST",
  243. },
  244. test: {
  245. url: "gallery/test",
  246. auth: true,
  247. method: "POST",
  248. }
  249. },
  250. commission: {
  251. addTeam: {
  252. url: "commission/addTeam",
  253. auth: false,
  254. method: "POST", //绑定分享关系
  255. },
  256. teamList: {
  257. url: "commission/teamList",
  258. auth: false,
  259. method: "GET", //首页信息
  260. },
  261. auth: {
  262. url: "commission/auth",
  263. auth: false,
  264. method: "GET", //分销商信息
  265. },
  266. apply: {
  267. url: "commission/apply",
  268. auth: false,
  269. method: "POST", //申请成为分销商
  270. },
  271. incomeLog: {
  272. url: "commission/incomeLog",
  273. auth: false,
  274. method: "GET", //我的佣金收入明细
  275. },
  276. cashoutLog: {
  277. url: "commission/cashoutLog",
  278. auth: false,
  279. method: "GET", //提现记录
  280. },
  281. extract: {
  282. url: "commission/extract",
  283. auth: false,
  284. method: "POST", //申请提现
  285. },
  286. ranking: {
  287. url: "commission/ranking",
  288. auth: false,
  289. method: "GET", //分销排行榜
  290. },
  291. update: {
  292. url: "commission/update",
  293. auth: false,
  294. method: "POST", //提现信息
  295. },
  296. create: {
  297. url: "commission/create",
  298. auth: false,
  299. method: "POST", //付费成为分销商下单
  300. }
  301. },
  302. question: {
  303. list: {
  304. url: "question/list",
  305. auth: false,
  306. method: "GET", //对话记录
  307. },
  308. my: {
  309. url: "question/my",
  310. auth: false,
  311. method: "GET", //对话记录
  312. },
  313. add: {
  314. url: "question/add",
  315. auth: false,
  316. method: "POST", //对话记录
  317. },
  318. del: {
  319. url: "question/del",
  320. auth: false,
  321. method: "POST", //对话记录删除
  322. }
  323. },
  324. city: {
  325. list: {
  326. url: "city/list",
  327. auth: false,
  328. method: "GET", //图片上传
  329. },
  330. },
  331. common: {
  332. upload: {
  333. url: "common/upload",
  334. auth: false,
  335. method: "POST", //图片上传
  336. },
  337. del_pic: {
  338. url: "common/del_pic",
  339. auth: false,
  340. method: "POST", //图片删除
  341. },
  342. template: {
  343. url: "common/template",
  344. auth: false,
  345. method: "GET", //模板数据
  346. },
  347. sendMobileCode: {
  348. url: "common/sendMobileCode",
  349. auth: false,
  350. method: "POST", //验证码
  351. },
  352. qrcodePath: {
  353. url: "common/qrcodePath",
  354. auth: false,
  355. method: "GET", //二维码数据
  356. }
  357. },
  358. wechat: {
  359. miniappSilenceAuth: {
  360. url: "wechat/miniappSilenceAuth",
  361. auth: false,
  362. method: "POST", //微信小程序静默登录
  363. },
  364. miniappAuth: {
  365. url: "wechat/miniappAuth",
  366. auth: false,
  367. method: "POST", //小程序登录
  368. },
  369. authBindindPhone: {
  370. url: "wechat/authBindindPhone",
  371. auth: false,
  372. method: "POST", //手机号登录
  373. },
  374. wechatJssdk: {
  375. url: "wechat/wechatJssdk",
  376. auth: false,
  377. method: "GET",
  378. },
  379. wechatAuth: {
  380. url: "wechat/wechatAuth",
  381. auth: false,
  382. method: "GET",
  383. },
  384. authBindindPhoneCode: {
  385. url: "wechat/authBindindPhoneCode",
  386. auth: false,
  387. method: "POST", //手机号登录
  388. }
  389. },
  390. user: {
  391. newLogin: {
  392. url: "user/login_code",
  393. auth: false,
  394. method: "POST", //验证码
  395. },
  396. code: {
  397. url: "common/sendMobileCode",
  398. auth: false,
  399. method: "POST", //验证码
  400. },
  401. info: {
  402. url: "user/info",
  403. auth: true,
  404. method: "POST", //用户信息
  405. },
  406. profile: {
  407. url: "user/profile",
  408. auth: true,
  409. method: "POST", //修改用户信息
  410. },
  411. userData: {
  412. url: "user/userData",
  413. auth: true,
  414. method: "GET", //用户重要信息
  415. },
  416. login: {
  417. url: "user/login",
  418. auth: false,
  419. method: "POST", //用户登录
  420. },
  421. register: {
  422. url: "user/register",
  423. auth: false,
  424. method: "POST", //用户注册
  425. }
  426. },
  427. order: {
  428. create: {
  429. url: "order/create",
  430. auth: true,
  431. method: "POST", //创建订单
  432. },
  433. detail: {
  434. url: "order/detail",
  435. auth: true,
  436. method: "GET", //订单详情
  437. },
  438. my: {
  439. url: "order/my",
  440. auth: true,
  441. method: "GET", //订单记录
  442. },
  443. createSettle: {
  444. url: "order/createSettle",
  445. auth: true,
  446. method: "POST", //创建订单
  447. },
  448. detailSettle: {
  449. url: "order/detailSettle",
  450. auth: true,
  451. method: "GET", //入驻订单详情
  452. }
  453. },
  454. pay: {
  455. prepay: {
  456. url: "pay/prepay",
  457. auth: true,
  458. method: "POST", //微信预支付
  459. },
  460. hupijiaopay: {
  461. url: "pay/hupijiaopay",
  462. auth: true,
  463. method: "POST", //虎皮椒预支付
  464. }
  465. },
  466. member: {
  467. list: {
  468. url: "member/list",
  469. auth: false,
  470. method: "GET", //会员列表
  471. },
  472. addCoin: {
  473. url: "member/addCoin",
  474. auth: false,
  475. method: "POST", //奖励金币
  476. },
  477. reduceCoin: {
  478. url: "member/reduceCoin",
  479. auth: false,
  480. method: "POST", //消费金币
  481. },
  482. bill: {
  483. url: "member/bill",
  484. auth: false,
  485. method: "GET", //记录
  486. },
  487. kami: {
  488. url: "member/kami",
  489. auth: false,
  490. method: "POST", //卡密兑换
  491. }
  492. },
  493. more: {
  494. list: {
  495. url: "more/list",
  496. auth: false,
  497. method: "GET", //更多好玩列表
  498. },
  499. visit: {
  500. url: "more/visit",
  501. auth: false,
  502. method: "POST", //增加在玩记录
  503. },
  504. },
  505. messageSystem: {
  506. list: {
  507. url: "messageSystem/list",
  508. auth: false,
  509. method: "GET", //消息列表
  510. },
  511. detail: {
  512. url: "messageSystem/detail",
  513. auth: false,
  514. method: "GET", //消息详情
  515. },
  516. new: {
  517. url: "messageSystem/new",
  518. auth: false,
  519. method: "GET", //最新
  520. }
  521. },
  522. chat: {
  523. getList: {
  524. url: "chat/getList",
  525. auth: false,
  526. method: "GET", //聊天列表
  527. },
  528. getChatHistoryConent: {
  529. url: "chat/getChatHistoryConent",
  530. auth: false,
  531. method: "GET", //获取历史聊天对话内容记录
  532. },
  533. getHead: {
  534. url: "chat/getHead",
  535. auth: false,
  536. method: "GET", //获得聊天双方头像
  537. },
  538. saveMessage: {
  539. url: "chat/saveMessage",
  540. auth: false,
  541. method: "POST", //保存信息
  542. },
  543. setRead: {
  544. url: "chat/setRead",
  545. auth: false,
  546. method: "POST", //设置未读消息为已读
  547. },
  548. getChatCode: {
  549. url: "chat/getChatCode",
  550. auth: false,
  551. method: "GET", //获取聊天code
  552. }
  553. }
  554. };