apis.js 9.7 KB

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