syntax = "proto3"; option go_package = "common/proto/gen/grpc_pb"; import "common.proto"; service Scene { rpc Enter(EnterReq) returns (EnterResp) {} rpc Action(stream ActionReq) returns (Empty) {} } message EnterReq { int32 UID = 1; // 用户ID int64 SID = 2; // 服务ID int32 InstanceID = 3; // 副本ID } message EnterResp { int64 SID = 1; // 服务ID int64 UniqueNo = 2; // 副本唯一编号 } message ActionReq { int64 UniqueNo = 1; // 副本唯一编号 int32 UID = 2; // 用户ID int32 Action = 3; // 动作ID bytes Payload = 4; // 动作数据 }