Merge branch 'feature/BET-FRONTEND-APP-BROWSER-init' of https://gitlab.loafle.net/bet/beteran-frontend-app-browser into feature/BET-FRONTEND-APP-BROWSER-init

This commit is contained in:
Park Byung Eun 2022-08-29 05:43:33 +00:00
commit 5bb2c695ad
5 changed files with 21 additions and 21 deletions

View File

@ -26,10 +26,10 @@ export class GameService {
// @ Public methods // @ Public methods
// ----------------------------------------------------------------------------------------------------- // -----------------------------------------------------------------------------------------------------
listGames(vendorId: number): Promise<ListGamesResponse.Result> { listGames(parentId: number): Promise<ListGamesResponse.Result> {
return new Promise<ListGamesResponse.Result>((resolve, reject) => { return new Promise<ListGamesResponse.Result>((resolve, reject) => {
let search = new ListGamesRequest.Search(); let search = new ListGamesRequest.Search();
search.setVendorId(vendorId); search.setParentId(parentId);
let req = new ListGamesRequest(); let req = new ListGamesRequest();
req.setSearch(search); req.setSearch(search);

View File

@ -55,10 +55,10 @@ export namespace ListGamesRequest {
}; };
export class Search extends jspb.Message { export class Search extends jspb.Message {
hasVendorId(): boolean; hasParentId(): boolean;
clearVendorId(): void; clearParentId(): void;
getVendorId(): number; getParentId(): number;
setVendorId(value: number): void; setParentId(value: number): void;
hasKeyLike(): boolean; hasKeyLike(): boolean;
clearKeyLike(): void; clearKeyLike(): void;
@ -100,7 +100,7 @@ export namespace ListGamesRequest {
export namespace Search { export namespace Search {
export type AsObject = { export type AsObject = {
vendorId: number; parentId: number;
keyLike: string; keyLike: string;
platformLike: string; platformLike: string;
categoryLike: string; categoryLike: string;

View File

@ -372,7 +372,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
) { ) {
var f, var f,
obj = { obj = {
vendorId: jspb.Message.getFieldWithDefault(msg, 1, 0), parentId: jspb.Message.getFieldWithDefault(msg, 1, 0),
keyLike: jspb.Message.getFieldWithDefault(msg, 2, ""), keyLike: jspb.Message.getFieldWithDefault(msg, 2, ""),
platformLike: jspb.Message.getFieldWithDefault(msg, 3, ""), platformLike: jspb.Message.getFieldWithDefault(msg, 3, ""),
categoryLike: jspb.Message.getFieldWithDefault(msg, 4, ""), categoryLike: jspb.Message.getFieldWithDefault(msg, 4, ""),
@ -418,7 +418,7 @@ proto.bet.beteran.c2se.api.game.ListGamesRequest.Search.deserializeBinaryFromRea
switch (field) { switch (field) {
case 1: case 1:
var value = /** @type {number} */ (reader.readUint64()); var value = /** @type {number} */ (reader.readUint64());
msg.setVendorId(value); msg.setParentId(value);
break; break;
case 2: case 2:
var value = /** @type {string} */ (reader.readString()); var value = /** @type {string} */ (reader.readString());
@ -494,7 +494,7 @@ proto.bet.beteran.c2se.api.game.ListGamesRequest.Search.serializeBinaryToWriter
* optional uint64 vendor_id = 1; * optional uint64 vendor_id = 1;
* @return {number} * @return {number}
*/ */
proto.bet.beteran.c2se.api.game.ListGamesRequest.Search.prototype.getVendorId = proto.bet.beteran.c2se.api.game.ListGamesRequest.Search.prototype.getParentId =
function () { function () {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
}; };
@ -503,7 +503,7 @@ proto.bet.beteran.c2se.api.game.ListGamesRequest.Search.prototype.getVendorId =
* @param {number} value * @param {number} value
* @return {!proto.bet.beteran.c2se.api.game.ListGamesRequest.Search} returns this * @return {!proto.bet.beteran.c2se.api.game.ListGamesRequest.Search} returns this
*/ */
proto.bet.beteran.c2se.api.game.ListGamesRequest.Search.prototype.setVendorId = proto.bet.beteran.c2se.api.game.ListGamesRequest.Search.prototype.setParentId =
function (value) { function (value) {
return jspb.Message.setField(this, 1, value); return jspb.Message.setField(this, 1, value);
}; };
@ -512,7 +512,7 @@ proto.bet.beteran.c2se.api.game.ListGamesRequest.Search.prototype.setVendorId =
* Clears the field making it undefined. * Clears the field making it undefined.
* @return {!proto.bet.beteran.c2se.api.game.ListGamesRequest.Search} returns this * @return {!proto.bet.beteran.c2se.api.game.ListGamesRequest.Search} returns this
*/ */
proto.bet.beteran.c2se.api.game.ListGamesRequest.Search.prototype.clearVendorId = proto.bet.beteran.c2se.api.game.ListGamesRequest.Search.prototype.clearParentId =
function () { function () {
return jspb.Message.setField(this, 1, undefined); return jspb.Message.setField(this, 1, undefined);
}; };
@ -521,7 +521,7 @@ proto.bet.beteran.c2se.api.game.ListGamesRequest.Search.prototype.clearVendorId
* Returns whether this field is set. * Returns whether this field is set.
* @return {boolean} * @return {boolean}
*/ */
proto.bet.beteran.c2se.api.game.ListGamesRequest.Search.prototype.hasVendorId = proto.bet.beteran.c2se.api.game.ListGamesRequest.Search.prototype.hasParentId =
function () { function () {
return jspb.Message.getField(this, 1) != null; return jspb.Message.getField(this, 1) != null;
}; };

View File

@ -7,8 +7,8 @@ export class Game extends jspb.Message {
getId(): number; getId(): number;
setId(value: number): void; setId(value: number): void;
getVendorId(): number; getParentId(): number;
setVendorId(value: number): void; setParentId(value: number): void;
getKey(): string; getKey(): string;
setKey(value: string): void; setKey(value: string): void;
@ -57,7 +57,7 @@ export class Game extends jspb.Message {
export namespace Game { export namespace Game {
export type AsObject = { export type AsObject = {
id: number; id: number;
vendorId: number; parentId: number;
key: string; key: string;
names: string; names: string;
platform: string; platform: string;

View File

@ -73,7 +73,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
var f, var f,
obj = { obj = {
id: jspb.Message.getFieldWithDefault(msg, 1, 0), id: jspb.Message.getFieldWithDefault(msg, 1, 0),
vendorId: jspb.Message.getFieldWithDefault(msg, 2, 0), parentId: jspb.Message.getFieldWithDefault(msg, 2, 0),
key: jspb.Message.getFieldWithDefault(msg, 3, ""), key: jspb.Message.getFieldWithDefault(msg, 3, ""),
names: jspb.Message.getFieldWithDefault(msg, 4, ""), names: jspb.Message.getFieldWithDefault(msg, 4, ""),
platform: jspb.Message.getFieldWithDefault(msg, 5, ""), platform: jspb.Message.getFieldWithDefault(msg, 5, ""),
@ -128,7 +128,7 @@ proto.bet.beteran.api.game.Game.deserializeBinaryFromReader = function (
break; break;
case 2: case 2:
var value = /** @type {number} */ (reader.readUint64()); var value = /** @type {number} */ (reader.readUint64());
msg.setVendorId(value); msg.setParentId(value);
break; break;
case 3: case 3:
var value = /** @type {string} */ (reader.readString()); var value = /** @type {string} */ (reader.readString());
@ -196,7 +196,7 @@ proto.bet.beteran.api.game.Game.serializeBinaryToWriter = function (
if (f !== 0) { if (f !== 0) {
writer.writeUint64(1, f); writer.writeUint64(1, f);
} }
f = message.getVendorId(); f = message.getParentId();
if (f !== 0) { if (f !== 0) {
writer.writeUint64(2, f); writer.writeUint64(2, f);
} }
@ -254,7 +254,7 @@ proto.bet.beteran.api.game.Game.prototype.setId = function (value) {
* optional uint64 vendor_id = 2; * optional uint64 vendor_id = 2;
* @return {number} * @return {number}
*/ */
proto.bet.beteran.api.game.Game.prototype.getVendorId = function () { proto.bet.beteran.api.game.Game.prototype.getParentId = function () {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
}; };
@ -262,7 +262,7 @@ proto.bet.beteran.api.game.Game.prototype.getVendorId = function () {
* @param {number} value * @param {number} value
* @return {!proto.bet.beteran.api.game.Game} returns this * @return {!proto.bet.beteran.api.game.Game} returns this
*/ */
proto.bet.beteran.api.game.Game.prototype.setVendorId = function (value) { proto.bet.beteran.api.game.Game.prototype.setParentId = function (value) {
return jspb.Message.setProto3IntField(this, 2, value); return jspb.Message.setProto3IntField(this, 2, value);
}; };