7/13 水电表解绑房屋
This commit is contained in:
@@ -85,3 +85,14 @@ export const getElectricityDeviceTimeRangeUsedWater = (data: { deviceCode: strin
|
||||
data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 电表解绑房屋
|
||||
* @param { string } deviceCode
|
||||
*/
|
||||
export const ElectricityDeviceUnbind = (deviceCode: string) => {
|
||||
return request({
|
||||
url: `/electricityDevice/unbind/${deviceCode}`,
|
||||
method: 'PUT'
|
||||
});
|
||||
};
|
||||
|
||||
@@ -107,3 +107,14 @@ export const latestRecord = (deviceCodes: string) => {
|
||||
method: 'GET'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 解绑设备绑定的房屋
|
||||
* @param deviceCode
|
||||
*/
|
||||
export const waterDeviceUnbind = (deviceCode: string) => {
|
||||
return request({
|
||||
url: `/waterDevice/unbind/${deviceCode}`,
|
||||
method: 'PUT'
|
||||
});
|
||||
};
|
||||
|
||||
@@ -63,9 +63,9 @@ export const delVersion = (id: string | number | Array<string | number>) => {
|
||||
};
|
||||
|
||||
/** 获取过往版本 */
|
||||
export const getPastVersion = (platform: string, channel: string) => {
|
||||
export const getPastVersion = (platform: string, appChannel: string, channel: string = 'xiaomi') => {
|
||||
return request({
|
||||
url: `/api/app/getPastVersion?platform=${platform}&channel=${channel}`,
|
||||
url: `/api/app/getPastVersion?platform=${platform}&appChannel=${appChannel}&channel=${channel}`,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
@@ -64,6 +64,12 @@ export interface VersionVO {
|
||||
}
|
||||
|
||||
export interface VersionForm extends BaseEntity {
|
||||
/**
|
||||
* 更新app端
|
||||
* butler 管家端
|
||||
* resident 业主端
|
||||
*/
|
||||
appChannel: string;
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@@ -115,12 +121,6 @@ export interface VersionForm extends BaseEntity {
|
||||
* 0-禁用 1-启用
|
||||
*/
|
||||
status?: number;
|
||||
|
||||
/**
|
||||
* 更新app端
|
||||
* butler 管家端
|
||||
* resident 业主端
|
||||
*/
|
||||
channel?: string;
|
||||
}
|
||||
|
||||
@@ -140,11 +140,6 @@ export interface VersionQuery extends PageQuery {
|
||||
*/
|
||||
versionName?: string;
|
||||
|
||||
/**
|
||||
* 最低支持版本
|
||||
*/
|
||||
minVersionCode?: number;
|
||||
|
||||
/**
|
||||
* optional/force
|
||||
*/
|
||||
@@ -155,15 +150,6 @@ export interface VersionQuery extends PageQuery {
|
||||
*/
|
||||
downloadUrl?: string;
|
||||
|
||||
/**
|
||||
* 更新日志
|
||||
*/
|
||||
releaseNotes?: string;
|
||||
|
||||
/**
|
||||
* 文件大小(MB)
|
||||
*/
|
||||
fileSize?: string;
|
||||
|
||||
/**
|
||||
* 0-禁用 1-启用
|
||||
@@ -171,12 +157,14 @@ export interface VersionQuery extends PageQuery {
|
||||
status?: number;
|
||||
|
||||
/**
|
||||
* 更新app端
|
||||
* 更
|
||||
*/
|
||||
channel?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
* 更新app端
|
||||
* butler 管家端
|
||||
* resident 业主端
|
||||
*/
|
||||
params?: any;
|
||||
appChannel: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user