feat/device-order: final
This commit is contained in:
No files matched your search
@@ -1,16 +1,19 @@
|
||||
import { type Base, genBase } from "./_base"
|
||||
import { genDevice, type Device } from "./device"
|
||||
|
||||
export interface DeviceOrderItem extends Base {
|
||||
deviceOrder_id: number
|
||||
device_id: number
|
||||
count: number
|
||||
device_code: string
|
||||
device: Device
|
||||
quantity: number
|
||||
}
|
||||
|
||||
export function genDeviceOrderItem(): DeviceOrderItem {
|
||||
return {
|
||||
...genBase(),
|
||||
deviceOrder_id: 0,
|
||||
device_id: 0,
|
||||
count: 0,
|
||||
device_code: '',
|
||||
device: genDevice(),
|
||||
quantity: 0,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user