41 lines
558 B
JavaScript
41 lines
558 B
JavaScript
|
|
/**
|
|
* Web-zdx
|
|
* moduleName: 消息中心
|
|
*/
|
|
|
|
import {
|
|
request
|
|
} from '../index'
|
|
|
|
|
|
|
|
// 意见反馈通知列表
|
|
const list = (type,data) => {
|
|
return request({
|
|
url: 'notifications/'+type+'/list',
|
|
data:data,
|
|
})
|
|
}
|
|
// 意见反馈 详情
|
|
const detail = (notification_id) => {
|
|
return request({
|
|
url: 'notifications/'+notification_id,
|
|
})
|
|
}
|
|
|
|
// 全部已读
|
|
const readAll = (type) => {
|
|
return request({
|
|
url: 'notifications/'+type,
|
|
method:'PUT',
|
|
})
|
|
}
|
|
|
|
|
|
export {
|
|
list,
|
|
detail,
|
|
readAll,
|
|
}
|