123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- import request from '@/utils/request'
- // 查询公告列表
- export function listNotice (query) {
- return request({
- url: '/system/notice/page',
- method: 'get',
- params: query
- })
- }
- // 查询公告详细
- export function getNotice (noticeId) {
- return request({
- url: '/system/notice/' + noticeId,
- method: 'get'
- })
- }
- // 新增公告
- export function saveNotice (data) {
- return request({
- url: '/system/notice',
- method: 'post',
- data: data
- })
- }
- // 删除公告
- export function delNotice (noticeId) {
- return request({
- url: '/system/notice/' + noticeId,
- method: 'delete'
- })
- }
- // 查看页面查询公告详细
- export function getNoticeView (noticeId) {
- return request({
- url: '/system/notice/getNoticeView/' + noticeId,
- method: 'get'
- })
- }
- // 查询个人公告阅读列表
- export function listNoticeByUser (query) {
- return request({
- url: '/system/notice/listNoticeByUser/page',
- method: 'get',
- params: query
- })
- }
- // 新增公告
- export function updateNoticeToRead (noticeIds) {
- return request({
- url: '/system/notice/updateNoticeToRead/' + noticeIds,
- method: 'put'
- })
- }
|