Skip to main content

Agent Portal — Tổng quan

kioskgaming_agent là ứng dụng web SPA dành cho CDN Agent (đại lý) trong hệ sinh thái KioskGaming. Agent dùng portal này để quản lý shops, players, nạp/rút credits, phân phối credit xuống shop, cấu hình game mappings và gửi broadcast/popup.

Repo: kioskgaming_agent/


Vai trò trong hệ thống

Agent nằm ở tầng thứ ba trong phân cấp tài khoản:

Admin → Super Agent → Agent → Shop → Player
PortalĐối tượng sử dụng
Agent Portal (kioskgaming_agent)Đại lý CDN — quản lý shops và players
Shop Portal (kioskgaming_shop)Chủ shop — quản lý player tại shop
Player WebNgười chơi cuối

Agent Portal chỉ gọi API backend qua HTTPS. Không có giao tiếp trực tiếp giữa các frontend.


Hai loại ví của Agent

Tên fieldMục đích
Credits walletcredit_balanceSố dư chính — mua credit, phân phối xuống shop
USD online balanceonline_balance_netVí USD riêng — mua credits hoặc rút crypto

Công thức chuyển đổi: credits = USD ÷ cost_rate (cost rate do super agent/admin đặt).


Tính năng chính

NhómChức năng
DashboardSố dư credits/USD, thống kê shops/players, mua credit, phân phối credit
ShopsDanh sách, tạo shop, suspend/unsuspend, phân phối/rút credit
Shop detailOverview, security, credit/USD ledger, game mappings
PlayersDanh sách players thuộc shops của agent, chi tiết + lịch sử
TransactionsSổ credits (ledger), export CSV
Online transactionsSổ USD wallet, rút crypto, export CSV
Provider feesXem bảng phí provider (read-only)
Fraud indicatorsCờ gian lận player, phân tích withdrawal, resolve
CommunicationGửi popup/broadcast tới shop/player (nếu có quyền delegate)
SettingsCost rate (read-only), cảnh báo số dư thấp, bật 2FA

RouteLabelMobile bottom nav
/Home
/shopsShops
/playersPlayers
/transactionsTransactions
/online-transactionsOnline transactions
/provider-feesProvider fees
/fraud-indicatorsFraud indicators
/popups/sendSend popupChỉ khi can_delegate_popups === true
/broadcasts/sendSend broadcastChỉ khi can_delegate_popups === true
/settingsSettings

Tài liệu trong section này

TrangNội dung
Kiến trúc & Tech stackCấu trúc dự án, dependencies, state management, deploy
Routes & PagesToàn bộ route, component, luồng auth
Tích hợp APIDanh sách endpoint backend mà Agent gọi
Tính năng nghiệp vụChi tiết luồng shop, credit, player, rút tiền

Liên kết tài liệu liên quan