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', })