//import { defHttp } from '/@/utils/http/axios';
//import { Result } from '/#/axios';
import axios from 'axios';
import { getToken } from '/@/utils/auth';
const token = getToken();

const config = {
  headers: {
    'Content-Type': 'application/json;charset=UTF-8',
    fdToken: token,
  },
};
let url = '//testlaser-jp.4dkankan.com/backend';
if (!window.location.host.includes('test')) {
  url = '//mega.4dkankan.jp/backend';
}
enum Api {
  sceneDetail = url + '/laser/4dage/sceneDetail',
  buildSceneObj = url + '/laser/4dage/scene/buildSceneObj',
}

/**
 * @description: Get sample list value
 */

export const sceneDetail = (params) => axios.post(Api.sceneDetail, params, config);
// axios.post(Api.sceneDetail, params, { ...config, data: params });

export const buildSceneObj = (params) => axios.post(Api.buildSceneObj, params, config);
