account.uts 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. import { request } from '../request.uts'
  2. // 与技师相关的V3接口 | UTS 规范版
  3. // 获取技师钱包信息
  4. export function getCoachWallteInfo() : Promise<any> {
  5. return request({
  6. url: "/api/coach/v3/wallet",
  7. method: "GET"
  8. })
  9. }
  10. // 获取本月账单
  11. export function getCoachTransRecords(params : any) : Promise<any> {
  12. return request({
  13. url: "/api/coach/v3/wallet/trans-records",
  14. method: "GET",
  15. params: params
  16. })
  17. }
  18. // 路费转出
  19. export function saveTransInfo(data : any) : Promise<any> {
  20. return request({
  21. url: "/api/coach/v3/wallet/travel-withdraw",
  22. method: "POST",
  23. data: data
  24. })
  25. }
  26. // 申请提现
  27. export function createWithdraw(data : any) : Promise<any> {
  28. return request({
  29. url: "/api/coach/v3/wallet/withdraw",
  30. method: "POST",
  31. data: data
  32. })
  33. }
  34. // 提现记录列表
  35. export function recordsList(params : any) : Promise<any> {
  36. return request({
  37. url: "/api/coach/v3/wallet/withdraw-records",
  38. method: "GET",
  39. params: params
  40. })
  41. }
  42. // 技师确认收款
  43. export function withdrawalCoachInfo(data : any) : Promise<any> {
  44. return request({
  45. url: "/api/coach/v3/wallet/confirm-withdraw",
  46. method: "POST",
  47. data: data
  48. })
  49. }
  50. // 获取本月邀请的技师/用户佣金账单明细
  51. export function getCoachYjRecords(params : any) : Promise<any> {
  52. return request({
  53. url: "/api/coach/v3/team/team-records",
  54. method: "GET",
  55. params: params
  56. })
  57. }
  58. // 技师缴纳保证金充值
  59. export function deposit(data : any) : Promise<any> {
  60. return request({
  61. url: "/api/coach/v3/pledge/recharge",
  62. method: "POST",
  63. data: data
  64. })
  65. }
  66. // 技师保证金账单明细
  67. export function getDepositBill(params : any) : Promise<any> {
  68. return request({
  69. url: "/api/coach/v3/pledge/getAssure",
  70. method: "GET",
  71. params: params
  72. })
  73. }