import { url } from '@/tripartite/buildBigScreen/src/config';
import request from '../axios'
export const getList = (params) => request({
  url: url + 'bigScreen/bladeVisualCategory/v1/listJson',
  method: 'post',
  params: params
});



export const getObj = (id) => request({
  url: url + 'category/detail',
  method: 'get',
  params: {
    id
  }
});

export const addObj = (data) => request({
  url: url + 'category/save',
  method: 'post',
  data: data
});
export const updateObj = (data) => request({
  url: url + 'category/update',
  method: 'post',
  data: data
});



export const delObj = (id) => request({
  url: url + 'category/remove',
  method: 'post',
  params: {
    ids: id
  }
});