60 lines
1.9 KiB
JavaScript
60 lines
1.9 KiB
JavaScript
const n4Sup = "Mitsubishi_JACE8000";
|
|
// dev
|
|
const baseApiUrl = "http://localhost:3604";
|
|
const baseImgUrl = "https://localhost:44376/upload/device_icon";
|
|
//production
|
|
// const baseApiUrl = "http://220.132.206.5";
|
|
// const baseImgUrl = "http://220.132.206.5:8848/upload/device_icon/";
|
|
// 登入
|
|
const loginBaseUrl = `${baseApiUrl}/api/Login/`;
|
|
const userAuthBaseUrl = `${baseApiUrl}/api/GetUsrFroList`;
|
|
const userInfoBaseUrl = `${baseApiUrl}/api/getUserFull`;
|
|
|
|
const forgeTokenBaseUrl = `${baseApiUrl}/api/forge/oauth/token`;
|
|
// post
|
|
const mainSubBaseUrl = `${baseApiUrl}/api/Device/GetMainSub`;
|
|
// 設備
|
|
const deviceBuiListBaseUrl = `${baseApiUrl}/api/Device/GetBuild`;
|
|
const deviceBuiMenuBaseUrl = `${baseApiUrl}/api/Device/GetBuildMenu`;
|
|
const deviceForgeInvBaseUrl = `${baseApiUrl}/api/Device/GetForgeInvType`;
|
|
const deviceFloorBaseUrl = `${baseApiUrl}/api/Device/GetFloor`;
|
|
const deviceNextFloorBaseUrl = `${baseApiUrl}/api/Device/GetNextFloor`;
|
|
const deviceListBaseUrl = `${baseApiUrl}/api/Device/GetDeviceList`;
|
|
// const deviceMainSubListBaseUrl = `${baseApiUrl}/api/Device/GetMainSub`; // 同 mainSubBaseUrl
|
|
const deviceForgeNodeIdBaseUrl = `${baseApiUrl}/api/Device/GetForgeNodeIdFromVar`;
|
|
const deviceHotPointBaseUrl = `${baseApiUrl}/api/GetDevForCor`;
|
|
|
|
// 電錶
|
|
const energyBaseUrl = `${baseApiUrl}/api/Energe/GetElecBySubSysTag`;
|
|
|
|
// 歷史
|
|
// post
|
|
const historyBaseUrl = `${baseApiUrl}/api/History/GetMainSub`;
|
|
const historyDeviceBaseUrl = `${baseApiUrl}/api/History/GetDevPoi`;
|
|
|
|
// 上傳檔案
|
|
const uploadFileBaseUrl = `${baseApiUrl}/api/Upload`;
|
|
|
|
export {
|
|
n4Sup,
|
|
baseApiUrl,
|
|
baseImgUrl,
|
|
loginBaseUrl,
|
|
userAuthBaseUrl,
|
|
userInfoBaseUrl,
|
|
forgeTokenBaseUrl,
|
|
mainSubBaseUrl,
|
|
deviceBuiListBaseUrl,
|
|
deviceBuiMenuBaseUrl,
|
|
deviceForgeInvBaseUrl,
|
|
deviceFloorBaseUrl,
|
|
deviceNextFloorBaseUrl,
|
|
deviceListBaseUrl,
|
|
deviceForgeNodeIdBaseUrl,
|
|
deviceHotPointBaseUrl,
|
|
energyBaseUrl,
|
|
historyBaseUrl,
|
|
historyDeviceBaseUrl,
|
|
uploadFileBaseUrl,
|
|
};
|