package com.erp.common.core.event;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.time.LocalDateTime;

/**
 * 库存变动确认事件 - 库存实际出库/入库完成后发布
 * 与com.erp.inventory.event.StockChangedEvent区分，此为应用层事件
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class StockChangedApplicationEvent {
    private String eventType;   // outbound / inbound / adjust
    private String skuCode;
    private Long warehouseId;
    private Integer quantity;
    private String relatedNo;   // 关联单号（订单号/采购单号等）
    private LocalDateTime eventTime;
}
