同步6/16
This commit is contained in:
@@ -61,3 +61,45 @@ export const delTopupRecord = (id: string | number | Array<string | number>) =>
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
|
||||
export type TopupRecordList = {
|
||||
'id': string;
|
||||
'rechargeTime': string;
|
||||
'villageName': string;
|
||||
'residentName': string;
|
||||
'houseName': string;
|
||||
'fixedPriceUnit': string;
|
||||
'fixedPrice': string;
|
||||
'unit': string;
|
||||
'deviceCode': string;
|
||||
'orderId': string;
|
||||
'rechargeAmount': string;
|
||||
'topUpType': string;
|
||||
};
|
||||
/** 查询所有设备充值记录 */
|
||||
export const getTopupRecordByDate = (query: {
|
||||
startTime?: string;
|
||||
endTime?: string;
|
||||
pageSize: number;
|
||||
pageNum: number;
|
||||
}): AxiosPromise<TopupRecordList[]> => {
|
||||
return request({
|
||||
url: '/topupRecord/water/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/** 查询所有电表充值记录 */
|
||||
export const getElectricityTopupRecordByDate = (query: {
|
||||
startTime?: string;
|
||||
endTime?: string;
|
||||
pageSize: number;
|
||||
pageNum: number;
|
||||
}): AxiosPromise<TopupRecordList[]> => {
|
||||
return request({
|
||||
url: '/topupRecord/electricity/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user