{"size": 1445, "ext": "js", "max_stars_repo_path": "mine-ui/src/api/apis/system/notice.js", "max_stars_repo_name": "564104865/MineAdmin", "max_stars_repo_stars_event_min_datetime": "2021-10-17T01:58:09.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T08:08:33.000Z", "max_issues_repo_path": "mine-ui/src/api/apis/system/notice.js", "max_issues_repo_name": "564104865/MineAdmin", "max_issues_repo_issues_event_min_datetime": "2021-11-03T05:09:56.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-13T10:41:31.000Z", "max_forks_repo_path": "mine-ui/src/api/apis/system/notice.js", "max_forks_repo_name": "564104865/MineAdmin", "max_forks_repo_forks_event_min_datetime": "2021-12-20T10:02:58.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-31T04:29:47.000Z"}
{"max_stars_count": 18, "max_issues_count": 3, "max_forks_count": 6, "avg_line_length": 14.1666666667, "max_line_length": 45, "alphanum_fraction": 0.476816609}
import { request } from '@/utils/request.js'

/**
 * 系统公告 API JS
 */

export default {

  /**
   * 获取系统公告分页列表
   * @returns
   */
  getList (params = {}) {
    return request({
      url: 'system/notice/index',
      method: 'get',
      params
    })
  },

  /**
   * 从回收站获取系统公告数据列表
   * @returns
   */
  getRecycleList (params = {}) {
    return request({
      url: 'system/notice/recycle',
      method: 'get',
      params
    })
  },

  /**
   * 添加系统公告
   * @returns
   */
  save (params = {}) {
    return request({
      url: 'system/notice/save',
      method: 'post',
      data: params
    })
  },

  /**
   * 读取系统公告
   * @returns
   */
  read (params = {}) {
    return request({
      url: 'system/notice/read',
      method: 'post',
      data: params
    })
  },

  /**
   * 将系统公告移到回收站
   * @returns
   */
  deletes (ids) {
    return request({
      url: 'system/notice/delete/' + ids,
      method: 'delete'
    })
  },

  /**
   * 恢复系统公告数据
   * @returns
   */
  recoverys (ids) {
    return request({
      url: 'system/notice/recovery/' + ids,
      method: 'put'
    })
  },

  /**
   * 真实删除系统公告
   * @returns
   */
  realDeletes (ids) {
    return request({
      url: 'system/notice/realDelete/' + ids,
      method: 'delete'
    })
  },

  /**
   * 更新系统公告数据
   * @returns
   */
  update (id, params = {}) {
    return request({
      url: 'system/notice/update/' + id,
      method: 'put',
      data: params
    })
  }

}