CRMEB/template/admin/src/api/notification.js
2022-09-01 11:47:49 +08:00

56 lines
1.7 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2022 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------
import request from '@/libs/request';
/**
* @description 获取消息管理列表数据
* @param {Object} param params {Object} 传值参数
*/
export function getNotificationList(type) {
return request({
url: `setting/notification/index?type=${type}`,
method: 'get',
});
}
/**
* @description 获取消息管理设置数据获取
* @param {Object} param params {Object} 传值参数
*/
export function getNotificationInfo(id, type) {
return request({
url: `setting/notification/info?id=${id}&type=${type}`,
method: 'get',
});
}
/**
* @description 获取消息管理设置数据获取
* @param {Object} param params {Object} 传值参数
*/
export function getNotificationSave(data) {
return request({
url: `setting/notification/save`,
method: 'post',
data,
});
}
/**
* @description 设置站内消息
* @param {Number} param id {Number}
*/
export function noticeStatus(type, status, id) {
return request({
url: `setting/notification/set_status/${type}/${status}/${id}`,
method: 'put',
});
}