|
@@ -1162,6 +1162,221 @@ $root.user = (function() {
|
|
|
return login_rsp;
|
|
|
})();
|
|
|
|
|
|
+ user.wxLoginRsp = (function() {
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Properties of a wxLoginRsp.
|
|
|
+ * @memberof user
|
|
|
+ * @interface IwxLoginRsp
|
|
|
+ * @property {common.IErrorInfo|null} [errInfo] wxLoginRsp errInfo
|
|
|
+ * @property {string|null} [token] wxLoginRsp token
|
|
|
+ */
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Constructs a new wxLoginRsp.
|
|
|
+ * @memberof user
|
|
|
+ * @classdesc Represents a wxLoginRsp.
|
|
|
+ * @implements IwxLoginRsp
|
|
|
+ * @constructor
|
|
|
+ * @param {user.IwxLoginRsp=} [properties] Properties to set
|
|
|
+ */
|
|
|
+ function wxLoginRsp(properties) {
|
|
|
+ if (properties)
|
|
|
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
|
+ if (properties[keys[i]] != null)
|
|
|
+ this[keys[i]] = properties[keys[i]];
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * wxLoginRsp errInfo.
|
|
|
+ * @member {common.IErrorInfo|null|undefined} errInfo
|
|
|
+ * @memberof user.wxLoginRsp
|
|
|
+ * @instance
|
|
|
+ */
|
|
|
+ wxLoginRsp.prototype.errInfo = null;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * wxLoginRsp token.
|
|
|
+ * @member {string} token
|
|
|
+ * @memberof user.wxLoginRsp
|
|
|
+ * @instance
|
|
|
+ */
|
|
|
+ wxLoginRsp.prototype.token = "";
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Creates a new wxLoginRsp instance using the specified properties.
|
|
|
+ * @function create
|
|
|
+ * @memberof user.wxLoginRsp
|
|
|
+ * @static
|
|
|
+ * @param {user.IwxLoginRsp=} [properties] Properties to set
|
|
|
+ * @returns {user.wxLoginRsp} wxLoginRsp instance
|
|
|
+ */
|
|
|
+ wxLoginRsp.create = function create(properties) {
|
|
|
+ return new wxLoginRsp(properties);
|
|
|
+ };
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Encodes the specified wxLoginRsp message. Does not implicitly {@link user.wxLoginRsp.verify|verify} messages.
|
|
|
+ * @function encode
|
|
|
+ * @memberof user.wxLoginRsp
|
|
|
+ * @static
|
|
|
+ * @param {user.IwxLoginRsp} message wxLoginRsp message or plain object to encode
|
|
|
+ * @param {$protobuf.Writer} [writer] Writer to encode to
|
|
|
+ * @returns {$protobuf.Writer} Writer
|
|
|
+ */
|
|
|
+ wxLoginRsp.encode = function encode(message, writer) {
|
|
|
+ if (!writer)
|
|
|
+ writer = $Writer.create();
|
|
|
+ if (message.errInfo != null && Object.hasOwnProperty.call(message, "errInfo"))
|
|
|
+ $root.common.ErrorInfo.encode(message.errInfo, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
|
+ if (message.token != null && Object.hasOwnProperty.call(message, "token"))
|
|
|
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.token);
|
|
|
+ return writer;
|
|
|
+ };
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Encodes the specified wxLoginRsp message, length delimited. Does not implicitly {@link user.wxLoginRsp.verify|verify} messages.
|
|
|
+ * @function encodeDelimited
|
|
|
+ * @memberof user.wxLoginRsp
|
|
|
+ * @static
|
|
|
+ * @param {user.IwxLoginRsp} message wxLoginRsp message or plain object to encode
|
|
|
+ * @param {$protobuf.Writer} [writer] Writer to encode to
|
|
|
+ * @returns {$protobuf.Writer} Writer
|
|
|
+ */
|
|
|
+ wxLoginRsp.encodeDelimited = function encodeDelimited(message, writer) {
|
|
|
+ return this.encode(message, writer).ldelim();
|
|
|
+ };
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Decodes a wxLoginRsp message from the specified reader or buffer.
|
|
|
+ * @function decode
|
|
|
+ * @memberof user.wxLoginRsp
|
|
|
+ * @static
|
|
|
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
|
+ * @param {number} [length] Message length if known beforehand
|
|
|
+ * @returns {user.wxLoginRsp} wxLoginRsp
|
|
|
+ * @throws {Error} If the payload is not a reader or valid buffer
|
|
|
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
|
+ */
|
|
|
+ wxLoginRsp.decode = function decode(reader, length) {
|
|
|
+ if (!(reader instanceof $Reader))
|
|
|
+ reader = $Reader.create(reader);
|
|
|
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.user.wxLoginRsp();
|
|
|
+ while (reader.pos < end) {
|
|
|
+ var tag = reader.uint32();
|
|
|
+ switch (tag >>> 3) {
|
|
|
+ case 1:
|
|
|
+ message.errInfo = $root.common.ErrorInfo.decode(reader, reader.uint32());
|
|
|
+ break;
|
|
|
+ case 2:
|
|
|
+ message.token = reader.string();
|
|
|
+ break;
|
|
|
+ default:
|
|
|
+ reader.skipType(tag & 7);
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return message;
|
|
|
+ };
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Decodes a wxLoginRsp message from the specified reader or buffer, length delimited.
|
|
|
+ * @function decodeDelimited
|
|
|
+ * @memberof user.wxLoginRsp
|
|
|
+ * @static
|
|
|
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
|
+ * @returns {user.wxLoginRsp} wxLoginRsp
|
|
|
+ * @throws {Error} If the payload is not a reader or valid buffer
|
|
|
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
|
+ */
|
|
|
+ wxLoginRsp.decodeDelimited = function decodeDelimited(reader) {
|
|
|
+ if (!(reader instanceof $Reader))
|
|
|
+ reader = new $Reader(reader);
|
|
|
+ return this.decode(reader, reader.uint32());
|
|
|
+ };
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Verifies a wxLoginRsp message.
|
|
|
+ * @function verify
|
|
|
+ * @memberof user.wxLoginRsp
|
|
|
+ * @static
|
|
|
+ * @param {Object.<string,*>} message Plain object to verify
|
|
|
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
|
+ */
|
|
|
+ wxLoginRsp.verify = function verify(message) {
|
|
|
+ if (typeof message !== "object" || message === null)
|
|
|
+ return "object expected";
|
|
|
+ if (message.errInfo != null && message.hasOwnProperty("errInfo")) {
|
|
|
+ var error = $root.common.ErrorInfo.verify(message.errInfo);
|
|
|
+ if (error)
|
|
|
+ return "errInfo." + error;
|
|
|
+ }
|
|
|
+ if (message.token != null && message.hasOwnProperty("token"))
|
|
|
+ if (!$util.isString(message.token))
|
|
|
+ return "token: string expected";
|
|
|
+ return null;
|
|
|
+ };
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Creates a wxLoginRsp message from a plain object. Also converts values to their respective internal types.
|
|
|
+ * @function fromObject
|
|
|
+ * @memberof user.wxLoginRsp
|
|
|
+ * @static
|
|
|
+ * @param {Object.<string,*>} object Plain object
|
|
|
+ * @returns {user.wxLoginRsp} wxLoginRsp
|
|
|
+ */
|
|
|
+ wxLoginRsp.fromObject = function fromObject(object) {
|
|
|
+ if (object instanceof $root.user.wxLoginRsp)
|
|
|
+ return object;
|
|
|
+ var message = new $root.user.wxLoginRsp();
|
|
|
+ if (object.errInfo != null) {
|
|
|
+ if (typeof object.errInfo !== "object")
|
|
|
+ throw TypeError(".user.wxLoginRsp.errInfo: object expected");
|
|
|
+ message.errInfo = $root.common.ErrorInfo.fromObject(object.errInfo);
|
|
|
+ }
|
|
|
+ if (object.token != null)
|
|
|
+ message.token = String(object.token);
|
|
|
+ return message;
|
|
|
+ };
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Creates a plain object from a wxLoginRsp message. Also converts values to other types if specified.
|
|
|
+ * @function toObject
|
|
|
+ * @memberof user.wxLoginRsp
|
|
|
+ * @static
|
|
|
+ * @param {user.wxLoginRsp} message wxLoginRsp
|
|
|
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
|
+ * @returns {Object.<string,*>} Plain object
|
|
|
+ */
|
|
|
+ wxLoginRsp.toObject = function toObject(message, options) {
|
|
|
+ if (!options)
|
|
|
+ options = {};
|
|
|
+ var object = {};
|
|
|
+ if (options.defaults) {
|
|
|
+ object.errInfo = null;
|
|
|
+ object.token = "";
|
|
|
+ }
|
|
|
+ if (message.errInfo != null && message.hasOwnProperty("errInfo"))
|
|
|
+ object.errInfo = $root.common.ErrorInfo.toObject(message.errInfo, options);
|
|
|
+ if (message.token != null && message.hasOwnProperty("token"))
|
|
|
+ object.token = message.token;
|
|
|
+ return object;
|
|
|
+ };
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Converts this wxLoginRsp to JSON.
|
|
|
+ * @function toJSON
|
|
|
+ * @memberof user.wxLoginRsp
|
|
|
+ * @instance
|
|
|
+ * @returns {Object.<string,*>} JSON object
|
|
|
+ */
|
|
|
+ wxLoginRsp.prototype.toJSON = function toJSON() {
|
|
|
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
|
+ };
|
|
|
+
|
|
|
+ return wxLoginRsp;
|
|
|
+ })();
|
|
|
+
|
|
|
return user;
|
|
|
})();
|
|
|
|