카지노머니파악 page 수정

This commit is contained in:
이담 정 2022-07-20 07:57:51 +00:00
parent 1ab80bd5a5
commit fc5141c709
16 changed files with 157 additions and 157 deletions

View File

@ -151,11 +151,11 @@ export const appRoutes: Route[] = [
),
},
{
path: 'casinomoney',
path: 'casino-money',
loadChildren: () =>
import(
'app/modules/admin/member/casinomoney/casinomoney.module'
).then((m: any) => m.CasinomoneyModule),
'app/modules/admin/member/casino-money/casino-money.module'
).then((m: any) => m.CasinoMoneyModule),
},
{
path: 'unconnected',

View File

@ -1,13 +1,13 @@
import { Injectable } from '@angular/core';
import { assign, cloneDeep } from 'lodash-es';
import { FuseMockApiService, FuseMockApiUtils } from '@fuse/lib/mock-api';
import { casinomoneys as casinomoneysData } from './data';
import { casinoMoneys as casinoMoneysData } from './data';
@Injectable({
providedIn: 'root',
})
export class MemberCasinomoneyMockApi {
private _casinomoneys: any[] = casinomoneysData;
export class MemberCasinoMoneyMockApi {
private _casinoMoneys: any[] = casinoMoneysData;
/**
* Constructor
@ -26,10 +26,10 @@ export class MemberCasinomoneyMockApi {
*/
registerHandlers(): void {
// -----------------------------------------------------------------------------------------------------
// @ Casinomoneys - GET
// @ CasinoMoneys - GET
// -----------------------------------------------------------------------------------------------------
this._fuseMockApiService
.onGet('api/apps/member/casinomoney/casinomoneys', 300)
.onGet('api/apps/member/casino-money/casino-moneys', 300)
.reply(({ request }) => {
// Get available queries
const search = request.params.get('search');
@ -38,12 +38,12 @@ export class MemberCasinomoneyMockApi {
const page = parseInt(request.params.get('page') ?? '1', 10);
const size = parseInt(request.params.get('size') ?? '10', 10);
// Clone the casinomoneys
let casinomoneys: any[] | null = cloneDeep(this._casinomoneys);
// Clone the casinoMoneys
let casinoMoneys: any[] | null = cloneDeep(this._casinoMoneys);
// Sort the casinomoneys
// Sort the casinoMoneys
if (sort === 'sku' || sort === 'name' || sort === 'active') {
casinomoneys.sort((a, b) => {
casinoMoneys.sort((a, b) => {
const fieldA = a[sort].toString().toUpperCase();
const fieldB = b[sort].toString().toUpperCase();
return order === 'asc'
@ -51,15 +51,15 @@ export class MemberCasinomoneyMockApi {
: fieldB.localeCompare(fieldA);
});
} else {
casinomoneys.sort((a, b) =>
casinoMoneys.sort((a, b) =>
order === 'asc' ? a[sort] - b[sort] : b[sort] - a[sort]
);
}
// If search exists...
if (search) {
// Filter the casinomoneys
casinomoneys = casinomoneys.filter(
// Filter the casinoMoneys
casinoMoneys = casinoMoneys.filter(
(contact: any) =>
contact.name &&
contact.name.toLowerCase().includes(search.toLowerCase())
@ -67,32 +67,32 @@ export class MemberCasinomoneyMockApi {
}
// Paginate - Start
const casinomoneysLength = casinomoneys.length;
const casinoMoneysLength = casinoMoneys.length;
// Calculate pagination details
const begin = page * size;
const end = Math.min(size * (page + 1), casinomoneysLength);
const lastPage = Math.max(Math.ceil(casinomoneysLength / size), 1);
const end = Math.min(size * (page + 1), casinoMoneysLength);
const lastPage = Math.max(Math.ceil(casinoMoneysLength / size), 1);
// Prepare the pagination object
let pagination = {};
// If the requested page number is bigger than
// the last possible page number, return null for
// casinomoneys but also send the last possible page so
// casinoMoneys but also send the last possible page so
// the app can navigate to there
if (page > lastPage) {
casinomoneys = null;
casinoMoneys = null;
pagination = {
lastPage,
};
} else {
// Paginate the results by size
casinomoneys = casinomoneys.slice(begin, end);
casinoMoneys = casinoMoneys.slice(begin, end);
// Prepare the pagination mock-api
pagination = {
length: casinomoneysLength,
length: casinoMoneysLength,
size: size,
page: page,
lastPage: lastPage,
@ -105,39 +105,39 @@ export class MemberCasinomoneyMockApi {
return [
200,
{
casinomoneys,
casinoMoneys,
pagination,
},
];
});
// -----------------------------------------------------------------------------------------------------
// @ Casinomoney - GET
// @ CasinoMoney - GET
// -----------------------------------------------------------------------------------------------------
this._fuseMockApiService
.onGet('api/apps/member/casinomoney/casinomoney')
.onGet('api/apps/member/casino-money/casino-money')
.reply(({ request }) => {
// Get the id from the params
const id = request.params.get('id');
// Clone the casinomoneys
const casinomoneys = cloneDeep(this._casinomoneys);
// Clone the casinoMoneys
const casinoMoneys = cloneDeep(this._casinoMoneys);
// Find the casinomoney
const casinomoney = casinomoneys.find((item: any) => item.id === id);
// Find the casinoMoney
const casinoMoney = casinoMoneys.find((item: any) => item.id === id);
// Return the response
return [200, casinomoney];
return [200, casinoMoney];
});
// -----------------------------------------------------------------------------------------------------
// @ Casinomoney - POST
// @ CasinoMoney - POST
// -----------------------------------------------------------------------------------------------------
this._fuseMockApiService
.onPost('api/apps/member/casinomoney/casinomoney')
.onPost('api/apps/member/casino-money/casino-money')
.reply(() => {
// Generate a new casinomoney
const newCasinomoney = {
// Generate a new casinoMoney
const newCasinoMoney = {
id: FuseMockApiUtils.guid(),
category: '',
name: 'A New User',
@ -159,54 +159,54 @@ export class MemberCasinomoneyMockApi {
active: false,
};
// Unshift the new casinomoney
this._casinomoneys.unshift(newCasinomoney);
// Unshift the new casinoMoney
this._casinoMoneys.unshift(newCasinoMoney);
// Return the response
return [200, newCasinomoney];
return [200, newCasinoMoney];
});
// -----------------------------------------------------------------------------------------------------
// @ Casinomoney - PATCH
// @ CasinoMoney - PATCH
// -----------------------------------------------------------------------------------------------------
this._fuseMockApiService
.onPatch('api/apps/member/casinomoney/casinomoney')
.onPatch('api/apps/member/casino-money/casino-money')
.reply(({ request }) => {
// Get the id and casinomoney
// Get the id and casinoMoney
const id = request.body.id;
const casinomoney = cloneDeep(request.body.casinomoney);
const casinoMoney = cloneDeep(request.body.casinoMoney);
// Prepare the updated casinomoney
let updatedCasinomoney = null;
// Prepare the updated casinoMoney
let updatedCasinoMoney = null;
// Find the casinomoney and update it
this._casinomoneys.forEach((item, index, casinomoneys) => {
// Find the casinoMoney and update it
this._casinoMoneys.forEach((item, index, casinoMoneys) => {
if (item.id === id) {
// Update the casinomoney
casinomoneys[index] = assign({}, casinomoneys[index], casinomoney);
// Update the casinoMoney
casinoMoneys[index] = assign({}, casinoMoneys[index], casinoMoney);
// Store the updated casinomoney
updatedCasinomoney = casinomoneys[index];
// Store the updated casinoMoney
updatedCasinoMoney = casinoMoneys[index];
}
});
// Return the response
return [200, updatedCasinomoney];
return [200, updatedCasinoMoney];
});
// -----------------------------------------------------------------------------------------------------
// @ Casinomoney - DELETE
// @ CasinoMoney - DELETE
// -----------------------------------------------------------------------------------------------------
this._fuseMockApiService
.onDelete('api/apps/member/casinomoney/casinomoney')
.onDelete('api/apps/member/casino-money/casino-money')
.reply(({ request }) => {
// Get the id
const id = request.params.get('id');
// Find the casinomoney and delete it
this._casinomoneys.forEach((item, index) => {
// Find the casinoMoney and delete it
this._casinoMoneys.forEach((item, index) => {
if (item.id === id) {
this._casinomoneys.splice(index, 1);
this._casinoMoneys.splice(index, 1);
}
});

View File

@ -1,6 +1,6 @@
/* eslint-disable */
export const casinomoneys = [
export const casinoMoneys = [
{
id: 'dsa01233',
category: 'b899ec30-b85a-40ab-bb1f-18a596d5c6de',

View File

@ -47,11 +47,11 @@ export const defaultNavigation: FuseNavigationItem[] = [
link: '/member/user',
},
{
id: 'member.casinomoney',
title: 'Casinomoney',
id: 'member.casino-money',
title: 'Casino Money',
type: 'basic',
icon: 'heroicons_outline:academic-cap',
link: '/member/casinomoney',
link: '/member/casino-money',
},
{
id: 'member.unconnected',

View File

@ -12,7 +12,7 @@ import { HelpCenterMockApi } from 'app/mock-api/apps/help-center/api';
import { IconsMockApi } from 'app/mock-api/ui/icons/api';
import { MailboxMockApi } from 'app/mock-api/apps/mailbox/api';
import { MemberUserMockApi } from 'app/mock-api/apps/member/user/api';
import { MemberCasinomoneyMockApi } from './apps/member/casinomoney/api';
import { MemberCasinoMoneyMockApi } from './apps/member/casino-money/api';
import { MemberUnconnectedMockApi } from './apps/member/unconnected/api';
import { MemberCurrentUserMockApi } from './apps/member/current-user/api';
import { MemberPartnerMockApi } from './apps/member/partner/api';
@ -85,7 +85,7 @@ export const mockApiServices = [
IconsMockApi,
MailboxMockApi,
MemberUserMockApi,
MemberCasinomoneyMockApi,
MemberCasinoMoneyMockApi,
MemberUnconnectedMockApi,
MemberCurrentUserMockApi,
MemberPartnerMockApi,

View File

@ -21,14 +21,14 @@ import { SharedModule } from 'app/shared/shared.module';
import { COMPONENTS } from './components';
import { casinomoneyRoutes } from './casinomoney.routing';
import { casinoMoneyRoutes } from './casino-money.routing';
@NgModule({
declarations: [COMPONENTS],
imports: [
TranslocoModule,
SharedModule,
RouterModule.forChild(casinomoneyRoutes),
RouterModule.forChild(casinoMoneyRoutes),
MatButtonModule,
MatFormFieldModule,
@ -45,4 +45,4 @@ import { casinomoneyRoutes } from './casinomoney.routing';
MatRadioModule,
],
})
export class CasinomoneyModule {}
export class CasinoMoneyModule {}

View File

@ -3,15 +3,15 @@ import { Route } from '@angular/router';
import { ListComponent } from './components/list.component';
import { ViewComponent } from '../user/components/view.component';
import { CasinomoneysResolver } from './resolvers/casinomoney.resolver';
import { CasinoMoneysResolver } from './resolvers/casino-money.resolver';
import { UserResolver } from '../user/resolvers/user.resolver';
export const casinomoneyRoutes: Route[] = [
export const casinoMoneyRoutes: Route[] = [
{
path: '',
component: ListComponent,
resolve: {
casinomoneys: CasinomoneysResolver,
casinoMoneys: CasinoMoneysResolver,
},
},
{

View File

@ -119,8 +119,8 @@
<div
class="flex flex-col flex-auto sm:mb-18 overflow-hidden sm:overflow-y-auto"
>
<ng-container *ngIf="casinomoneys$ | async as casinomoneys">
<ng-container *ngIf="casinomoneys.length > 0; else noCasinomoney">
<ng-container *ngIf="casinoMoneys$ | async as casinoMoneys">
<ng-container *ngIf="casinoMoneys.length > 0; else noCasinoMoney">
<div class="grid">
<!-- Header -->
<div
@ -144,9 +144,9 @@
<div class="hidden sm:block">상부</div>
</div>
<!-- Rows -->
<ng-container *ngIf="casinomoneys$ | async as casinomoneys">
<ng-container *ngIf="casinoMoneys$ | async as casinoMoneys">
<ng-container
*ngFor="let casinomoney of casinomoneys; trackBy: __trackByFn"
*ngFor="let casinoMoney of casinoMoneys; trackBy: __trackByFn"
>
<div
class="inventory-grid grid items-center gap-4 py-3 px-6 md:px-8 border-b"
@ -194,16 +194,16 @@
[총판]
[매장]"
>
{{ casinomoney.highRank }}
{{ casinoMoney.highRank }}
</button>
</div>
<!-- rank -->
<div class="hidden sm:block truncate">
{{ casinomoney.rank }}
{{ casinoMoney.rank }}
</div>
<!-- level -->
<div class="hidden sm:block truncate">
LV.{{ casinomoney.level }}
LV.{{ casinoMoney.level }}
</div>
<!-- id -->
@ -215,35 +215,35 @@
class="hidden sm:block truncate"
(click)="viewUserDetail(user.id!)"
>
{{ casinomoney.id }}
{{ casinoMoney.id }}
</div>
</ng-container>
</ng-container>
<!-- nickname -->
<div class="hidden sm:block truncate">
{{ casinomoney.nickname }}
{{ casinoMoney.nickname }}
</div>
<!-- accountHolder -->
<div class="hidden sm:block truncate">
{{ casinomoney.accountHolder }}
{{ casinoMoney.accountHolder }}
</div>
<!-- contact -->
<div class="hidden sm:block truncate">
{{ casinomoney.contact }}
{{ casinoMoney.contact }}
</div>
<!-- reserve -->
<div class="hidden sm:block truncate">
캐쉬{{ casinomoney.cash }} 콤프{{ casinomoney.comp }} 쿠폰{{
casinomoney.coupon
캐쉬{{ casinoMoney.cash }} 콤프{{ casinoMoney.comp }} 쿠폰{{
casinoMoney.coupon
}}
</div>
<!-- gameMoney -->
<div class="hidden sm:block truncate">
{{ casinomoney.gameMoney }}
{{ casinoMoney.gameMoney }}
</div>
<!-- casinoCash -->
@ -258,28 +258,28 @@
<!-- todayComp -->
<div class="hidden sm:block truncate">
{{ casinomoney.todayComp }}P
{{ casinoMoney.todayComp }}P
</div>
<!-- total -->
<div class="hidden sm:block truncate">
입금{{ casinomoney.deposit }} 출금{{
casinomoney.withdraw
입금{{ casinoMoney.deposit }} 출금{{
casinoMoney.withdraw
}}
차익{{ casinomoney.margin }}
차익{{ casinoMoney.margin }}
</div>
<!-- log -->
<div class="hidden sm:block truncate">
가입{{ casinomoney.accession }} 최종{{
casinomoney.final
가입{{ casinoMoney.accession }} 최종{{
casinoMoney.final
}}
IP{{ casinomoney.ip }}
IP{{ casinoMoney.ip }}
</div>
<!-- state -->
<div class="hidden sm:block truncate">
{{ casinomoney.state }}
{{ casinoMoney.state }}
</div>
<!-- top -->
@ -303,7 +303,7 @@
</ng-container>
</ng-container>
<ng-template #noCasinomoney>
<ng-template #noCasinoMoney>
<div
class="p-8 sm:p-16 border-t text-4xl font-semibold tracking-tight text-center"
>

View File

@ -30,13 +30,13 @@ import { fuseAnimations } from '@fuse/animations';
import { FuseConfirmationService } from '@fuse/services/confirmation';
import { User } from '../../user/models/user';
import { Casinomoney } from '../models/casinomoney';
import { CasinomoneyPagination } from '../models/casinomoney-pagination';
import { CasinomoneyService } from '../services/casinomoney.service';
import { CasinoMoney } from '../models/casino-money';
import { CasinoMoneyPagination } from '../models/casino-money-pagination';
import { CasinoMoneyService } from '../services/casino-money.service';
import { Router } from '@angular/router';
@Component({
selector: 'casinomoney-list',
selector: 'casino-money-list',
templateUrl: './list.component.html',
styles: [
/* language=SCSS */
@ -66,13 +66,13 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
@ViewChild(MatPaginator) private _paginator!: MatPaginator;
@ViewChild(MatSort) private _sort!: MatSort;
casinomoneys$!: Observable<Casinomoney[] | undefined>;
casinoMoneys$!: Observable<CasinoMoney[] | undefined>;
users$!: Observable<User[] | undefined>;
isLoading = false;
searchInputControl = new FormControl();
selectedCasinomoney?: Casinomoney;
pagination?: CasinomoneyPagination;
selectedCasinoMoney?: CasinoMoney;
pagination?: CasinoMoneyPagination;
private _unsubscribeAll: Subject<any> = new Subject<any>();
@ -83,7 +83,7 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
private _changeDetectorRef: ChangeDetectorRef,
private _fuseConfirmationService: FuseConfirmationService,
private _formBuilder: FormBuilder,
private _casinomoneyService: CasinomoneyService,
private _casinoMoneyService: CasinoMoneyService,
private router: Router
) {}
@ -96,9 +96,9 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
*/
ngOnInit(): void {
// Get the pagination
this._casinomoneyService.pagination$
this._casinoMoneyService.pagination$
.pipe(takeUntil(this._unsubscribeAll))
.subscribe((pagination: CasinomoneyPagination | undefined) => {
.subscribe((pagination: CasinoMoneyPagination | undefined) => {
// Update the pagination
this.pagination = pagination;
@ -107,7 +107,7 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
});
// Get the products
this.casinomoneys$ = this._casinomoneyService.casinomoneys$;
this.casinoMoneys$ = this._casinoMoneyService.casinoMoneys$;
}
/**
@ -125,7 +125,7 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
// Mark for check
this._changeDetectorRef.markForCheck();
// If the casinomoney changes the sort order...
// If the casinoMoney changes the sort order...
this._sort.sortChange
.pipe(takeUntil(this._unsubscribeAll))
.subscribe(() => {
@ -138,7 +138,7 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
.pipe(
switchMap(() => {
this.isLoading = true;
return this._casinomoneyService.getCasinomoneys(
return this._casinoMoneyService.getCasinoMoneys(
this._paginator.pageIndex,
this._paginator.pageSize,
this._sort.active,

View File

@ -1,4 +1,4 @@
export interface CasinomoneyPagination {
export interface CasinoMoneyPagination {
length: number;
size: number;
page: number;

View File

@ -1,4 +1,4 @@
export interface Casinomoney {
export interface CasinoMoney {
id?: string;
nickname?: string;
highRank?: string;

View File

@ -7,19 +7,19 @@ import {
} from '@angular/router';
import { catchError, Observable, throwError } from 'rxjs';
import { Casinomoney } from '../models/casinomoney';
import { CasinomoneyPagination } from '../models/casinomoney-pagination';
import { CasinomoneyService } from '../services/casinomoney.service';
import { CasinoMoney } from '../models/casino-money';
import { CasinoMoneyPagination } from '../models/casino-money-pagination';
import { CasinoMoneyService } from '../services/casino-money.service';
@Injectable({
providedIn: 'root',
})
export class CasinomoneyResolver implements Resolve<any> {
export class CasinoMoneyResolver implements Resolve<any> {
/**
* Constructor
*/
constructor(
private _casinomoneyService: CasinomoneyService,
private _casinoMoneyService: CasinoMoneyService,
private _router: Router
) {}
@ -36,9 +36,9 @@ export class CasinomoneyResolver implements Resolve<any> {
resolve(
route: ActivatedRouteSnapshot,
state: RouterStateSnapshot
): Observable<Casinomoney | undefined> {
return this._casinomoneyService
.getCasinomoneyById(route.paramMap.get('id'))
): Observable<CasinoMoney | undefined> {
return this._casinoMoneyService
.getCasinoMoneyById(route.paramMap.get('id'))
.pipe(
// Error here means the requested product is not available
catchError((error) => {
@ -61,11 +61,11 @@ export class CasinomoneyResolver implements Resolve<any> {
@Injectable({
providedIn: 'root',
})
export class CasinomoneysResolver implements Resolve<any> {
export class CasinoMoneysResolver implements Resolve<any> {
/**
* Constructor
*/
constructor(private _casinomoneyService: CasinomoneyService) {}
constructor(private _casinoMoneyService: CasinoMoneyService) {}
// -----------------------------------------------------------------------------------------------------
// @ Public methods
@ -81,9 +81,9 @@ export class CasinomoneysResolver implements Resolve<any> {
route: ActivatedRouteSnapshot,
state: RouterStateSnapshot
): Observable<{
pagination: CasinomoneyPagination;
casinomoneys: Casinomoney[];
pagination: CasinoMoneyPagination;
casinoMoneys: CasinoMoney[];
}> {
return this._casinomoneyService.getCasinomoneys();
return this._casinoMoneyService.getCasinoMoneys();
}
}

View File

@ -12,21 +12,21 @@ import {
throwError,
} from 'rxjs';
import { Casinomoney } from '../models/casinomoney';
import { CasinomoneyPagination } from '../models/casinomoney-pagination';
import { CasinoMoney } from '../models/casino-money';
import { CasinoMoneyPagination } from '../models/casino-money-pagination';
@Injectable({
providedIn: 'root',
})
export class CasinomoneyService {
export class CasinoMoneyService {
// Private
private __pagination = new BehaviorSubject<CasinomoneyPagination | undefined>(
private __pagination = new BehaviorSubject<CasinoMoneyPagination | undefined>(
undefined
);
private __casinomoney = new BehaviorSubject<Casinomoney | undefined>(
private __casinoMoney = new BehaviorSubject<CasinoMoney | undefined>(
undefined
);
private __casinomoneys = new BehaviorSubject<Casinomoney[] | undefined>(
private __casinoMoneys = new BehaviorSubject<CasinoMoney[] | undefined>(
undefined
);
@ -42,22 +42,22 @@ export class CasinomoneyService {
/**
* Getter for pagination
*/
get pagination$(): Observable<CasinomoneyPagination | undefined> {
get pagination$(): Observable<CasinoMoneyPagination | undefined> {
return this.__pagination.asObservable();
}
/**
* Getter for casinomoney
* Getter for casinoMoney
*/
get casinomoney$(): Observable<Casinomoney | undefined> {
return this.__casinomoney.asObservable();
get casinoMoney$(): Observable<CasinoMoney | undefined> {
return this.__casinoMoney.asObservable();
}
/**
* Getter for casinomoneys
* Getter for casinoMoneys
*/
get casinomoneys$(): Observable<Casinomoney[] | undefined> {
return this.__casinomoneys.asObservable();
get casinoMoneys$(): Observable<CasinoMoney[] | undefined> {
return this.__casinoMoneys.asObservable();
}
// -----------------------------------------------------------------------------------------------------
@ -65,7 +65,7 @@ export class CasinomoneyService {
// -----------------------------------------------------------------------------------------------------
/**
* Get casinomoneys
* Get casinoMoneys
*
*
* @param page
@ -74,19 +74,19 @@ export class CasinomoneyService {
* @param order
* @param search
*/
getCasinomoneys(
getCasinoMoneys(
page: number = 0,
size: number = 10,
sort: string = 'name',
order: 'asc' | 'desc' | '' = 'asc',
search: string = ''
): Observable<{
pagination: CasinomoneyPagination;
casinomoneys: Casinomoney[];
pagination: CasinoMoneyPagination;
casinoMoneys: CasinoMoney[];
}> {
return this._httpClient
.get<{ pagination: CasinomoneyPagination; casinomoneys: Casinomoney[] }>(
'api/apps/member/casinomoney/casinomoneys',
.get<{ pagination: CasinoMoneyPagination; casinoMoneys: CasinoMoney[] }>(
'api/apps/member/casino-money/casino-moneys',
{
params: {
page: '' + page,
@ -100,7 +100,7 @@ export class CasinomoneyService {
.pipe(
tap((response) => {
this.__pagination.next(response.pagination);
this.__casinomoneys.next(response.casinomoneys);
this.__casinoMoneys.next(response.casinoMoneys);
})
);
}
@ -108,19 +108,19 @@ export class CasinomoneyService {
/**
* Get product by id
*/
getCasinomoneyById(id: string | null): Observable<Casinomoney> {
return this.__casinomoneys.pipe(
getCasinoMoneyById(id: string | null): Observable<CasinoMoney> {
return this.__casinoMoneys.pipe(
take(1),
map((casinomoneys) => {
map((casinoMoneys) => {
// Find the product
const casinomoney =
casinomoneys?.find((item) => item.id === id) || undefined;
const casinoMoney =
casinoMoneys?.find((item) => item.id === id) || undefined;
// Update the product
this.__casinomoney.next(casinomoney);
this.__casinoMoney.next(casinoMoney);
// Return the product
return casinomoney;
return casinoMoney;
}),
switchMap((product) => {
if (!product) {
@ -135,21 +135,21 @@ export class CasinomoneyService {
/**
* Create product
*/
createCasinomoney(): Observable<Casinomoney> {
return this.casinomoneys$.pipe(
createCasinoMoney(): Observable<CasinoMoney> {
return this.casinoMoneys$.pipe(
take(1),
switchMap((casinomoneys) =>
switchMap((casinoMoneys) =>
this._httpClient
.post<Casinomoney>('api/apps/member/casinomoney/product', {})
.post<CasinoMoney>('api/apps/member/casino-money/product', {})
.pipe(
map((newCasinomoney) => {
// Update the casinomoneys with the new product
if (!!casinomoneys) {
this.__casinomoneys.next([newCasinomoney, ...casinomoneys]);
map((newCasinoMoney) => {
// Update the casinoMoneys with the new product
if (!!casinoMoneys) {
this.__casinoMoneys.next([newCasinoMoney, ...casinoMoneys]);
}
// Return the new product
return newCasinomoney;
return newCasinoMoney;
})
)
)

View File

@ -3,7 +3,7 @@
"Dashboards": "Dashboards",
"Member": "Member",
"User": "User",
"Casinomoney": "Casinomoney",
"Casino Money": "Casino Money",
"Unconnected": "Unconnected",
"Project": "Project",
"All Partner": "All Partner",

View File

@ -3,7 +3,7 @@
"Dashboards": "대쉬보드",
"Member": "회원",
"User": "사용자",
"Casinomoney": "CASINO 머니파악",
"Casino Money": "CASINO 머니파악",
"Unconnected": "장기미접속회원",
"Project": "프로젝트",
"partner-management": "파트너관리",