import request from '@/utils/request'

// 查询聊天过滤列表
export function listUserChatFilter(query) {
  return request({
    url: '/cai/userChatFilter/list',
    method: 'get',
    params: query
  })
}

// 查询聊天过滤详细
export function getUserChatFilter(id) {
  return request({
    url: '/cai/userChatFilter/' + id,
    method: 'get'
  })
}

// 新增聊天过滤
export function addUserChatFilter(data) {
  return request({
    url: '/cai/userChatFilter',
    method: 'post',
    data: data
  })
}

// 修改聊天过滤
export function updateUserChatFilter(data) {
  return request({
    url: '/cai/userChatFilter',
    method: 'put',
    data: data
  })
}

// 删除聊天过滤
export function delUserChatFilter(id) {
  return request({
    url: '/cai/userChatFilter/' + id,
    method: 'delete'
  })
}
