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
// -----------------------------------------------------------------------------------------------------
listGames(vendorId: number): Promise<ListGamesResponse.Result> {
listGames(parentId: number): Promise<ListGamesResponse.Result> {
return new Promise<ListGamesResponse.Result>((resolve, reject) => {
let search = new ListGamesRequest.Search();
search.setVendorId(vendorId);
search.setParentId(parentId);
let req = new ListGamesRequest();
req.setSearch(search);

View File

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

View File

@ -372,7 +372,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
) {
var f,
obj = {
vendorId: jspb.Message.getFieldWithDefault(msg, 1, 0),
parentId: jspb.Message.getFieldWithDefault(msg, 1, 0),
keyLike: jspb.Message.getFieldWithDefault(msg, 2, ""),
platformLike: jspb.Message.getFieldWithDefault(msg, 3, ""),
categoryLike: jspb.Message.getFieldWithDefault(msg, 4, ""),
@ -418,7 +418,7 @@ proto.bet.beteran.c2se.api.game.ListGamesRequest.Search.deserializeBinaryFromRea
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readUint64());
msg.setVendorId(value);
msg.setParentId(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
@ -494,7 +494,7 @@ proto.bet.beteran.c2se.api.game.ListGamesRequest.Search.serializeBinaryToWriter
* optional uint64 vendor_id = 1;
* @return {number}
*/
proto.bet.beteran.c2se.api.game.ListGamesRequest.Search.prototype.getVendorId =
proto.bet.beteran.c2se.api.game.ListGamesRequest.Search.prototype.getParentId =
function () {
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
* @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) {
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.
* @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 () {
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.
* @return {boolean}
*/
proto.bet.beteran.c2se.api.game.ListGamesRequest.Search.prototype.hasVendorId =
proto.bet.beteran.c2se.api.game.ListGamesRequest.Search.prototype.hasParentId =
function () {
return jspb.Message.getField(this, 1) != null;
};

View File

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

View File

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