myFeat.js 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. import request from "@/sheep/request";
  2. const myFeatAPI = {
  3. // 渠道合作===》应聘技师填写信息
  4. submitApplyTechnician: (data) => {
  5. return request({
  6. url: "/client/user/apply-coach",
  7. method: "post",
  8. data,
  9. custom: {
  10. showSuccess: true,
  11. loadingMsg: "正在提交技师信息",
  12. },
  13. });
  14. },
  15. //获取技师申请信息记录
  16. getTechinicianList: () => {
  17. return request({
  18. url: "/client/user/coach/application",
  19. method: "get",
  20. });
  21. },
  22. // 获取会员套餐信息
  23. getMemberPackages: () => {
  24. return request({
  25. url: "/client/member/packages",
  26. method: "get",
  27. });
  28. },
  29. // 开通会员
  30. activateMember: (data) => {
  31. return request({
  32. url: `/client/member/quick-purchase`,
  33. method: "post",
  34. data,
  35. custom: {
  36. showSuccess: true,
  37. loadingMsg: "开通vip",
  38. },
  39. });
  40. },
  41. //代理申请
  42. applyData: (data) => {
  43. return request({
  44. url: `/client/agent/apply`,
  45. method: "post",
  46. data,
  47. });
  48. },
  49. // 获取海报图片
  50. getPosterImage: (data) => {
  51. return request({
  52. url: `/client/posters/generate`,
  53. method: "post",
  54. data,
  55. });
  56. },
  57. // 获取团队列表
  58. getTeamList: (params) => {
  59. return request({
  60. url: `/client/team/list`,
  61. method: "get",
  62. params,
  63. });
  64. },
  65. // 获取佣金列表
  66. getCommissionList: (params) => {
  67. return request({
  68. url: `/client/team/commission-records`,
  69. method: "get",
  70. params,
  71. });
  72. },
  73. };
  74. export default myFeatAPI;