import request from '@/utils/request'

export function page (pageParam) {
  return request({
    url: '/tmerclub_admin/mp/notice/page',
    method: 'get',
    params: pageParam
  })
}

export function get (id) {
  return request({
    url: '/tmerclub_admin/mp/notice',
    method: 'get',
    params: {
      id
    }
  })
}

export function save (data) {
  return request({
    url: '/tmerclub_admin/mp/notice',
    method: 'post',
    data
  })
}

export function update (data) {
  return request({
    url: '/tmerclub_admin/mp/notice',
    method: 'put',
    data
  })
}

export function deleteById (id) {
  return request({
    url: '/tmerclub_admin/mp/notice',
    method: 'delete',
    params: {
      id
    }
  })
}
