diff --git a/docs/架构设计/逻辑视图设计.md b/docs/架构设计/逻辑视图设计.md index ea26c31..5fbebf3 100644 --- a/docs/架构设计/逻辑视图设计.md +++ b/docs/架构设计/逻辑视图设计.md @@ -402,12 +402,30 @@ func handle_cmd(conn net.Conn) { ``` - - ### EVENT数据示例 event指令格式示例 +``` +type Event int +const ( + EVT_POC_SCAN_PROGRESS Event = iota + EVT_POC_SCAN_FINISH +) + +type event_body struct { + Progress int +} + +type event_msg struct { + Evt int + Ack int + ReqSn int + Body event_body + Crc int +} + +```