withdraw.ts 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. import { server } from "@/utils/client";
  2. export interface WithDrawType {
  3. id: number;
  4. name: string;
  5. start_time: string;
  6. end_time: string;
  7. icon: string;
  8. channels?: ChannelType[];
  9. /**
  10. * 最大充值金额
  11. */
  12. max_amount: number;
  13. /**
  14. * 最小充值金额
  15. */
  16. min_amount: number;
  17. }
  18. export interface ChannelType {
  19. /**
  20. * 编号
  21. */
  22. id: number;
  23. /**
  24. * 渠道名称
  25. */
  26. name: string;
  27. products: Product[];
  28. /**
  29. * 跳转类型:1 iframe 2外链
  30. */
  31. redirect_type?: number;
  32. /**
  33. * 租户编号
  34. */
  35. renter_id: number;
  36. /**
  37. * 提示信息
  38. */
  39. tips: string;
  40. type: 1 | 2 | 3 | 4;
  41. }
  42. export interface Product {
  43. /**
  44. * 金额
  45. */
  46. amount: number;
  47. /**
  48. * 角标:0无,1为Hot
  49. */
  50. badge: number;
  51. }
  52. // 前台用户提现申请
  53. // POST /v1/api/user/user_withdraw
  54. // 接口ID:199611379
  55. // 接口地址:https://app.apifox.com/link/project/4790544/apis/api-199611379
  56. export interface WithDrawParams {
  57. /**
  58. * 提现账户
  59. */
  60. account_no: string;
  61. amount: number;
  62. /**
  63. * 渠道编号
  64. */
  65. channel_id: number;
  66. /**
  67. * 用户身份信息
  68. */
  69. passport: string;
  70. /**
  71. * 用户名称
  72. */
  73. user_name: string;
  74. }
  75. export const getWithDrawApi = (data: WithDrawParams) => {
  76. return server.post({
  77. url: "/v1/api/user/user_withdraw",
  78. data,
  79. });
  80. };