import request from '@/utils/request' // api地址 const api = { list: 'user/getFeedBack', shopList: 'store/getStore', add:'user/addFeedback', addFeedback: 'feedback/add', getMyFeedback: 'feedback/list', } // 我的反馈列表 export const list = (param, option) => { return request.get(api.list, param, option) } // 获取可用商户 export const shopList = (param, option) => { return request.get(api.shopList, param, option) } // 提交反馈 export const add=(data)=> { return request.post(api.add, data) } // 发布动态 export function addFeedback(param) { return request.post(api.addFeedback, { ...param }) } // 获取动态列表 export function getMyFeedback(param) { return request.get(api.getMyFeedback, { ...param }) }