mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-11-01 15:31:03 +00:00
56 lines
1.7 KiB
JavaScript
56 lines
1.7 KiB
JavaScript
// +----------------------------------------------------------------------
|
||
// | 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',
|
||
});
|
||
}
|