How shenghui-waa/tokenordermgmt works
TokenOrderMgmt is a local API-token purchasing and invoicing records manager, not a payment or token-issuance system. Users manage orders, providers, invoice titles, invoices, and trashed orders through a React app; the app loads backend records, applies client-side search/filtering and action validation, then submits changes to Spring services backed by SQLite. The README documents the broader UI capabilities; sampled sources confirm key order and invoice flows, but not every service implementation or frontend API mapping.
Main entry points: api.ts API client · App.tsx Pages and navigation · mapper Data access · impl Provider and title logic
Components 14
Frontend
- Pages and navigation
source/frontend/src/App.tsx - Business forms
source/frontend/src/pages/BusinessForm.tsx - API client
source/frontend/src/api.ts - Search and rules
source/frontend/src/domain.ts
HTTP API
- Order endpoints
source/backend/TokenOrderMgmt/src/main/java/com/shuye/tokenordermgmt/controller/TokenOrderController.java - Invoice endpoints
source/backend/TokenOrderMgmt/src/main/java/com/shuye/tokenordermgmt/controller/InvoiceController.java - Provider endpoints
source/backend/TokenOrderMgmt/src/main/java/com/shuye/tokenordermgmt/controller/ProviderController.java - Title endpoints
source/backend/TokenOrderMgmt/src/main/java/com/shuye/tokenordermgmt/controller/InvoiceTitleController.java
Business Services
- Order management
source/backend/TokenOrderMgmt/src/main/java/com/shuye/tokenordermgmt/service/impl/TokenOrderServiceImpl.java - Invoice lifecycle
source/backend/TokenOrderMgmt/src/main/java/com/shuye/tokenordermgmt/service/impl/InvoiceServiceImpl.java - Provider and title logic
source/backend/TokenOrderMgmt/src/main/java/com/shuye/tokenordermgmt/service/impl
Persistence
- Data access
source/backend/TokenOrderMgmt/src/main/java/com/shuye/tokenordermgmt/mapper - SQLite records
Other components
- User
Connections 16
- User → Pages and navigation: uses
- Pages and navigation → Business forms: opens forms
- Pages and navigation → Search and rules: searches and validates
- Pages and navigation → API client: loads and submits
- API client → Order endpoints: HTTP requests
- API client → Invoice endpoints: HTTP requests
- API client → Provider endpoints: HTTP requests
- API client → Title endpoints: HTTP requests
- Order endpoints → Order management: dispatches
- Invoice endpoints → Invoice lifecycle: dispatches
- Provider endpoints → Provider and title logic: dispatches
- Title endpoints → Provider and title logic: dispatches
- Order management → Data access: reads and writes
- Invoice lifecycle → Data access: reads and writes
- Provider and title logic → Data access: data access
- Data access → SQLite records: persists records