123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201 |
- import request from '@/utils/request'
- // api docs: https://www.showdoc.com.cn/2598833910230611/11558452686114862
- // 查询俱乐部列表
- export function getClubListApi(params) {
- return request({
- url: '/people-bank-club/getClubAll',
- method: 'get',
- params
- })
- }
- // 新增俱乐部
- export function addClubApi(data) {
- return request({
- url: '/people-bank-club/postClub',
- method: 'post',
- data
- })
- }
- // 编辑俱乐部
- export function editClubApi(data) {
- return request({
- url: '/people-bank-club/patchClub',
- method: 'POST',
- data
- })
- }
- // 删除俱乐部
- export function deleteClubApi(params) {
- return request({
- url: '/people-bank-club/deleteClubById',
- method: 'delete',
- params
- })
- }
- // 获取俱乐部详情
- export function getClubDetailApi(params) {
- return request({
- url: '/people-bank-club/getClubById',
- method: 'GET',
- params
- })
- }
- // 设置会员为管理
- export function patchClubMemberIsAdminApi(data) {
- return request({
- url: '/people-bank-club-member/patchClubMemberIsAdmin',
- method: 'POST',
- data
- })
- }
- // 获取会员列表
- export function getClubMemberApi(params) {
- return request({
- url: '/people-bank-member/getMemberAll',
- method: 'GET',
- params
- })
- }
- // 获取活动列表
- // 获取会员列表
- export function getActivitiesAllApi(params) {
- return request({
- url: '/people-bank-activities/getActivitiesAll',
- method: 'GET',
- params
- })
- }
- // 获取活动详情
- export function getActivityDetailApi(params) {
- return request({
- url: '/people-bank-activities/getActivitiesById',
- method: 'GET',
- params
- })
- }
- // 修改会员信息
- export function editMemberApi(data) {
- return request({
- url: '/people-bank-member/patchMember',
- method: 'POST',
- data
- })
- }
- // 创建活动
- export function createActivityApi(data) {
- return request({
- url: '/people-bank-activities/postPeopleBankActivities',
- method: 'POST',
- data
- })
- }
- // 创建活动
- export function deleteActivityApi(params) {
- return request({
- url: '/people-bank-activities/deletePeopleBankActivitiesById',
- method: 'DELETE',
- params
- })
- }
- // 修改活动信息
- export function patchPeopleBankActivitiesByIdApi(data) {
- return request({
- url: '/people-bank-activities/patchPeopleBankActivitiesById',
- method: 'POST',
- data
- })
- }
- // 获取会员详情
- export function getMemberByMemberIdApi(params) {
- return request({
- url: '/people-bank-member/getMemberByMemberId',
- method: 'GET',
- params
- })
- }
- // 修改会员在俱乐部中的信息
- export function patchClubMemberApi(data) {
- return request({
- url: '/people-bank-club-member/patchClubMember',
- method: 'POST',
- data
- })
- }
- // 获取会员身份列表
- export function getClubIdentityListApi(params) {
- return request({
- url: '/people-bank-club-member/getClubIdentityList',
- method: 'GET',
- params
- })
- }
- // 设置联盟卡为俱乐部默认卡
- export function setOrCancelAllianceCardIsClubApi(data) {
- return request({
- url: '/alliance-card/setOrCancelAllianceCardIsClub',
- method: 'POST',
- data
- })
- }
- // 商家分红列表
- export function getShopDividendSettingsAllApi(params) {
- return request({
- url: '/people-bank-shop-dividend-settings/getShopDividendSettingsAll',
- method: 'GET',
- params
- })
- }
- // 创建分红
- export function postShopDividendSettingsApi(data) {
- return request({
- url: '/people-bank-shop-dividend-settings/postShopDividendSettings',
- method: 'POST',
- data
- })
- }
- // 编辑商家分红
- export function patchShopDividendSettingsByIdApi(data) {
- return request({
- url: '/people-bank-shop-dividend-settings/patchShopDividendSettingsById',
- method: 'POST',
- data
- })
- }
- // 删除商家分红
- export function deleteShopDividendSettingsByIdApi(params) {
- return request({
- url: '/people-bank-shop-dividend-settings/deleteShopDividendSettingsById',
- method: 'DELETE',
- params
- })
- }
- // 获取商家分红详情
- export function getShopDividendSettingsByIdApi(params) {
- return request({
- url: '/people-bank-shop-dividend-settings/getShopDividendSettingsById',
- method: 'GET',
- params
- })
- }
|