apis.js 7.8 KB

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