Blame view

ruoyi-ui/src/api/system/notice.js 832 Bytes
46444bd0   RuoYi   RuoYi-Vue 1.0
1
2
3
4
5
  import request from '@/utils/request'

  

  // 查询公告列表

  export function listNotice(query) {

    return request({

6a36fe65   YunaiV   1. 基本完成通知模块的迁移
6
      url: '/system/notice/page',

46444bd0   RuoYi   RuoYi-Vue 1.0
7
8
9
10
11
12
13
14
      method: 'get',

      params: query

    })

  }

  

  // 查询公告详细

  export function getNotice(noticeId) {

    return request({

6a36fe65   YunaiV   1. 基本完成通知模块的迁移
15
      url: '/system/notice/get?id=' + noticeId,

46444bd0   RuoYi   RuoYi-Vue 1.0
16
17
18
19
20
21
22
      method: 'get'

    })

  }

  

  // 新增公告

  export function addNotice(data) {

    return request({

6a36fe65   YunaiV   1. 基本完成通知模块的迁移
23
      url: '/system/notice/create',

46444bd0   RuoYi   RuoYi-Vue 1.0
24
25
26
27
28
29
30
31
      method: 'post',

      data: data

    })

  }

  

  // 修改公告

  export function updateNotice(data) {

    return request({

6a36fe65   YunaiV   1. 基本完成通知模块的迁移
32
      url: '/system/notice/update',

f4818d26   YunaiV   整理 permission、use...
33
      method: 'put',

46444bd0   RuoYi   RuoYi-Vue 1.0
34
35
36
37
38
39
40
      data: data

    })

  }

  

  // 删除公告

  export function delNotice(noticeId) {

    return request({

6a36fe65   YunaiV   1. 基本完成通知模块的迁移
41
      url: '/system/notice/delete?id=' + noticeId,

f4818d26   YunaiV   整理 permission、use...
42
      method: 'delete'

46444bd0   RuoYi   RuoYi-Vue 1.0
43
    })

6a36fe65   YunaiV   1. 基本完成通知模块的迁移
44
  }