apis.js 9.6 KB

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