How hteen/apple-store-helper works
Apple Store 预约助手 is a desktop GUI for monitoring iPhone pickup availability by region, store, and product. The user selects those options, adds watch items, and starts or pauses polling; on a match, the app pauses, opens Apple’s cart, and alerts locally and optionally through Bark. Region/product/store catalogs and persisted preferences support that workflow. The excerpts show the main GUI, catalog services, polling and alert behavior, and settings; other files are represented only where the tree or README supports them.
Main entry points: main.go GUI entry point · listen.go Watch and poll · store.go Store catalog · area.go Area service
Components 19
Desktop interface
- GUI entry point
main.go - Window handles
view/view.go
Region and catalog
- Area definitions
model/area.go - Area service
services/area.go - Store catalog
services/store.go - Product catalog
services/product.go - Store records
model/store.go - Product records
model/product.go - Embedded config
config/config.go - Regional catalog data
config/files
Availability monitoring
- Watch and poll
services/listen.go
Preferences
- Settings service
services/setting.go - User settings file
Alerts and resources
- Theme and sound
theme/theme.go - Bundled sound
theme/mp3
Other components
- User
- Apple availability API
- Apple cart page
- Bark notification API
Connections 23
- User → GUI entry point: uses
README.md - GUI entry point → Window handles: sets up window
main.go - GUI entry point → Area service: loads options
main.go - GUI entry point → Store catalog: loads options
main.go - GUI entry point → Product catalog: loads options
main.go - GUI entry point → Watch and poll: adds and controls
main.go - GUI entry point → Settings service: loads and saves
main.go - GUI entry point → Theme and sound: sets theme
main.go - Area service → Area definitions: reads regions
services/area.go - Area service → Embedded config: reads product data
services/area.go - Store catalog → Embedded config: reads store data
services/store.go - Embedded config → Regional catalog data: reads embedded files
config/config.go - Store catalog → Store records: builds records
services/store.go - Product catalog → Product records: builds records
- Watch and poll → Store catalog: looks up store
services/listen.go - Watch and poll → Product catalog: looks up product
services/listen.go - Watch and poll → Apple availability API: requests availability
services/listen.go - Watch and poll → Apple cart page: opens on match
services/listen.go - GUI entry point → User settings file: persists preferences
- Watch and poll → Window handles: shows match dialog
services/listen.go - Watch and poll → Theme and sound: plays alert
services/listen.go - Theme and sound → Bundled sound: loads resource
theme/theme.go - Watch and poll → Bark notification API: sends optional push
services/listen.go