|
@@ -5,38 +5,38 @@ function commonParams() {
|
|
|
// &userId=9a1ecfbacb6b4f249bf2dd3ec7793ead`;
|
|
|
}
|
|
|
function getProjectId() {
|
|
|
- return 'Pj1101080259';
|
|
|
+ return 'Pj1101080259';
|
|
|
}
|
|
|
|
|
|
//窗帘 设置设备
|
|
|
//窗帘 设置设备
|
|
|
-export const setEquipeHttp = (params)=> {
|
|
|
- return request(`/server/object/eqp/infocode/set?${commonParams()}`,{
|
|
|
- method: 'POST',
|
|
|
- isNotShowErrorToast: true,
|
|
|
- errorSave: true,
|
|
|
- data: JSON.stringify(params),
|
|
|
- headers: {
|
|
|
- 'Content-Type': 'application/json',
|
|
|
- },
|
|
|
+export const setEquipeHttp = (params) => {
|
|
|
+ return request(`/api/duoduo-service/duoduoenv-service/object/eqp/infocode/set?${commonParams()}`, {
|
|
|
+ method: 'POST',
|
|
|
+ isNotShowErrorToast: true,
|
|
|
+ errorSave: true,
|
|
|
+ data: JSON.stringify(params),
|
|
|
+ headers: {
|
|
|
+ 'Content-Type': 'application/json',
|
|
|
+ },
|
|
|
});
|
|
|
- }
|
|
|
+}
|
|
|
|
|
|
//窗帘 获取设备
|
|
|
export const getObjectDataEqpGroupHttp = (params) => {
|
|
|
- return request(`/server/object/objectDataEqpGroup/query?${commonParams()}`, {
|
|
|
- method: 'POST',
|
|
|
- isNotShowErrorToast: true,
|
|
|
- errorSave: true,
|
|
|
- data: JSON.stringify(params),
|
|
|
- });
|
|
|
+ return request(`/api/duoduo-service/duoduoenv-service/object/objectDataEqpGroup/query?${commonParams()}`, {
|
|
|
+ method: 'POST',
|
|
|
+ isNotShowErrorToast: true,
|
|
|
+ errorSave: true,
|
|
|
+ data: JSON.stringify(params),
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 灯的状态
|
|
|
export const getLampHttp = (params) => {
|
|
|
- return request(`/server/light/status/query?${commonParams()}&spaceId=${params}`, {
|
|
|
+ return request(`/api/duoduo-service/duoduoenv-service/light/status/query?${commonParams()}&spaceId=${params}`, {
|
|
|
isNotShowErrorToast: true,
|
|
|
errorSave: true,
|
|
|
method: 'GET',
|
|
@@ -49,34 +49,34 @@ export const getLampHttp = (params) => {
|
|
|
|
|
|
// 批量 开关灯
|
|
|
export const setallLampHttp = (params) => {
|
|
|
- return request(`/server/light/onoff/set?${commonParams()}`, {
|
|
|
- method: 'POST',
|
|
|
- isNotShowErrorToast: true,
|
|
|
- errorSave: true,
|
|
|
- data: JSON.stringify(params),
|
|
|
- headers: {
|
|
|
- 'Content-Type': 'application/json',
|
|
|
- },
|
|
|
- });
|
|
|
+ return request(`/api/duoduo-service/duoduoenv-service/light/onoff/set?${commonParams()}`, {
|
|
|
+ method: 'POST',
|
|
|
+ isNotShowErrorToast: true,
|
|
|
+ errorSave: true,
|
|
|
+ data: JSON.stringify(params),
|
|
|
+ headers: {
|
|
|
+ 'Content-Type': 'application/json',
|
|
|
+ },
|
|
|
+ });
|
|
|
};
|
|
|
|
|
|
// 开关失败时 定时查询灯状态
|
|
|
export const getStatusHttp = (params) => {
|
|
|
- return request(`/server/light/onoff/setSatus?${commonParams()}`, {
|
|
|
- method: 'POST',
|
|
|
- isNotShowErrorToast: true,
|
|
|
- errorSave: true,
|
|
|
- data: JSON.stringify(params),
|
|
|
- headers: {
|
|
|
- 'Content-Type': 'application/json',
|
|
|
- },
|
|
|
- });
|
|
|
+ return request(`/api/duoduo-service/duoduoenv-service/light/onoff/setSatus?${commonParams()}`, {
|
|
|
+ method: 'POST',
|
|
|
+ isNotShowErrorToast: true,
|
|
|
+ errorSave: true,
|
|
|
+ data: JSON.stringify(params),
|
|
|
+ headers: {
|
|
|
+ 'Content-Type': 'application/json',
|
|
|
+ },
|
|
|
+ });
|
|
|
};
|
|
|
|
|
|
|
|
|
// 空调 - 调节文案/空调信息
|
|
|
export const getFeedbackDocumentsHttp = (params) => {
|
|
|
- return request(`/server/custom/feedback/documents?${commonParams()}`, {
|
|
|
+ return request(`/api/duoduo-service/duoduoenv-service/custom/feedback/documents?${commonParams()}`, {
|
|
|
isNotShowErrorToast: true,
|
|
|
errorSave: true,
|
|
|
method: 'POST',
|
|
@@ -89,7 +89,7 @@ export const getFeedbackDocumentsHttp = (params) => {
|
|
|
|
|
|
// 空调 调节
|
|
|
export const changeAirHttp = (params) => {
|
|
|
- return request(`/server/custom/feedbackCreate/v2?${commonParams()}`, {
|
|
|
+ return request(`/api/duoduo-service/duoduoenv-service/custom/feedbackCreate/v2?${commonParams()}`, {
|
|
|
method: 'POST',
|
|
|
isNotShowErrorToast: true,
|
|
|
errorSave: true,
|
|
@@ -102,7 +102,7 @@ export const changeAirHttp = (params) => {
|
|
|
|
|
|
// 空间环境质量
|
|
|
export const getSpaceAdjustList = (params) => {
|
|
|
- return request(`/server/space/property?${commonParams()}`, {
|
|
|
+ return request(`/api/duoduo-service/duoduoenv-service/space/property?${commonParams()}`, {
|
|
|
method: 'POST',
|
|
|
isNotShowErrorToast: true,
|
|
|
errorSave: true,
|
|
@@ -114,7 +114,7 @@ export const getSpaceAdjustList = (params) => {
|
|
|
}
|
|
|
// 批量空调 调节
|
|
|
export const changeAllAirHttp = (body) => {
|
|
|
- return request(`/server/custom/feedbackCreate/v2Batch?${commonParams()}`, {
|
|
|
+ return request(`/api/duoduo-service/duoduoenv-service/custom/feedbackCreate/v2Batch?${commonParams()}`, {
|
|
|
method: 'POST',
|
|
|
isNotShowErrorToast: true,
|
|
|
errorSave: true,
|