wzx 2 年之前
父節點
當前提交
a8b1fc111f
共有 5 個文件被更改,包括 66 次插入5 次删除
  1. 1 1
      .gitignore
  2. 2 2
      .gitmodules
  3. 1 0
      grpc/app_api
  4. 61 1
      grpc/app_api_pb.js
  5. 1 1
      grpc/gen.bat

+ 1 - 1
.gitignore

@@ -1,2 +1,2 @@
 unpackage
-/grpc/proto
+

+ 2 - 2
.gitmodules

@@ -1,3 +1,3 @@
-[submodule "grpc/proto"]
-	path = grpc/proto
+[submodule "grpc/app_api"]
+	path = grpc/app_api
 	url = https://git.beswell.com/Orienteering/app_api.git

+ 1 - 0
grpc/app_api

@@ -0,0 +1 @@
+Subproject commit b9a06cc1e02137a3ec074ce88b476845dc9c262a

+ 61 - 1
grpc/app_api_pb.js

@@ -1648,7 +1648,9 @@ proto.app.v1.GameDetailReply.toObject = function(includeInstance, msg) {
     proto.app.v1.GameControlPoint.toObject, includeInstance),
     duration: (f = msg.getDuration()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f),
     stopAt: (f = msg.getStopAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
-    qrjsoncode: jspb.Message.getFieldWithDefault(msg, 7, "")
+    qrjsoncode: jspb.Message.getFieldWithDefault(msg, 7, ""),
+    issuccess: jspb.Message.getBooleanFieldWithDefault(msg, 8, false),
+    syspoint: jspb.Message.getFieldWithDefault(msg, 9, 0)
   };
 
   if (includeInstance) {
@@ -1717,6 +1719,14 @@ proto.app.v1.GameDetailReply.deserializeBinaryFromReader = function(msg, reader)
       var value = /** @type {string} */ (reader.readString());
       msg.setQrjsoncode(value);
       break;
+    case 8:
+      var value = /** @type {boolean} */ (reader.readBool());
+      msg.setIssuccess(value);
+      break;
+    case 9:
+      var value = /** @type {number} */ (reader.readInt32());
+      msg.setSyspoint(value);
+      break;
     default:
       reader.skipField();
       break;
@@ -1799,6 +1809,20 @@ proto.app.v1.GameDetailReply.serializeBinaryToWriter = function(message, writer)
       f
     );
   }
+  f = message.getIssuccess();
+  if (f) {
+    writer.writeBool(
+      8,
+      f
+    );
+  }
+  f = message.getSyspoint();
+  if (f !== 0) {
+    writer.writeInt32(
+      9,
+      f
+    );
+  }
 };
 
 
@@ -2005,6 +2029,42 @@ proto.app.v1.GameDetailReply.prototype.setQrjsoncode = function(value) {
 };
 
 
+/**
+ * optional bool isSuccess = 8;
+ * @return {boolean}
+ */
+proto.app.v1.GameDetailReply.prototype.getIssuccess = function() {
+  return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false));
+};
+
+
+/**
+ * @param {boolean} value
+ * @return {!proto.app.v1.GameDetailReply} returns this
+ */
+proto.app.v1.GameDetailReply.prototype.setIssuccess = function(value) {
+  return jspb.Message.setProto3BooleanField(this, 8, value);
+};
+
+
+/**
+ * optional int32 sysPoint = 9;
+ * @return {number}
+ */
+proto.app.v1.GameDetailReply.prototype.getSyspoint = function() {
+  return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
+};
+
+
+/**
+ * @param {number} value
+ * @return {!proto.app.v1.GameDetailReply} returns this
+ */
+proto.app.v1.GameDetailReply.prototype.setSyspoint = function(value) {
+  return jspb.Message.setProto3IntField(this, 9, value);
+};
+
+
 
 
 

+ 1 - 1
grpc/gen.bat

@@ -1 +1 @@
-protoc  --proto_path=proto app_api.proto --js_out=import_style=commonjs:. --grpc-web_out=import_style=commonjs,mode=grpcwebtext:.
+protoc  --proto_path=app_api app_api.proto --js_out=import_style=commonjs:. --grpc-web_out=import_style=commonjs,mode=grpcwebtext:.