You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1014 B
43 lines
1014 B
import request from '@/utils/request.js';
|
|
|
|
/**
|
|
* pubnotice 新增
|
|
* @param {Object} data
|
|
*/
|
|
export function pubnoticeCreateApi(data) {
|
|
return request.post('autogencode/pubnotice/save', data, { useAdminUrl: true });
|
|
}
|
|
|
|
/**
|
|
* pubnotice 更新
|
|
* @param {Object} data
|
|
*/
|
|
export function pubnoticeUpdateApi(data) {
|
|
return request.post('autogencode/pubnotice/update', data, { useAdminUrl: true });
|
|
}
|
|
|
|
/**
|
|
* pubnotice 详情
|
|
* @param {string} id noticeId
|
|
*/
|
|
export function pubnoticeDetailApi(id) {
|
|
return request.get(`autogencode/pubnotice/info/${id}`, {}, { useAdminUrl: true });
|
|
}
|
|
|
|
/**
|
|
* pubnotice 批量删除
|
|
* @param {string[]|string} ids
|
|
*/
|
|
export function pubnoticeDeleteApi(ids) {
|
|
return request.post('autogencode/pubnotice/delete', ids, { useAdminUrl: true });
|
|
}
|
|
|
|
/**
|
|
* pubnotice 列表
|
|
* @param {Object} params query params (page/limit + 各字段条件)
|
|
*/
|
|
export function pubnoticeListApi(params) {
|
|
return request.get('autogencode/pubnotice/list', params, { useAdminUrl: true });
|
|
}
|
|
|