index.js 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. import { AnotherTFRequest } from '../../utils'
  2. // 查询名片信息
  3. export const getIdEnterpriseUserApi = (data) => AnotherTFRequest('/enterpriseUser/getUserId', data)
  4. // 保存名片信息
  5. export const addEnterpriseUserSaveApi = (data) => AnotherTFRequest('/enterpriseUser/save', data, 'POST')
  6. // 修改名片信息
  7. export const updateByIdEnterpriseUserApi = (data) => AnotherTFRequest('/enterpriseUser/updateById', data, 'POST')
  8. // 查询用户标签
  9. export const getUserIdEnterpriseUserLabelApi = (data) => AnotherTFRequest('/enterpriseUserLabel/getByLabel', data)
  10. // 新增用户标签
  11. export const addEnterpriseUserLabelSaveApi = (data) => AnotherTFRequest('/enterpriseUserLabel/save', data, 'POST')
  12. // 修改用户标签
  13. export const updateByIdEnterpriseUserLabelApi = (data) => AnotherTFRequest('/enterpriseUserLabel/updateById', data, 'POST')
  14. // 查询标签详情
  15. export const getEnterpriseUserLabelDetailApi = (data) => AnotherTFRequest('/enterpriseUserLabel/getByLabelId', data)
  16. // 删除用户标签
  17. export const deleteByIdEnterpriseUserLabelApi = (data) => AnotherTFRequest('/enterpriseUserLabel/deleteById', data, 'POST')
  18. // 点赞标签
  19. export const updateByLabelEnterpriseUserLikeApi = (data) => AnotherTFRequest('/enterpriseUserLike/likeById', data, 'POST')
  20. // 取消点赞标签
  21. export const updateByIdCanEnterpriseUserLikeApi = (data) => AnotherTFRequest('/enterpriseUserLike/likeByIdCan', data, 'POST')
  22. /**
  23. * @description 商城相关接口
  24. */
  25. // 获取支付宝小程序手机号绑定
  26. export const updateAliPhoneAppApi = (data) => AnotherTFRequest('/app/updateAliPhone', data, 'POST')
  27. // 获取短信验证码
  28. export const getCodeBusinessApi = (data) => AnotherTFRequest('/app/getCode', data, 'POST')
  29. // 获取短信验证码
  30. export const getVerifyCodeApi = (data) => AnotherTFRequest('/app/getCode', data)
  31. // 手机号验证码登录、注册
  32. export const updatePhoneLoginRegisterApi = (data) => AnotherTFRequest('/app/login', data, 'POST')
  33. // 支付宝登录
  34. export const updateAlipayLoginApi = (data) => AnotherTFRequest('/app/alipayLogin', data, 'POST')
  35. // 微信登录
  36. export const updateWXLoginApi = (data) => AnotherTFRequest('/app/wxLogin', data, 'POST')
  37. // APP微信登录
  38. export const updateWXAppLoginApi = (data) => AnotherTFRequest('/app/wxAppLogin', data, 'POST')
  39. // 获取微信手机号绑定
  40. export const getSessionKeyAppApi = (data) => AnotherTFRequest('/app/getSessionKey', data, 'POST')
  41. // 获取微信手机号绑定
  42. export const updateSetWxPhoneAppApi = (data) => AnotherTFRequest('/app/setWxPhone', data, 'POST')
  43. // 获取微信手机号绑定
  44. export const updateWxPhoneAppApi = (data) => AnotherTFRequest('/app/updateWxPhone', data, 'POST')
  45. // 判断用户是否是商家
  46. export const getIsShopByUserApi = (data) => AnotherTFRequest('/shop/getShopByUser', data)
  47. // 个人系信息查询
  48. export const getUserInfoApi = (data) => AnotherTFRequest('/user/getUser', data)
  49. // 个人系信息修改
  50. export const updateUserInfoApi = (data) => AnotherTFRequest('/user/update', data, 'POST')