import request from "@/utils/request.js";

// 上传绘制数据
export const getWhiteboardShapes = (data, room_uid) => {
    return request({
        url: `/api/v1/whiteboard/rooms/${room_uid}/shapes`,
        method: "put",
        data: data
    });
};

// 获取以往绘制数据
export const getWhiteboardHistory = (data, room_uid) => {
    return request({
        url: `/api/v1/whiteboard/rooms/${room_uid}/history`,
        method: "get",
        params: data
    });
};

//获取用户信息
// export const getWhiteboardHistory = (data, room_uid) => {
//     return request({
//         url: `/api/v1/user/self`,
//         method: "get",
//         params: data
//     });
// };
