api.js 5.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. import {request} from "@/util/index.js";
  2. const req = {
  3. /**
  4. * 登录
  5. */
  6. login: {
  7. call4VeriCode: (params) => request("/unified/call4VeriCode",'POST',params), // 获取验证码
  8. login: (params) => request("/unified/login",'POST', params), // 登录
  9. wxLogin: (params) => request("/unified/login",'POST', params), // 微信手机号登录
  10. saveSex:(params) => request("/saveData1",'POST', params), // 保存性别
  11. saveFigure:(params) => request("/saveData2",'POST', params), // 保存社交形象
  12. saveDatum:(params) => request("/saveData3",'POST', params), // 保存社交资料
  13. saveCity:(params) => request("/saveData4",'POST', params), // 保存城市
  14. saveWechat:(params) => request("/saveData5",'POST', params), // 保存微信
  15. popularCities:(params) => request("/popularCities",'POST', params), // 热门城市
  16. upload:(params) => request("/faceImage/upload",'POST', params), //图片上传
  17. randNick:(params) => request("/rdk",'POST', params), //随机昵称
  18. editPersonal:(params) => request("/editPersonal",'POST', params),//个人资料编辑
  19. labelsConfig:(params) => request("/txmqgetUserWantedLabels",'POST', params),//个人标签配置
  20. editHead:(params) => request("/editHeadIcon",'POST', params),//更新头像
  21. },
  22. /**
  23. * 通用
  24. */
  25. public:{
  26. aliossToken:(params) => request("/alioss/token",'POST', params), //阿里云直传token获取
  27. aliossCdn:(params) => request("/cdnConfig",'POST', params), //获取阿里云上传cdn
  28. videoProcess:(params) => request("/txmqpersonalPageHomeVideoProcessing",'POST', params), //获取阿里云上传cdn
  29. config:(params) => request("/lcds",'POST', params), //通用字典查询字典-dicts,可用值:Careers,Hobbys,Hopes
  30. ranking:(params) => request("/txmqhotRanking",'POST', params),//排行榜
  31. friends:(params) => request("/loadFriendsListByIndex",'POST', params),//排行榜
  32. mine:(params) => request("/lmtf",'POST', params),//我的-个人资料
  33. album:(params) => request("/auls",'POST', params),//我的-个人相册
  34. albumSort:(params) => request("/resetMediaSeqs",'POST', params),//相册排序
  35. albumDelete:(params) => request("/rmvMedia",'POST', params),//相册删除
  36. albumAdd:(params) => request("/addMediaBatch",'POST', params),//相册添加
  37. cover:(params) => request("/tpvp",'POST', params),//我的-个人封面
  38. mineDetail:(params) => request("/loadUserDetailSelf",'POST', params),//自己用户详情
  39. userDetail:(params) => request("/loadUserDetailOther",'POST', params),//他人用户详情
  40. isLike:(params) => request("/juur",'POST', params),//喜欢和拉黑
  41. userData:(params) => request("/txmqloadUsersByType",'POST', params),//获取用户相关列表数字(个人中心[我喜欢,黑名单,喜欢我,我浏览,访客])(糖果公园专用接口)
  42. guestor:(params) => request("/loadUsersByType",'POST', params),//异性访客
  43. priceBySceneConfigs:(params) => request("/loadPriceBySceneConfigs",'POST', params),//糖果、会员套餐基本配置
  44. vipPromotions:(params) => request("/listPromotionsPay",'POST', params),//vip跑马灯
  45. heartBeat:(params) => request("/heartbeat",'POST', params),//心跳汇报
  46. seeMaleDetail:(params) => request("/vfdmo",'POST', params),//女性看男性主页
  47. seeFamaleDetail:(params) => request("/vmdfo",'POST', params),//男性看女性主页
  48. notifyActive:(params) => request("/activeNotifyOverview",'POST', params),//互动通知最后一条消息以及总未读数
  49. loadSystemMsgs:(params) => request("/loadSystemMsgs",'POST', params),//系统消息列表
  50. search:(params) => request("/loadUsersByIndex",'POST', params),//搜索
  51. friendsNoAuth:(params) => request("/loadUsersByIndexFirstNoAuth",'POST', params),//无登录体验数据
  52. },
  53. pay:{
  54. creatWxOrder:(params) => request("/createWxpayOrderByMiniProgram",'POST', params),//创建微信订单
  55. },
  56. IM:{
  57. loadSig:(params) => request("/loadSig",'POST', params),//创建微信订单
  58. },
  59. /**
  60. * 提现
  61. */
  62. bag:{
  63. loadMyWithdrawalInfo: (params) => request("/bag/loadMyWithdrawalInfo",'POST', params), // 提现相关信息
  64. my: (params) => request("/bag/my",'POST', params), // 我的提现详情
  65. incomeList: (params) => request("/bag/incomeList", params), // 收益明细
  66. loadMyWithdrawRecords: (params) => request("/bag/loadMyWithdrawRecords",'POST','POST', params), // 提现记录
  67. coinList: (params) => request("/bag/coinList",'POST', params), // 颜豆明细
  68. editAlipay: (params) => request("/bag/editAlipay",'POST', params), // 绑定支付宝账号
  69. createWithdrawalOrder: (params) => request("/bag/createWithdrawalOrder",'POST', params), // 创建提现订单
  70. isEffectiveWithdrawalOrder: (params) => request("/bag/isEffectiveWithdrawalOrder",'POST', params), // 检查提现订单是否有效
  71. submitWithdrawalOrder: (params) => request("/bag/submitWithdrawalOrder",'POST', params), // 提交提现订单
  72. createIncomeOrder: (params) => request("/bag/createIncomeOrder",'POST', params), //创建收益兑换颜豆订单
  73. submitIncomeOrder: (params) => request("/bag/submitIncomeOrder",'POST', params), // 提交收益兑换颜豆订单
  74. editAlipay: (params) => request("/bag/editAlipay",'POST', params), // 绑定支付宝
  75. loadMyWithdrawDetail: (params) => request("/bag/loadMyWithdrawDetail",'POST', params), // 查询单笔提现订单
  76. },
  77. };
  78. export default req;