Merge branch 'main' of 47.107.44.202:xionglijia/18xchat

This commit is contained in:
2025-10-10 16:09:20 +08:00
4 changed files with 657 additions and 2 deletions
+200
View File
@@ -4403,6 +4403,206 @@ toJSON(): { [k: string]: any };
static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of a CSRecommendReq. */
interface ICSRecommendReq {
/** CSRecommendReq page */
page?: (number|null);
/** CSRecommendReq limit */
limit?: (number|null);
}
/** Represents a CSRecommendReq. */
class CSRecommendReq implements ICSRecommendReq {
/**
* Constructs a new CSRecommendReq.
* @param [properties] Properties to set
*/
constructor(properties?: cs.ICSRecommendReq);
/** CSRecommendReq page. */
page: number;
/** CSRecommendReq limit. */
limit: number;
/**
* Creates a new CSRecommendReq instance using the specified properties.
* @param [properties] Properties to set
* @returns CSRecommendReq instance
*/
static create(properties?: cs.ICSRecommendReq): cs.CSRecommendReq;
/**
* Encodes the specified CSRecommendReq message. Does not implicitly {@link cs.CSRecommendReq.verify|verify} messages.
* @param message CSRecommendReq message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
static encode(message: cs.ICSRecommendReq, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified CSRecommendReq message, length delimited. Does not implicitly {@link cs.CSRecommendReq.verify|verify} messages.
* @param message CSRecommendReq message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
static encodeDelimited(message: cs.ICSRecommendReq, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a CSRecommendReq message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns CSRecommendReq
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cs.CSRecommendReq;
/**
* Decodes a CSRecommendReq message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns CSRecommendReq
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cs.CSRecommendReq;
/**
* Verifies a CSRecommendReq message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a CSRecommendReq message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns CSRecommendReq
*/
static fromObject(object: { [k: string]: any }): cs.CSRecommendReq;
/**
* Creates a plain object from a CSRecommendReq message. Also converts values to other types if specified.
* @param message CSRecommendReq
* @param [options] Conversion options
* @returns Plain object
*/
static toObject(message: cs.CSRecommendReq, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this CSRecommendReq to JSON.
* @returns JSON object
*/
toJSON(): { [k: string]: any };
/**
* Gets the default type url for CSRecommendReq
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of a CSRecommendRes. */
interface ICSRecommendRes {
/** CSRecommendRes girl */
girl?: (cs.IGirls[]|null);
}
/** Represents a CSRecommendRes. */
class CSRecommendRes implements ICSRecommendRes {
/**
* Constructs a new CSRecommendRes.
* @param [properties] Properties to set
*/
constructor(properties?: cs.ICSRecommendRes);
/** CSRecommendRes girl. */
girl: cs.IGirls[];
/**
* Creates a new CSRecommendRes instance using the specified properties.
* @param [properties] Properties to set
* @returns CSRecommendRes instance
*/
static create(properties?: cs.ICSRecommendRes): cs.CSRecommendRes;
/**
* Encodes the specified CSRecommendRes message. Does not implicitly {@link cs.CSRecommendRes.verify|verify} messages.
* @param message CSRecommendRes message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
static encode(message: cs.ICSRecommendRes, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified CSRecommendRes message, length delimited. Does not implicitly {@link cs.CSRecommendRes.verify|verify} messages.
* @param message CSRecommendRes message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
static encodeDelimited(message: cs.ICSRecommendRes, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a CSRecommendRes message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns CSRecommendRes
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cs.CSRecommendRes;
/**
* Decodes a CSRecommendRes message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns CSRecommendRes
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cs.CSRecommendRes;
/**
* Verifies a CSRecommendRes message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a CSRecommendRes message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns CSRecommendRes
*/
static fromObject(object: { [k: string]: any }): cs.CSRecommendRes;
/**
* Creates a plain object from a CSRecommendRes message. Also converts values to other types if specified.
* @param message CSRecommendRes
* @param [options] Conversion options
* @returns Plain object
*/
static toObject(message: cs.CSRecommendRes, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this CSRecommendRes to JSON.
* @returns JSON object
*/
toJSON(): { [k: string]: any };
/**
* Gets the default type url for CSRecommendRes
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Category enum. */
enum Category {
Category_mature = 0,
+455
View File
@@ -10260,6 +10260,461 @@ $root.cs = (function() {
return CSGetBookmarkRes;
})();
cs.CSRecommendReq = (function() {
/**
* Properties of a CSRecommendReq.
* @memberof cs
* @interface ICSRecommendReq
* @property {number|null} [page] CSRecommendReq page
* @property {number|null} [limit] CSRecommendReq limit
*/
/**
* Constructs a new CSRecommendReq.
* @memberof cs
* @classdesc Represents a CSRecommendReq.
* @implements ICSRecommendReq
* @constructor
* @param {cs.ICSRecommendReq=} [properties] Properties to set
*/
function CSRecommendReq(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]];
}
/**
* CSRecommendReq page.
* @member {number} page
* @memberof cs.CSRecommendReq
* @instance
*/
CSRecommendReq.prototype.page = 0;
/**
* CSRecommendReq limit.
* @member {number} limit
* @memberof cs.CSRecommendReq
* @instance
*/
CSRecommendReq.prototype.limit = 0;
/**
* Creates a new CSRecommendReq instance using the specified properties.
* @function create
* @memberof cs.CSRecommendReq
* @static
* @param {cs.ICSRecommendReq=} [properties] Properties to set
* @returns {cs.CSRecommendReq} CSRecommendReq instance
*/
CSRecommendReq.create = function create(properties) {
return new CSRecommendReq(properties);
};
/**
* Encodes the specified CSRecommendReq message. Does not implicitly {@link cs.CSRecommendReq.verify|verify} messages.
* @function encode
* @memberof cs.CSRecommendReq
* @static
* @param {cs.ICSRecommendReq} message CSRecommendReq message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
CSRecommendReq.encode = function encode(message, writer) {
if (!writer)
writer = $Writer.create();
if (message.page != null && Object.hasOwnProperty.call(message, "page"))
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.page);
if (message.limit != null && Object.hasOwnProperty.call(message, "limit"))
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.limit);
return writer;
};
/**
* Encodes the specified CSRecommendReq message, length delimited. Does not implicitly {@link cs.CSRecommendReq.verify|verify} messages.
* @function encodeDelimited
* @memberof cs.CSRecommendReq
* @static
* @param {cs.ICSRecommendReq} message CSRecommendReq message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
CSRecommendReq.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
};
/**
* Decodes a CSRecommendReq message from the specified reader or buffer.
* @function decode
* @memberof cs.CSRecommendReq
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
* @param {number} [length] Message length if known beforehand
* @returns {cs.CSRecommendReq} CSRecommendReq
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
CSRecommendReq.decode = function decode(reader, length, error) {
if (!(reader instanceof $Reader))
reader = $Reader.create(reader);
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.cs.CSRecommendReq();
while (reader.pos < end) {
var tag = reader.uint32();
if (tag === error)
break;
switch (tag >>> 3) {
case 1: {
message.page = reader.int32();
break;
}
case 2: {
message.limit = reader.int32();
break;
}
default:
reader.skipType(tag & 7);
break;
}
}
return message;
};
/**
* Decodes a CSRecommendReq message from the specified reader or buffer, length delimited.
* @function decodeDelimited
* @memberof cs.CSRecommendReq
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
* @returns {cs.CSRecommendReq} CSRecommendReq
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
CSRecommendReq.decodeDelimited = function decodeDelimited(reader) {
if (!(reader instanceof $Reader))
reader = new $Reader(reader);
return this.decode(reader, reader.uint32());
};
/**
* Verifies a CSRecommendReq message.
* @function verify
* @memberof cs.CSRecommendReq
* @static
* @param {Object.<string,*>} message Plain object to verify
* @returns {string|null} `null` if valid, otherwise the reason why it is not
*/
CSRecommendReq.verify = function verify(message) {
if (typeof message !== "object" || message === null)
return "object expected";
if (message.page != null && message.hasOwnProperty("page"))
if (!$util.isInteger(message.page))
return "page: integer expected";
if (message.limit != null && message.hasOwnProperty("limit"))
if (!$util.isInteger(message.limit))
return "limit: integer expected";
return null;
};
/**
* Creates a CSRecommendReq message from a plain object. Also converts values to their respective internal types.
* @function fromObject
* @memberof cs.CSRecommendReq
* @static
* @param {Object.<string,*>} object Plain object
* @returns {cs.CSRecommendReq} CSRecommendReq
*/
CSRecommendReq.fromObject = function fromObject(object) {
if (object instanceof $root.cs.CSRecommendReq)
return object;
var message = new $root.cs.CSRecommendReq();
if (object.page != null)
message.page = object.page | 0;
if (object.limit != null)
message.limit = object.limit | 0;
return message;
};
/**
* Creates a plain object from a CSRecommendReq message. Also converts values to other types if specified.
* @function toObject
* @memberof cs.CSRecommendReq
* @static
* @param {cs.CSRecommendReq} message CSRecommendReq
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.<string,*>} Plain object
*/
CSRecommendReq.toObject = function toObject(message, options) {
if (!options)
options = {};
var object = {};
if (options.defaults) {
object.page = 0;
object.limit = 0;
}
if (message.page != null && message.hasOwnProperty("page"))
object.page = message.page;
if (message.limit != null && message.hasOwnProperty("limit"))
object.limit = message.limit;
return object;
};
/**
* Converts this CSRecommendReq to JSON.
* @function toJSON
* @memberof cs.CSRecommendReq
* @instance
* @returns {Object.<string,*>} JSON object
*/
CSRecommendReq.prototype.toJSON = function toJSON() {
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
};
/**
* Gets the default type url for CSRecommendReq
* @function getTypeUrl
* @memberof cs.CSRecommendReq
* @static
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns {string} The default type url
*/
CSRecommendReq.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
if (typeUrlPrefix === undefined) {
typeUrlPrefix = "type.googleapis.com";
}
return typeUrlPrefix + "/cs.CSRecommendReq";
};
return CSRecommendReq;
})();
cs.CSRecommendRes = (function() {
/**
* Properties of a CSRecommendRes.
* @memberof cs
* @interface ICSRecommendRes
* @property {Array.<cs.IGirls>|null} [girl] CSRecommendRes girl
*/
/**
* Constructs a new CSRecommendRes.
* @memberof cs
* @classdesc Represents a CSRecommendRes.
* @implements ICSRecommendRes
* @constructor
* @param {cs.ICSRecommendRes=} [properties] Properties to set
*/
function CSRecommendRes(properties) {
this.girl = [];
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]];
}
/**
* CSRecommendRes girl.
* @member {Array.<cs.IGirls>} girl
* @memberof cs.CSRecommendRes
* @instance
*/
CSRecommendRes.prototype.girl = $util.emptyArray;
/**
* Creates a new CSRecommendRes instance using the specified properties.
* @function create
* @memberof cs.CSRecommendRes
* @static
* @param {cs.ICSRecommendRes=} [properties] Properties to set
* @returns {cs.CSRecommendRes} CSRecommendRes instance
*/
CSRecommendRes.create = function create(properties) {
return new CSRecommendRes(properties);
};
/**
* Encodes the specified CSRecommendRes message. Does not implicitly {@link cs.CSRecommendRes.verify|verify} messages.
* @function encode
* @memberof cs.CSRecommendRes
* @static
* @param {cs.ICSRecommendRes} message CSRecommendRes message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
CSRecommendRes.encode = function encode(message, writer) {
if (!writer)
writer = $Writer.create();
if (message.girl != null && message.girl.length)
for (var i = 0; i < message.girl.length; ++i)
$root.cs.Girls.encode(message.girl[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
return writer;
};
/**
* Encodes the specified CSRecommendRes message, length delimited. Does not implicitly {@link cs.CSRecommendRes.verify|verify} messages.
* @function encodeDelimited
* @memberof cs.CSRecommendRes
* @static
* @param {cs.ICSRecommendRes} message CSRecommendRes message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
CSRecommendRes.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
};
/**
* Decodes a CSRecommendRes message from the specified reader or buffer.
* @function decode
* @memberof cs.CSRecommendRes
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
* @param {number} [length] Message length if known beforehand
* @returns {cs.CSRecommendRes} CSRecommendRes
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
CSRecommendRes.decode = function decode(reader, length, error) {
if (!(reader instanceof $Reader))
reader = $Reader.create(reader);
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.cs.CSRecommendRes();
while (reader.pos < end) {
var tag = reader.uint32();
if (tag === error)
break;
switch (tag >>> 3) {
case 1: {
if (!(message.girl && message.girl.length))
message.girl = [];
message.girl.push($root.cs.Girls.decode(reader, reader.uint32()));
break;
}
default:
reader.skipType(tag & 7);
break;
}
}
return message;
};
/**
* Decodes a CSRecommendRes message from the specified reader or buffer, length delimited.
* @function decodeDelimited
* @memberof cs.CSRecommendRes
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
* @returns {cs.CSRecommendRes} CSRecommendRes
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
CSRecommendRes.decodeDelimited = function decodeDelimited(reader) {
if (!(reader instanceof $Reader))
reader = new $Reader(reader);
return this.decode(reader, reader.uint32());
};
/**
* Verifies a CSRecommendRes message.
* @function verify
* @memberof cs.CSRecommendRes
* @static
* @param {Object.<string,*>} message Plain object to verify
* @returns {string|null} `null` if valid, otherwise the reason why it is not
*/
CSRecommendRes.verify = function verify(message) {
if (typeof message !== "object" || message === null)
return "object expected";
if (message.girl != null && message.hasOwnProperty("girl")) {
if (!Array.isArray(message.girl))
return "girl: array expected";
for (var i = 0; i < message.girl.length; ++i) {
var error = $root.cs.Girls.verify(message.girl[i]);
if (error)
return "girl." + error;
}
}
return null;
};
/**
* Creates a CSRecommendRes message from a plain object. Also converts values to their respective internal types.
* @function fromObject
* @memberof cs.CSRecommendRes
* @static
* @param {Object.<string,*>} object Plain object
* @returns {cs.CSRecommendRes} CSRecommendRes
*/
CSRecommendRes.fromObject = function fromObject(object) {
if (object instanceof $root.cs.CSRecommendRes)
return object;
var message = new $root.cs.CSRecommendRes();
if (object.girl) {
if (!Array.isArray(object.girl))
throw TypeError(".cs.CSRecommendRes.girl: array expected");
message.girl = [];
for (var i = 0; i < object.girl.length; ++i) {
if (typeof object.girl[i] !== "object")
throw TypeError(".cs.CSRecommendRes.girl: object expected");
message.girl[i] = $root.cs.Girls.fromObject(object.girl[i]);
}
}
return message;
};
/**
* Creates a plain object from a CSRecommendRes message. Also converts values to other types if specified.
* @function toObject
* @memberof cs.CSRecommendRes
* @static
* @param {cs.CSRecommendRes} message CSRecommendRes
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.<string,*>} Plain object
*/
CSRecommendRes.toObject = function toObject(message, options) {
if (!options)
options = {};
var object = {};
if (options.arrays || options.defaults)
object.girl = [];
if (message.girl && message.girl.length) {
object.girl = [];
for (var j = 0; j < message.girl.length; ++j)
object.girl[j] = $root.cs.Girls.toObject(message.girl[j], options);
}
return object;
};
/**
* Converts this CSRecommendRes to JSON.
* @function toJSON
* @memberof cs.CSRecommendRes
* @instance
* @returns {Object.<string,*>} JSON object
*/
CSRecommendRes.prototype.toJSON = function toJSON() {
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
};
/**
* Gets the default type url for CSRecommendRes
* @function getTypeUrl
* @memberof cs.CSRecommendRes
* @static
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns {string} The default type url
*/
CSRecommendRes.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
if (typeUrlPrefix === undefined) {
typeUrlPrefix = "type.googleapis.com";
}
return typeUrlPrefix + "/cs.CSRecommendRes";
};
return CSRecommendRes;
})();
/**
* Category enum.
* @name cs.Category
@@ -59,7 +59,7 @@
"web-mobile": {
"useWebGPU": false,
"orientation": "portrait",
"embedWebDebugger": true,
"embedWebDebugger": false,
"__version__": "1.0.1"
},
"cocos-service": {