import request from '@/utils/request'

export function listtask(params) {
  return request({
    url: '/api/admin/rule/index',
    method: 'get',
    params:params
  })
}

export function store(data) {
  return request({
    url: '/api/admin/rule/store',
    method: 'post',
    data
  })
}

export function save(data) {
  return request({
    url: '/api/admin/rule/save',
    method: 'post',
    data
  })
}

export function del(id) {
  return request({
    url: '/api/admin/rule/destroy',
    method: 'get',
    params: {
      id
    }
  })
}

export function get(id) {
  return request({
    url: '/api/admin/rule/show',
    method: 'get',
    params: {
      id
    }
  })
}

export function checksave(data) {
  return request({
    url: '/api/admin/rule/check-save',
    method: 'post',
    data
  })
}
