aboutsummaryrefslogtreecommitdiffstats
path: root/ui-console/src/main/java/market/guess
diff options
context:
space:
mode:
authorKostya <mail@sartin.in>2026-08-23 14:05:29 +0000
committerKostya <mail@sartin.in>2026-08-23 14:05:29 +0000
commit843820ea9f357220d69f3795f3289ee41eed355c (patch)
tree57323a2e1cd4d4c0addd57eadc31d0f36c612e96 /ui-console/src/main/java/market/guess
parentfbfd2e275e9d645e4ec8a1874bc57d98b1c38300 (diff)
downloadguess-market-843820ea9f357220d69f3795f3289ee41eed355c.tar.gz
guess-market-843820ea9f357220d69f3795f3289ee41eed355c.tar.xz
guess-market-843820ea9f357220d69f3795f3289ee41eed355c.zip
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.
Diffstat (limited to 'ui-console/src/main/java/market/guess')
-rw-r--r--ui-console/src/main/java/market/guess/ui/console/io/InputProcessor.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/ui-console/src/main/java/market/guess/ui/console/io/InputProcessor.java b/ui-console/src/main/java/market/guess/ui/console/io/InputProcessor.java
index 3ff752c..69a9a9a 100644
--- a/ui-console/src/main/java/market/guess/ui/console/io/InputProcessor.java
+++ b/ui-console/src/main/java/market/guess/ui/console/io/InputProcessor.java
@@ -5,9 +5,9 @@ import java.nio.file.Path;
5import java.util.List; 5import java.util.List;
6import java.util.Scanner; 6import java.util.Scanner;
7import java.util.function.Function; 7import java.util.function.Function;
8import market.guess.api.MarketStateDTO; 8import market.guess.model.market.MarketStateDTO;
9import market.guess.api.PurchaseReceiptDTO; 9import market.guess.model.market.PurchaseReceiptDTO;
10import market.guess.api.TradeRowDTO; 10import market.guess.model.market.TradeRowDTO;
11 11
12public final class InputProcessor { 12public final class InputProcessor {
13 private static final int OPTION_WIDTH = 18; 13 private static final int OPTION_WIDTH = 18;
@@ -192,4 +192,3 @@ public final class InputProcessor {
192 padRight(at, AT_WIDTH)); 192 padRight(at, AT_WIDTH));
193 } 193 }
194} 194}
195