index.js 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. import request from '@/utils/request'
  2. // api docs: https://www.showdoc.com.cn/2598833910230611/11558452686114862
  3. // 查询俱乐部列表
  4. export function getClubListApi(params) {
  5. return request({
  6. url: '/people-bank-club/getClubAll',
  7. method: 'get',
  8. params
  9. })
  10. }
  11. // 新增俱乐部
  12. export function addClubApi(data) {
  13. return request({
  14. url: '/people-bank-club/postClub',
  15. method: 'post',
  16. data
  17. })
  18. }
  19. // 编辑俱乐部
  20. export function editClubApi(data) {
  21. return request({
  22. url: '/people-bank-club/patchClub',
  23. method: 'patch',
  24. data
  25. })
  26. }
  27. // 删除俱乐部
  28. export function deleteClubApi(params) {
  29. return request({
  30. url: '/people-bank-club/deleteClubById',
  31. method: 'delete',
  32. params
  33. })
  34. }
  35. // 获取俱乐部详情
  36. export function getClubDetailApi(params){
  37. return request({
  38. url: '/people-bank-club/getClubById',
  39. method: "GET",
  40. params
  41. })
  42. }
  43. // 设置会员为管理
  44. export function patchClubMemberIsAdminApi(params){
  45. return request({
  46. url: '/people-bank-club-member/patchClubMemberIsAdmin',
  47. method: "PATCH",
  48. params
  49. })
  50. }
  51. // 获取会员列表
  52. export function getClubMemberApi(params){
  53. return request({
  54. url: '/people-bank-member/getMemberAll',
  55. method: "GET",
  56. params
  57. })
  58. }
  59. // 获取活动列表
  60. // 获取会员列表
  61. export function getActivitiesAllApi(params){
  62. return request({
  63. url: '/people-bank-activities/getActivitiesAll',
  64. method: "GET",
  65. params
  66. })
  67. }
  68. // 获取活动详情
  69. export function getActivityDetailApi(params){
  70. return request({
  71. url: '/people-bank-activities/getActivitiesById',
  72. method: "GET",
  73. params
  74. })
  75. }