mirror of
https://gitee.com/pnoker/iot-dc3.git
synced 2026-09-01 15:33:10 +08:00
b3ee76f893
Align CommandHistory/PointCommandHistory with the EventHistory pattern: DB stores the enum index (SMALLINT via @EnumValue), gRPC carries int32, JSON keeps enum name. Removes the lone string-code outlier in the schema. - DO status/type/source: String code -> enum types - VO type/source: String -> enum (status already enum); JSON stays name - Builder: drop ofCode @AfterMapping (DO and VO now share enum type) - RabbitMQ DTOs (CommandCall/PointCommandResult): status/source -> enum - driver sendResult signatures: String status -> PointCommandStatusEnum - gRPC command_history.proto status/source: string -> int32; server uses getIndex()/ofIndex() to match EventHistoryServer - tests updated to assert enum values