You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
548 B
JavaScript
25 lines
548 B
JavaScript
import request from '@/utils/request'
|
|
|
|
// api地址
|
|
const api = {
|
|
getOne: 'clientApi/message/getOne',
|
|
readed: 'clientApi/message/readed',
|
|
getSubTemplate: 'clientApi/message/getSubTemplate'
|
|
}
|
|
|
|
// 读取最新的一条消息
|
|
export const getOne = (param, option) => {
|
|
return request.get(api.getOne, param)
|
|
}
|
|
|
|
// 将消息置为已读
|
|
export const readed = (param) => {
|
|
return request.get(api.readed, param)
|
|
}
|
|
|
|
// 获取订阅消息模板
|
|
export const getSubTemplate = (param, option) => {
|
|
return request.get(api.getSubTemplate, param)
|
|
}
|
|
|