From 843820ea9f357220d69f3795f3289ee41eed355c Mon Sep 17 00:00:00 2001 From: Kostya Date: Sun, 23 Aug 2026 14:05:29 +0000 Subject: model: relocate market DTOs out of the flat api package Move AccountDTO/MarketDTO/MarketStateDTO/PurchaseReceiptDTO/TradeRowDTO out of the catch-all api package into model.market (and LedgerDTO into model.ledger), matching the existing model.event convention so DTOs live next to the domain they describe rather than in the interface package. Relocate LedgerMapper from mapper.v2 to infrastructure.adapter to match the module's established package layout, and update all call sites and imports accordingly. Also register the ui-desktop module in the build tooling: add it to MODULES, add openjfx to the shipped runtime libs, and generalize package.sh so each executable module (ui-console, ui-desktop) gets its own Main-Class/Class-Path manifest and run script instead of special-casing ui-console. Fold long Class-Path manifest lines at 72 bytes per the JAR spec, since adding ui-desktop's dependencies pushed the line past the limit. --- api/src/main/java/market/guess/model/ledger/LedgerDTO.java | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 api/src/main/java/market/guess/model/ledger/LedgerDTO.java (limited to 'api/src/main/java/market/guess/model/ledger') diff --git a/api/src/main/java/market/guess/model/ledger/LedgerDTO.java b/api/src/main/java/market/guess/model/ledger/LedgerDTO.java new file mode 100644 index 0000000..d527c12 --- /dev/null +++ b/api/src/main/java/market/guess/model/ledger/LedgerDTO.java @@ -0,0 +1,6 @@ +package market.guess.model.ledger; + +import java.util.List; + +public record LedgerDTO( + String owner, String balance, boolean blocked, List entries) {} -- cgit v1.2.3