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.
25 lines
506 B
25 lines
506 B
7 months ago
|
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 getStorageOutByDeviceId = (deviceId: number) =>
|
||
|
eamServer({
|
||
|
url: `/out-storage/get-by-device-id`,
|
||
|
method: 'get',
|
||
|
params: { deviceId },
|
||
|
})
|