user.js 869 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. import { myRequest } from "./request.js";
  2. //修改信息
  3. export function sellerEdit(data) {
  4. return myRequest({
  5. url: "/distribution/seller/edit",
  6. method: "post",
  7. data: data,
  8. });
  9. }
  10. export function getInfoByShareCode(data) {
  11. return myRequest({
  12. url: "/app/common/distribution/getInfoByShareCode",
  13. method: "get",
  14. data: data,
  15. noToken: true,
  16. });
  17. }
  18. // 查询用户是否绑定公众号
  19. export function checkBindGzh(data) {
  20. return myRequest({
  21. url: "/distribution/seller/checkBindGzh",
  22. method: "get",
  23. data,
  24. });
  25. }
  26. // 提现
  27. export function withdrawal(data) {
  28. return myRequest({
  29. url: "/distribution/withdrawal",
  30. method: "post",
  31. data: data,
  32. });
  33. }
  34. // 提现记录
  35. export function getWithdrawalList(data) {
  36. return myRequest({
  37. url: "/distribution/withdrawal/list",
  38. method: "get",
  39. data: data,
  40. });
  41. }