意见反馈消息列表模式
This commit is contained in:
40
apis/interfaces/news.js
Normal file
40
apis/interfaces/news.js
Normal file
@@ -0,0 +1,40 @@
|
||||
|
||||
/**
|
||||
* 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,
|
||||
}
|
||||
Reference in New Issue
Block a user