diff --git a/proto/phase_server.proto b/proto/phase_server.proto index b52b428..b2832ae 100644 --- a/proto/phase_server.proto +++ b/proto/phase_server.proto @@ -247,36 +247,36 @@ message CrossRunningPhaseRequest { message CrossRunningPhaseResponse { int32 code = 1; string msg = 2; - repeated List data = 3; + repeated List data = 3; //数据列表 message List { - int32 citycode = 1; - string crossid = 2; - string jj_crossid = 3; - int32 scheduleid = 4; - string schedule_week = 5; - string schedule_name = 6; + int32 citycode = 1; //城市编码 + string crossid = 2; //路口ID + string jj_crossid = 3; + int32 scheduleid = 4; //日计划号 + string schedule_week = 5; //周,1,2,3 + string schedule_name = 6; //周的名称,全周或工作日 repeated tps_list tps = 7; } message tps_list { - string tp_start = 1; - string tp_end = 2; - int32 planid = 3; - string plan_name = 4; - string control_mode = 5; - int32 cycle = 6; - int32 coord_phaseid = 7; - int32 offset = 8; - repeated stages stage_list = 9; + string tp_start = 1; //时段开始时间 + string tp_end = 2; //时段结束时间 + int32 planid = 3; //方案号 + string plan_name = 4; //方案名称 + string control_mode = 5; //控制模式 + int32 cycle = 6; //周期 + int32 coord_phaseid = 7; //协调相位ID + int32 offset = 8; //相位差 + repeated stages stage_list = 9; //阶段列表 } message stages { - int32 stageid = 1; - int32 stage_duration = 2; - string stage_name = 3; - int32 green = 4; - int32 yellow = 5; - int32 allred = 6; - string phases = 7; - string phases_name = 8; + int32 stageid = 1; //阶段ID + int32 stage_duration = 2; //阶段时长 + string stage_name = 3; //阶段名称 + int32 green = 4; //绿灯时长 + int32 yellow = 5; //黄灯时长 + int32 allred = 6; //全红时长 + string phases = 7; //相位ID集合,1,3,4,5 + string phases_name = 8; //相位名称,南直行,北直行,南行人,东北直行 int32 min_green = 9; int32 max_green = 10; }