import ajax from './ajax'
import { LOCATION_URL } from '@/config/config'

// 1. 定义基础路径
// const BASE_URL = '/huiqicha'
const BASE_URL = LOCATION_URL

// 营销任务列表
export const marketlist = (params) => ajax(BASE_URL + `/market/list?custInfo=${params.custInfo}&status=${params.status}&pageNum=${params.pageNum}&pageSize=${params.pageSize}`, {}, 'GET');

//更新营销任务列表清单
export const marketlistedit = (params) => ajax(BASE_URL + '/market/list/edit', params, 'POST');

// 营销任务已读
export const marketread = (params) => ajax(BASE_URL + `/market/read?id=${params.id}`, {}, 'POST');