mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-09-17 19:06:39 +08:00
75 lines
2.0 KiB
JavaScript
75 lines
2.0 KiB
JavaScript
/*
|
|
* @Description: 公告信息、企业动态
|
|
* @version:
|
|
* @Author: zhuoda
|
|
* @Date: 2022-08-16 20:34:36
|
|
*/
|
|
import { postRequest, getRequest } from '/@/lib/axios';
|
|
|
|
export const noticeApi = {
|
|
// ---------------- 通知公告类型 -----------------------
|
|
|
|
// 通知公告类型-获取全部 @author zhuoda
|
|
getAllNoticeTypeList() {
|
|
return getRequest('/oa/noticeType/getAll');
|
|
},
|
|
|
|
// 通知公告类型-添加 @author zhuoda
|
|
addNoticeType(name) {
|
|
return getRequest(`/oa/noticeType/add/${name}`);
|
|
},
|
|
|
|
// 通知公告类型-修改 @author zhuoda
|
|
updateNoticeType(noticeTypeId, name) {
|
|
return getRequest(`/oa/noticeType/update/${noticeTypeId}/${name}`);
|
|
},
|
|
// 通知公告类型-删除 @author zhuoda
|
|
deleteNoticeType(noticeTypeId) {
|
|
return getRequest(`/oa/noticeType/delete/${noticeTypeId}`);
|
|
},
|
|
|
|
// ---------------- 通知公告管理 -----------------------
|
|
|
|
// 通知公告-分页查询 @author zhuoda
|
|
queryNotice(param) {
|
|
return postRequest('/oa/notice/query', param);
|
|
},
|
|
|
|
// 通知公告-添加 @author zhuoda
|
|
addNotice(param) {
|
|
return postRequest('/oa/notice/add', param);
|
|
},
|
|
|
|
// 通知公告-更新 @author zhuoda
|
|
updateNotice(param) {
|
|
return postRequest('/oa/notice/update', param);
|
|
},
|
|
|
|
// 通知公告-删除 @author zhuoda
|
|
deleteNotice(noticeId) {
|
|
return getRequest(`/oa/notice/delete/${noticeId}`);
|
|
},
|
|
|
|
// 通知公告-更新详情 @author zhuoda
|
|
getUpdateNoticeInfo(noticeId) {
|
|
return getRequest(`/oa/notice/getUpdateVO/${noticeId}`);
|
|
},
|
|
|
|
// --------------------- 【员工】查看 通知公告 -------------------------
|
|
|
|
// 通知公告-员工-查看详情 @author zhuoda
|
|
view(noticeId) {
|
|
return getRequest(`/oa/notice/employee/view/${noticeId}`);
|
|
},
|
|
|
|
// 通知公告-员工-查询 @author zhuoda
|
|
queryEmployeeNotice(param) {
|
|
return postRequest('/oa/notice/employee/query', param);
|
|
},
|
|
|
|
// 【员工】通知公告-查询 查看记录 @author zhuoda
|
|
queryViewRecord(param) {
|
|
return postRequest('/oa/notice/employee/queryViewRecord', param);
|
|
},
|
|
};
|