import service from '@/utils/request'

// @Summary 获取列表数据
// @Produce  application/json
// @Router /cms/sensitiveWord/getList [post]
export const getSensitiveWordList = (data) => {
  return service({
    url: '/cms/sensitiveWord/getList',
    method: 'post',
    data
  })
}

// @Summary 新增
// @Produce  application/json
// @Param Object
// @Router /cms/sensitiveWord/add [post]
export const addSensitiveWord = (data) => {
  return service({
    url: '/cms/sensitiveWord/add',
    method: 'post',
    data
  })
}

// @Summary 删除
// @Produce  application/json
// @Param ID int
// @Router /cms/sensitiveWord/delete [delete]
export const deleteSensitiveWord = (data) => {
  return service({
    url: '/cms/sensitiveWord/delete',
    method: 'delete',
    data
  })
}
