Merge branch 'feature/BETERAN-BACKEND-APP-BROWSER-init' of https://gitlab.loafle.net/bet/beteran-backend-app-browser into feature/BETERAN-BACKEND-APP-BROWSER-init

This commit is contained in:
Park Byung Eun 2022-08-08 10:34:04 +00:00
commit 1d40b74f94
8 changed files with 3354 additions and 14 deletions

View File

@ -8,7 +8,7 @@ export const currentUsers = [
currentLocation: '메인', currentLocation: '메인',
gameMoney: 0, gameMoney: 0,
highRank: 'kgon5', highRank: 'kgon5',
index: 1, idx: 1,
level: '4', level: '4',
ownCash: 67131, ownCash: 67131,
ownComp: 3111, ownComp: 3111,

View File

@ -69,7 +69,7 @@
<div <div
class="current-user-grid grid items-center gap-4 py-3 px-6 md:px-8 border-b" class="current-user-grid grid items-center gap-4 py-3 px-6 md:px-8 border-b"
> >
<div>{{ currentUser.index }}</div> <div>{{ currentUser.idx }}</div>
<div>{{ currentUser.highRank }}</div> <div>{{ currentUser.highRank }}</div>
<div> <div>
<div> <div>

View File

@ -5,7 +5,7 @@ export interface CurrentUser {
currentLocation?: string; currentLocation?: string;
gameMoney?: number; gameMoney?: number;
highRank?: string; highRank?: string;
index?: number; idx?: number;
level?: string; level?: string;
ownCash?: number; ownCash?: number;
ownComp?: number; ownComp?: number;

View File

@ -71,20 +71,46 @@
<div <div
class="partner-grid grid items-center gap-4 py-3 px-6 md:px-8 border-b" class="partner-grid grid items-center gap-4 py-3 px-6 md:px-8 border-b"
> >
<div>관리</div> <div>
<div>요율</div> <button mat-button [matMenuTriggerFor]="menu">관리</button>
<mat-menu #menu="matMenu">
<button mat-menu-item>보유금지급/회수</button>
<button mat-menu-item>수수료설정</button>
<button mat-menu-item>콤프지급/회수</button>
<button mat-menu-item>쿠폰머니지급/회수</button>
<button mat-menu-item>쪽지보내기</button>
<button mat-menu-item>배팅리스트</button>
</mat-menu>
</div>
<div
matTooltip="요율확인
카지노-바카라:0%&nbsp;&nbsp;&nbsp;&nbsp;
카지노-룰렛:0%&nbsp;&nbsp;&nbsp;&nbsp;
카지노-드레곤타이거:0%&nbsp;&nbsp;&nbsp;&nbsp;
카지노-그외:0%&nbsp;&nbsp;&nbsp;&nbsp;
슬롯:0%&nbsp;&nbsp;&nbsp;&nbsp;
카지노루징:0%&nbsp;&nbsp;&nbsp;&nbsp;
슬롯루징:0%"
>
요율
</div>
<div> <div>
{{ partner.branchCount }}{{ partner.divisionCount {{ partner.branchCount }}{{ partner.divisionCount
}}{{ partner.officeCount }}{{ partner.storeCount }}{{ partner.officeCount }}{{ partner.storeCount
}}{{ partner.memberCount }} }}{{ partner.memberCount }}
</div> </div>
<div> <!-- 아이디/닉네임/연락처 -->
<div
(click)="viewUserDetail(partner.id)"
style="cursor: pointer"
>
{{ partner.signinId }} {{ partner.signinId }}
<hr style="margin: 7px 0px" /> <hr style="margin: 7px 0px" />
{{ partner.nickname }} {{ partner.nickname }}
<hr style="margin: 7px 0px" /> <hr style="margin: 7px 0px" />
{{ partner.phoneNumber }} {{ partner.phoneNumber }}
</div> </div>
<!-- 등급/레벨/상태 -->
<div> <div>
{{ partner.rank }} {{ partner.rank }}
<hr style="margin: 7px 0px" /> <hr style="margin: 7px 0px" />
@ -92,12 +118,15 @@
<hr style="margin: 7px 0px" /> <hr style="margin: 7px 0px" />
{{ partner.state }} {{ partner.state }}
</div> </div>
<!-- 예금주 -->
<div class="hidden sm:block"> <div class="hidden sm:block">
{{ partner.accountHolder }} {{ partner.accountHolder }}
</div> </div>
<!-- 정산종류 -->
<div class="hidden md:block"> <div class="hidden md:block">
{{ partner.calculateType }} {{ partner.calculateType }}
</div> </div>
<!-- 보유금 -->
<div class="hidden md:block"> <div class="hidden md:block">
캐쉬{{ partner.ownCash }} 캐쉬{{ partner.ownCash }}
<hr style="margin: 7px 0px" /> <hr style="margin: 7px 0px" />
@ -105,24 +134,29 @@
<hr style="margin: 7px 0px" /> <hr style="margin: 7px 0px" />
쿠폰{{ partner.ownCoupon }} 쿠폰{{ partner.ownCoupon }}
</div> </div>
<!-- 충전금 -->
<div class="hidden lg:block"> <div class="hidden lg:block">
본인{{ partner.ownCharge }} 본인{{ partner.ownCharge }}
<hr style="margin: 7px 0px" /> <hr style="margin: 7px 0px" />
하부{{ partner.bottomCharge }} 하부{{ partner.bottomCharge }}
</div> </div>
<!-- 환전금 -->
<div class="hidden lg:block"> <div class="hidden lg:block">
본인{{ partner.ownExchange }} 본인{{ partner.ownExchange }}
<hr style="margin: 7px 0px" /> <hr style="margin: 7px 0px" />
하부{{ partner.bottomExchange }} 하부{{ partner.bottomExchange }}
</div> </div>
<!-- 수익금 -->
<div class="hidden lg:block"> <div class="hidden lg:block">
본인{{ partner.ownRevenue }} 본인{{ partner.ownRevenue }}
<hr style="margin: 7px 0px" /> <hr style="margin: 7px 0px" />
하부{{ partner.bottomRevenue }} 하부{{ partner.bottomRevenue }}
</div> </div>
<!-- 가입날짜 -->
<div class="hidden lg:block"> <div class="hidden lg:block">
{{ partner.registDate }} {{ partner.registDate }}
</div> </div>
<!-- 비고 -->
<div class="hidden lg:block"> <div class="hidden lg:block">
<button <button
mat-flat-button mat-flat-button

View File

@ -29,7 +29,6 @@ import {
import { fuseAnimations } from '@fuse/animations'; import { fuseAnimations } from '@fuse/animations';
import { FuseConfirmationService } from '@fuse/services/confirmation'; import { FuseConfirmationService } from '@fuse/services/confirmation';
import { User } from '../../user/models/user';
import { Partner } from '../models/partner'; import { Partner } from '../models/partner';
import { PartnerPagination } from '../models/partner-pagination'; import { PartnerPagination } from '../models/partner-pagination';
import { PartnerService } from '../services/partner.service'; import { PartnerService } from '../services/partner.service';
@ -73,7 +72,6 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
@ViewChild(MatSort) private _sort!: MatSort; @ViewChild(MatSort) private _sort!: MatSort;
partners$!: Observable<Partner[] | undefined>; partners$!: Observable<Partner[] | undefined>;
users$!: Observable<User[] | undefined>;
isLoading = false; isLoading = false;
searchInputControl = new FormControl(); searchInputControl = new FormControl();

View File

@ -12,9 +12,7 @@ import { MatSortModule } from '@angular/material/sort';
import { MatSelectModule } from '@angular/material/select'; import { MatSelectModule } from '@angular/material/select';
import { MatTooltipModule } from '@angular/material/tooltip'; import { MatTooltipModule } from '@angular/material/tooltip';
import { MatGridListModule } from '@angular/material/grid-list'; import { MatGridListModule } from '@angular/material/grid-list';
import { MatSlideToggleModule } from '@angular/material/slide-toggle'; import { MatMenuModule } from '@angular/material/menu';
import { MatRadioModule } from '@angular/material/radio';
import { MatCheckboxModule } from '@angular/material/checkbox';
import { TranslocoModule } from '@ngneat/transloco'; import { TranslocoModule } from '@ngneat/transloco';
@ -43,9 +41,7 @@ import { partnerRoutes } from './partner.routing';
MatSelectModule, MatSelectModule,
MatTooltipModule, MatTooltipModule,
MatGridListModule, MatGridListModule,
MatSlideToggleModule, MatMenuModule,
MatRadioModule,
MatCheckboxModule,
], ],
}) })
export class PartnerModule {} export class PartnerModule {}

View File

@ -0,0 +1,453 @@
// package: bet.beteran.c2se.backend.site
// file: c2se/backend/site.proto
import * as jspb from 'google-protobuf';
import * as protobuf_rpc_error_pb from '../../protobuf/rpc/error_pb';
import * as protobuf_pagination_pagination_pb from '../../protobuf/pagination/pagination_pb';
import * as protobuf_pagination_search_pb from '../../protobuf/pagination/search_pb';
import * as protobuf_pagination_sort_pb from '../../protobuf/pagination/sort_pb';
import * as models_domain_site_pb from '../../models/domain/site_pb';
export const SUBJECT_LIST_SITES: string;
export const SUBJECT_CREATE_SITE: string;
export const SUBJECT_UPDATE_SITE: string;
export const SUBJECT_DELETE_SITE: string;
export class ListSitesRequest extends jspb.Message {
hasPagination(): boolean;
clearPagination(): void;
getPagination(): protobuf_pagination_pagination_pb.Pagination | undefined;
setPagination(value?: protobuf_pagination_pagination_pb.Pagination): void;
clearSearchesList(): void;
getSearchesList(): Array<protobuf_pagination_search_pb.Search>;
setSearchesList(value: Array<protobuf_pagination_search_pb.Search>): void;
addSearches(
value?: protobuf_pagination_search_pb.Search,
index?: number
): protobuf_pagination_search_pb.Search;
clearSortsList(): void;
getSortsList(): Array<protobuf_pagination_sort_pb.Sort>;
setSortsList(value: Array<protobuf_pagination_sort_pb.Sort>): void;
addSorts(
value?: protobuf_pagination_sort_pb.Sort,
index?: number
): protobuf_pagination_sort_pb.Sort;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): ListSitesRequest.AsObject;
static toObject(
includeInstance: boolean,
msg: ListSitesRequest
): ListSitesRequest.AsObject;
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
};
static serializeBinaryToWriter(
message: ListSitesRequest,
writer: jspb.BinaryWriter
): void;
static deserializeBinary(bytes: Uint8Array): ListSitesRequest;
static deserializeBinaryFromReader(
message: ListSitesRequest,
reader: jspb.BinaryReader
): ListSitesRequest;
}
export namespace ListSitesRequest {
export type AsObject = {
pagination?: protobuf_pagination_pagination_pb.Pagination.AsObject;
searchesList: Array<protobuf_pagination_search_pb.Search.AsObject>;
sortsList: Array<protobuf_pagination_sort_pb.Sort.AsObject>;
};
}
export class ListSitesResponse extends jspb.Message {
hasError(): boolean;
clearError(): void;
getError(): protobuf_rpc_error_pb.Error | undefined;
setError(value?: protobuf_rpc_error_pb.Error): void;
hasResult(): boolean;
clearResult(): void;
getResult(): ListSitesResponse.Result | undefined;
setResult(value?: ListSitesResponse.Result): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): ListSitesResponse.AsObject;
static toObject(
includeInstance: boolean,
msg: ListSitesResponse
): ListSitesResponse.AsObject;
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
};
static serializeBinaryToWriter(
message: ListSitesResponse,
writer: jspb.BinaryWriter
): void;
static deserializeBinary(bytes: Uint8Array): ListSitesResponse;
static deserializeBinaryFromReader(
message: ListSitesResponse,
reader: jspb.BinaryReader
): ListSitesResponse;
}
export namespace ListSitesResponse {
export type AsObject = {
error?: protobuf_rpc_error_pb.Error.AsObject;
result?: ListSitesResponse.Result.AsObject;
};
export class Result extends jspb.Message {
clearSitesList(): void;
getSitesList(): Array<models_domain_site_pb.Site>;
setSitesList(value: Array<models_domain_site_pb.Site>): void;
addSites(
value?: models_domain_site_pb.Site,
index?: number
): models_domain_site_pb.Site;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): Result.AsObject;
static toObject(includeInstance: boolean, msg: Result): Result.AsObject;
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
};
static serializeBinaryToWriter(
message: Result,
writer: jspb.BinaryWriter
): void;
static deserializeBinary(bytes: Uint8Array): Result;
static deserializeBinaryFromReader(
message: Result,
reader: jspb.BinaryReader
): Result;
}
export namespace Result {
export type AsObject = {
sitesList: Array<models_domain_site_pb.Site.AsObject>;
};
}
}
export class CreateSiteRequest extends jspb.Message {
getUrl(): string;
setUrl(value: string): void;
getShow(): boolean;
setShow(value: boolean): void;
getCanUse(): boolean;
setCanUse(value: boolean): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): CreateSiteRequest.AsObject;
static toObject(
includeInstance: boolean,
msg: CreateSiteRequest
): CreateSiteRequest.AsObject;
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
};
static serializeBinaryToWriter(
message: CreateSiteRequest,
writer: jspb.BinaryWriter
): void;
static deserializeBinary(bytes: Uint8Array): CreateSiteRequest;
static deserializeBinaryFromReader(
message: CreateSiteRequest,
reader: jspb.BinaryReader
): CreateSiteRequest;
}
export namespace CreateSiteRequest {
export type AsObject = {
url: string;
show: boolean;
canUse: boolean;
};
}
export class CreateSiteResponse extends jspb.Message {
hasError(): boolean;
clearError(): void;
getError(): protobuf_rpc_error_pb.Error | undefined;
setError(value?: protobuf_rpc_error_pb.Error): void;
hasResult(): boolean;
clearResult(): void;
getResult(): CreateSiteResponse.Result | undefined;
setResult(value?: CreateSiteResponse.Result): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): CreateSiteResponse.AsObject;
static toObject(
includeInstance: boolean,
msg: CreateSiteResponse
): CreateSiteResponse.AsObject;
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
};
static serializeBinaryToWriter(
message: CreateSiteResponse,
writer: jspb.BinaryWriter
): void;
static deserializeBinary(bytes: Uint8Array): CreateSiteResponse;
static deserializeBinaryFromReader(
message: CreateSiteResponse,
reader: jspb.BinaryReader
): CreateSiteResponse;
}
export namespace CreateSiteResponse {
export type AsObject = {
error?: protobuf_rpc_error_pb.Error.AsObject;
result?: CreateSiteResponse.Result.AsObject;
};
export class Result extends jspb.Message {
hasSite(): boolean;
clearSite(): void;
getSite(): models_domain_site_pb.Site | undefined;
setSite(value?: models_domain_site_pb.Site): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): Result.AsObject;
static toObject(includeInstance: boolean, msg: Result): Result.AsObject;
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
};
static serializeBinaryToWriter(
message: Result,
writer: jspb.BinaryWriter
): void;
static deserializeBinary(bytes: Uint8Array): Result;
static deserializeBinaryFromReader(
message: Result,
reader: jspb.BinaryReader
): Result;
}
export namespace Result {
export type AsObject = {
site?: models_domain_site_pb.Site.AsObject;
};
}
}
export class UpdateSiteRequest extends jspb.Message {
getId(): string;
setId(value: string): void;
getUrl(): string;
setUrl(value: string): void;
getShow(): boolean;
setShow(value: boolean): void;
getCanUse(): boolean;
setCanUse(value: boolean): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): UpdateSiteRequest.AsObject;
static toObject(
includeInstance: boolean,
msg: UpdateSiteRequest
): UpdateSiteRequest.AsObject;
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
};
static serializeBinaryToWriter(
message: UpdateSiteRequest,
writer: jspb.BinaryWriter
): void;
static deserializeBinary(bytes: Uint8Array): UpdateSiteRequest;
static deserializeBinaryFromReader(
message: UpdateSiteRequest,
reader: jspb.BinaryReader
): UpdateSiteRequest;
}
export namespace UpdateSiteRequest {
export type AsObject = {
id: string;
url: string;
show: boolean;
canUse: boolean;
};
}
export class UpdateSiteResponse extends jspb.Message {
hasError(): boolean;
clearError(): void;
getError(): protobuf_rpc_error_pb.Error | undefined;
setError(value?: protobuf_rpc_error_pb.Error): void;
hasResult(): boolean;
clearResult(): void;
getResult(): UpdateSiteResponse.Result | undefined;
setResult(value?: UpdateSiteResponse.Result): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): UpdateSiteResponse.AsObject;
static toObject(
includeInstance: boolean,
msg: UpdateSiteResponse
): UpdateSiteResponse.AsObject;
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
};
static serializeBinaryToWriter(
message: UpdateSiteResponse,
writer: jspb.BinaryWriter
): void;
static deserializeBinary(bytes: Uint8Array): UpdateSiteResponse;
static deserializeBinaryFromReader(
message: UpdateSiteResponse,
reader: jspb.BinaryReader
): UpdateSiteResponse;
}
export namespace UpdateSiteResponse {
export type AsObject = {
error?: protobuf_rpc_error_pb.Error.AsObject;
result?: UpdateSiteResponse.Result.AsObject;
};
export class Result extends jspb.Message {
hasSite(): boolean;
clearSite(): void;
getSite(): models_domain_site_pb.Site | undefined;
setSite(value?: models_domain_site_pb.Site): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): Result.AsObject;
static toObject(includeInstance: boolean, msg: Result): Result.AsObject;
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
};
static serializeBinaryToWriter(
message: Result,
writer: jspb.BinaryWriter
): void;
static deserializeBinary(bytes: Uint8Array): Result;
static deserializeBinaryFromReader(
message: Result,
reader: jspb.BinaryReader
): Result;
}
export namespace Result {
export type AsObject = {
site?: models_domain_site_pb.Site.AsObject;
};
}
}
export class DeleteSiteRequest extends jspb.Message {
getId(): string;
setId(value: string): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): DeleteSiteRequest.AsObject;
static toObject(
includeInstance: boolean,
msg: DeleteSiteRequest
): DeleteSiteRequest.AsObject;
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
};
static serializeBinaryToWriter(
message: DeleteSiteRequest,
writer: jspb.BinaryWriter
): void;
static deserializeBinary(bytes: Uint8Array): DeleteSiteRequest;
static deserializeBinaryFromReader(
message: DeleteSiteRequest,
reader: jspb.BinaryReader
): DeleteSiteRequest;
}
export namespace DeleteSiteRequest {
export type AsObject = {
id: string;
};
}
export class DeleteSiteResponse extends jspb.Message {
hasError(): boolean;
clearError(): void;
getError(): protobuf_rpc_error_pb.Error | undefined;
setError(value?: protobuf_rpc_error_pb.Error): void;
hasResult(): boolean;
clearResult(): void;
getResult(): DeleteSiteResponse.Result | undefined;
setResult(value?: DeleteSiteResponse.Result): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): DeleteSiteResponse.AsObject;
static toObject(
includeInstance: boolean,
msg: DeleteSiteResponse
): DeleteSiteResponse.AsObject;
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
};
static serializeBinaryToWriter(
message: DeleteSiteResponse,
writer: jspb.BinaryWriter
): void;
static deserializeBinary(bytes: Uint8Array): DeleteSiteResponse;
static deserializeBinaryFromReader(
message: DeleteSiteResponse,
reader: jspb.BinaryReader
): DeleteSiteResponse;
}
export namespace DeleteSiteResponse {
export type AsObject = {
error?: protobuf_rpc_error_pb.Error.AsObject;
result?: DeleteSiteResponse.Result.AsObject;
};
export class Result extends jspb.Message {
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): Result.AsObject;
static toObject(includeInstance: boolean, msg: Result): Result.AsObject;
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
};
static serializeBinaryToWriter(
message: Result,
writer: jspb.BinaryWriter
): void;
static deserializeBinary(bytes: Uint8Array): Result;
static deserializeBinaryFromReader(
message: Result,
reader: jspb.BinaryReader
): Result;
}
export namespace Result {
export type AsObject = {};
}
}

File diff suppressed because it is too large Load Diff