import { EntityStatus } from "@etsoo/appscript"; import { AssetData } from "../../dto/asset/AssetData"; /** * Create asset request data * 创建资产请求数据 */ export type AssetCreateRQ = { /** * Person (owner) id * 所有者编号 */ personId: number; /** * Product id * 产品编号 */ productId: number; /** * Supplier id * 供应商编号 */ supplierId?: number; /** * Serial number * 序列号 */ sn: string; /** * Description * 描述 */ description?: string; /** * Expiry * 到期时间 */ expiry: string | Date; /** * Expiry check * 到期检查 */ expiryCheck?: boolean; /** * Remaining times * 剩余次数 */ times?: number; /** * Remaining amount * 剩余金额 */ amount?: number; /** * Sensitive data * 敏感数据 */ sensitiveData?: string; /** * Health check URL * 健康检查网址 */ healthCheckUrl?: string; /** * JSON data * JSON 数据 */ data?: AssetData; /** * Status * 状态 */ status?: EntityStatus; };