import axios from 'axios'; /** * * @param 获取列表推广列表 * @returns */ export function lists(key: any) { key = key ? key : ""; return axios.post('/admin/api/v1/Promotion/list', { key }); } /** * * @param 生成推广链接 * @returns */ export function Generatelink() { return axios.post('/admin/api/v1/Promotion/Generatelink'); } /** * * @param 获取推广码详情 * @returns */ export function detailed(invite_code: any,start_date:any,end_date:any) { return axios.post('/admin/api/v1/Promotion/detailed',{invite_code,start_date,end_date}); }