import request from '@/utils/request'

export function getList(data) {
  return request({
    url: '/api/v1/scene/userlib/page',
    method: 'post',
    data
  })
}

export function add(data) {
  return request({
    url: '/api/v1/scene/userlib/add',
    method: 'post',
    // headers: { 'content-type': 'application/json' },
    data
  })
}

export function deleteById(id) {
  return request({
    url: `/api/v1/scene/userlib/del/${id}`,
    method: 'get'
  })
}
