You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
736 B
37 lines
736 B
import { eamServer } from '../../index' |
|
|
|
export interface IStorageOutParam { |
|
id?: string |
|
customerId: string |
|
name: string |
|
description: string |
|
deviceId: number |
|
price: string |
|
} |
|
|
|
export const storageOutDevice = (params: IStorageOutParam) => |
|
eamServer({ |
|
url: `/device/out-storage`, |
|
method: 'post', |
|
data: params, |
|
}) |
|
|
|
export const getStorageByDeviceId = (deviceId: number) => |
|
eamServer({ |
|
url: `/storage/get-by-device-id`, |
|
method: 'get', |
|
params: { deviceId }, |
|
}) |
|
|
|
export const getStoragePage = (params: PageParam) => |
|
eamServer({ |
|
url: `/storage/page`, |
|
method: 'get', |
|
params, |
|
}) |
|
|
|
export const getStorageStatics = () => |
|
eamServer({ |
|
url: `/storage/statics`, |
|
method: 'get', |
|
})
|
|
|