index.js 2.9 KB

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