You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
753 B
36 lines
753 B
5 months ago
|
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 })
|
||
|
}
|