/** * 装饰器值映射完整示例 * * 本示例演示如何使用 @AuditField 装饰器的 valueLabels 功能 * 实现字段值的多语言显示和映射 */ export declare class ProductEntity { id: string; name: string; price: number; costPrice: number; stock: number; status: string; isFeatured: boolean; productType: string; internalNotes: string; supplierCode: string; } export declare class OrderEntity { orderSn: string; totalAmount: number; orderStatus: string; paymentStatus: string; shippingMethod: string; customerPhone: string; customerEmail: string; } export declare class UserEntity { username: string; email: string; phone: string; status: string; role: string; emailNotificationEnabled: boolean; smsNotificationEnabled: boolean; gender: string; password: string; } export declare class InventoryEntity { productCode: string; availableStock: number; lockedStock: number; totalStock: number; stockStatus: string; } /** * 当产品状态从 'active' 变为 'out_of_stock' 时, * 审计日志的 changeDetails 会显示: * * 中文 (language=zh): * { * "fieldName": "状态", * "changeType": "modified", * "displayOldValue": "在售", * "displayNewValue": "缺货", * "oldValue": "active", * "newValue": "out_of_stock" * } * * 英文 (language=en): * { * "fieldName": "Status", * "changeType": "modified", * "displayOldValue": "Active", * "displayNewValue": "Out of Stock", * "oldValue": "active", * "newValue": "out_of_stock" * } */ export {};