xiewenjie 3 anni fa
parent
commit
f153033842
1 ha cambiato i file con 5 aggiunte e 12 eliminazioni
  1. 5 12
      src/main/proto/scene.proto

+ 5 - 12
src/main/proto/scene.proto

@@ -7,11 +7,11 @@ option java_package = "com.fdkk.fdkkmeta.grpc";
 
 // grpc的方法
 service SceneGrpcService {
-  rpc testMethod (SceneRequest) returns (SceneReply){}
   rpc getRoute (RouteRequest) returns (RouteReply){}
   rpc init (InitRequest) returns (NormalReply){}
   rpc rotate (RotateRequest) returns (NormalReply){}
-  rpc move (MoveRequest) returns (MoveReply){}
+  rpc moveStart (StartMoveRequest) returns (NormalReply){}
+  rpc moveProcess (MoveNextNeighborRequest) returns (MoveReply){}
   rpc getBreakPoint (BreakPointRequest) returns (BreakPointReply){}
   rpc joystick (JoystickRequest) returns (NormalReply){} //操作杆
 }
@@ -101,7 +101,7 @@ message RenderInfo{
    string clientPanoTreceId=11;
    string prefetchVideoId=12;
    bool noMedia=13;
-} 
+}
 
 message Event{
    string id=1;
@@ -180,14 +180,7 @@ message StartMoveRequest {
 message MoveNextNeighborRequest {
   int32 user_id=1;
   string trace_id=2;
-  bool next=3;
-}
-
-// 结束移动下一段(一般是有新的请求)
-message EndMoveNextNeighborRequest {
-  int32 user_id=1;
-  string trace_id=2;
-  bool next=3;
+  bool next=3;      //true表示继续拿下一个,false表示结束(一般是有新的请求)
 }
 
 // move出参对象
@@ -256,4 +249,4 @@ message BreakPointReply {
   int32 code=13;
   string msg=14;
 }
-/**********************************************************/
+/**********************************************************/