import { request } from "@/utils/request";

export const getlistNew = (data) => {
    return request({
      url: `/ucenter/user/camera/listNew`,
      method: "post",
      data,
      config: {
        timeout: 10000,
        loading: true,//隐藏进度条
        headers: {
            "Content-Type": "application/json;charset=UTF-8",
        },
      },
    });
};

export const getsceneResourceList = (data) => {
    return request({
      url: `/ucenter/user/scene/cooperation/sceneResourceList`,
      method: "post",
      data,
      config: {
        timeout: 10000,
        loading: true,//隐藏进度条
        headers: {
          "Content-Type": "application/json;charset=UTF-8",
        },
      },
    });
};

export const deleteCooperationUser = (data) => {
    return request({
      url: `/ucenter/user/camera/deleteCooperationUser`,
      method: "post",
      data,
      config: {
        timeout: 10000,
        loading: true,//隐藏进度条
        headers: {
          "Content-Type": "application/json;charset=UTF-8",
        },
      },
    });
};

export const saveCooperationUser = (data) => {
    return request({
      url: `/ucenter/user/camera/saveCooperationUser`,
      method: "post",
      data,
      config: {
        timeout: 10000,
        loading: true,//隐藏进度条
        headers: {
          "Content-Type": "application/json;charset=UTF-8",
        },
      },
    });
};