index.js 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  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: 'POST',
  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(data) {
  45. return request({
  46. url: '/people-bank-club-member/patchClubMemberIsAdmin',
  47. method: 'POST',
  48. data
  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. }
  76. // 修改会员信息
  77. export function editMemberApi(data) {
  78. return request({
  79. url: '/people-bank-member/patchMember',
  80. method: 'POST',
  81. data
  82. })
  83. }
  84. // 创建活动
  85. export function createActivityApi(data) {
  86. return request({
  87. url: '/people-bank-activities/postPeopleBankActivities',
  88. method: 'POST',
  89. data
  90. })
  91. }
  92. // 创建活动
  93. export function deleteActivityApi(params) {
  94. return request({
  95. url: '/people-bank-activities/deletePeopleBankActivitiesById',
  96. method: 'DELETE',
  97. params
  98. })
  99. }
  100. // 修改活动信息
  101. export function patchPeopleBankActivitiesByIdApi(data) {
  102. return request({
  103. url: '/people-bank-activities/patchPeopleBankActivitiesById',
  104. method: 'POST',
  105. data
  106. })
  107. }
  108. // 获取会员详情
  109. export function getMemberByMemberIdApi(params) {
  110. return request({
  111. url: '/people-bank-member/getMemberByMemberId',
  112. method: 'GET',
  113. params
  114. })
  115. }
  116. // 修改会员在俱乐部中的信息
  117. export function patchClubMemberApi(data) {
  118. return request({
  119. url: '/people-bank-club-member/patchClubMember',
  120. method: 'POST',
  121. data
  122. })
  123. }
  124. // 获取会员身份列表
  125. export function getClubIdentityListApi(params) {
  126. return request({
  127. url: '/people-bank-club-member/getClubIdentityList',
  128. method: 'GET',
  129. params
  130. })
  131. }
  132. // 设置联盟卡为俱乐部默认卡
  133. export function setOrCancelAllianceCardIsClubApi(data) {
  134. return request({
  135. url: '/alliance-card/setOrCancelAllianceCardIsClub',
  136. method: 'POST',
  137. data
  138. })
  139. }
  140. // 商家分红列表
  141. export function getShopDividendSettingsAllApi(params) {
  142. return request({
  143. url: '/people-bank-shop-dividend-settings/getShopDividendSettingsAll',
  144. method: 'GET',
  145. params
  146. })
  147. }
  148. // 创建分红
  149. export function postShopDividendSettingsApi(data) {
  150. return request({
  151. url: '/people-bank-shop-dividend-settings/postShopDividendSettings',
  152. method: 'POST',
  153. data
  154. })
  155. }
  156. // 编辑商家分红
  157. export function patchShopDividendSettingsByIdApi(data) {
  158. return request({
  159. url: '/people-bank-shop-dividend-settings/patchShopDividendSettingsById',
  160. method: 'POST',
  161. data
  162. })
  163. }
  164. // 删除商家分红
  165. export function deleteShopDividendSettingsByIdApi(params) {
  166. return request({
  167. url: '/people-bank-shop-dividend-settings/deleteShopDividendSettingsById',
  168. method: 'DELETE',
  169. params
  170. })
  171. }
  172. // 获取商家分红详情
  173. export function getShopDividendSettingsByIdApi(params) {
  174. return request({
  175. url: '/people-bank-shop-dividend-settings/getShopDividendSettingsById',
  176. method: 'GET',
  177. params
  178. })
  179. }