<reponame>gao-hub/cr-parking-admin<gh_stars>0
import request from '@/utils/request';
import { _baseApi } from '@/defaultSettings.js';

// 获取兑换活动详情
export async function getExchangeInfo(params) {
  return request(`${_baseApi}/activityCode/info`, {
    method: 'POST',
    body: params,
  });
}

// 兑换活动新增
export async function addExchange(params) {
  return request(`${_baseApi}/activityCode/add`, {
    method: 'POST',
    body: params,
  });
}

// 编辑兑换活动
export async function editExchange(params) {
  return request(`${_baseApi}/activityCode/update`, {
    method: 'POST',
    body: params,
  });
}
