# prgrms-web-devcourse-final-project/web7_9_200ok_be architecture

> Architecture diagram of the GitHub repository prgrms-web-devcourse-final-project/web7_9_200ok_be, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-14). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/prgrms-web-devcourse-final-project/web7_9_200ok_be
- Repository: https://github.com/prgrms-web-devcourse-final-project/web7_9_200ok_be

## Overview

WindFall is a Dutch-style descending-price secondhand auction marketplace. A buyer discovers auctions, watches the price fall, and may purchase; sellers create auctions with a stop-loss boundary. The repository also supports social sign-in, tags and favorites, live auction interactions, payment, trade chat, reviews, and notifications. The graph combines documented product capabilities with relationships visible in the supplied source index and excerpts; unsampled feature wiring is left unasserted.

Main entry points: [`src/main/java/com/windfall/api/notification/service/SseService.java`](https://github.com/prgrms-web-devcourse-final-project/web7_9_200ok_be/blob/develop/src/main/java/com/windfall/api/notification/service/SseService.java) (Notifications and SSE), [`src/main/java/com/windfall/api/auction/service/AuctionService.java`](https://github.com/prgrms-web-devcourse-final-project/web7_9_200ok_be/blob/develop/src/main/java/com/windfall/api/auction/service/AuctionService.java) (Auction API), [`src/main/java/com/windfall/api/payment/service/PaymentService.java`](https://github.com/prgrms-web-devcourse-final-project/web7_9_200ok_be/blob/develop/src/main/java/com/windfall/api/payment/service/PaymentService.java) (Payment confirmation), [`src/main/java/com/windfall/domain/auction/entity/Auction.java`](https://github.com/prgrms-web-devcourse-final-project/web7_9_200ok_be/blob/develop/src/main/java/com/windfall/domain/auction/entity/Auction.java) (Auction pricing)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_identity["Identity and accounts"]
  node_oauth["Social sign-in"]
  node_user["User accounts<br/>[UserService.java]"]
  node_mypage["Account dashboard"]
end

subgraph group_market["Auction marketplace"]
  node_auctionapi["Auction API"]
  node_auction["Auction pricing<br/>[Auction.java]"]
  node_liveauction["Live auction updates"]
  node_scheduler["Auction scheduler"]
end

subgraph group_trade["Trade and communication"]
  node_payment["Payment confirmation"]
  node_trade["Trade lifecycle<br/>[Trade.java]"]
  node_chat["Trade chat"]
  node_review["Buyer reviews<br/>[ReviewService.java]"]
end

subgraph group_engagement["Buyer engagement"]
  node_tags["Tag search<br/>[TagService.java]"]
  node_favorites["Auction favorites"]
  node_ranking["Popular ranking"]
  node_notifications["Notifications and SSE<br/>[SseService.java]"]
  node_notificationprefs["Notification settings"]
end

subgraph group_platform["Persistence and infrastructure"]
  node_auctionstore[("Auction records")]
  node_relational[("Relational data")]
  node_redis[("Redis<br/>[RedisConfig.java]")]
end

node_buyer(("Buyer or seller"))
node_toss["Toss Payments"]

node_buyer -->|"signs in"| node_oauth
node_oauth -->|"authenticates"| node_user
node_buyer -->|"browses auctions"| node_auctionapi
node_auctionapi -->|"queries auctions"| node_auctionstore
node_auctionapi -->|"uses pricing"| node_auction
node_auction -.->|"persists state"| node_auctionstore
node_buyer -->|"searches tags"| node_tags
node_buyer -->|"saves auctions"| node_favorites
node_buyer -->|"views popular"| node_ranking
node_buyer -->|"watches live"| node_liveauction
node_scheduler -->|"lowers price"| node_auction
node_buyer -->|"confirms purchase"| node_payment
node_payment -->|"confirms payment"| node_toss
node_payment -.->|"updates trade"| node_trade
node_buyer -->|"messages seller"| node_chat
node_chat -->|"checks trade status"| node_trade
node_buyer -->|"reviews purchase"| node_review
node_review -->|"sends review alert"| node_notifications
node_buyer -->|"views account"| node_mypage
node_buyer -->|"receives alerts"| node_notifications
node_buyer -.->|"sets alerts"| node_notificationprefs
node_notifications -->|"uses cooldown"| node_redis
node_notifications -->|"stores alerts"| node_relational

click node_oauth "https://github.com/prgrms-web-devcourse-final-project/web7_9_200ok_be/blob/develop/src/main/java/com/windfall/api/user/service/OAuthKakaoService.java"
click node_user "https://github.com/prgrms-web-devcourse-final-project/web7_9_200ok_be/blob/develop/src/main/java/com/windfall/api/user/service/UserService.java"
click node_auctionapi "https://github.com/prgrms-web-devcourse-final-project/web7_9_200ok_be/blob/develop/src/main/java/com/windfall/api/auction/service/AuctionService.java"
click node_auction "https://github.com/prgrms-web-devcourse-final-project/web7_9_200ok_be/blob/develop/src/main/java/com/windfall/domain/auction/entity/Auction.java"
click node_auctionstore "https://github.com/prgrms-web-devcourse-final-project/web7_9_200ok_be/blob/develop/src/main/java/com/windfall/domain/auction/repository/AuctionRepository.java"
click node_tags "https://github.com/prgrms-web-devcourse-final-project/web7_9_200ok_be/blob/develop/src/main/java/com/windfall/api/tag/service/TagService.java"
click node_favorites "https://github.com/prgrms-web-devcourse-final-project/web7_9_200ok_be/blob/develop/src/main/java/com/windfall/api/like/service/AuctionLikeService.java"
click node_ranking "https://github.com/prgrms-web-devcourse-final-project/web7_9_200ok_be/blob/develop/src/main/java/com/windfall/api/auction/service/AuctionService.java"
click node_liveauction "https://github.com/prgrms-web-devcourse-final-project/web7_9_200ok_be/blob/develop/src/main/java/com/windfall/api/auction/service/AuctionInteractionService.java"
click node_scheduler "https://github.com/prgrms-web-devcourse-final-project/web7_9_200ok_be/blob/develop/src/main/java/com/windfall/api/auction/service/AuctionSchedulerService.java"
click node_payment "https://github.com/prgrms-web-devcourse-final-project/web7_9_200ok_be/blob/develop/src/main/java/com/windfall/api/payment/service/PaymentService.java"
click node_trade "https://github.com/prgrms-web-devcourse-final-project/web7_9_200ok_be/blob/develop/src/main/java/com/windfall/domain/trade/entity/Trade.java"
click node_chat "https://github.com/prgrms-web-devcourse-final-project/web7_9_200ok_be/blob/develop/src/main/java/com/windfall/api/chat/service/ChatRoomService.java"
click node_review "https://github.com/prgrms-web-devcourse-final-project/web7_9_200ok_be/blob/develop/src/main/java/com/windfall/api/review/service/ReviewService.java"
click node_mypage "https://github.com/prgrms-web-devcourse-final-project/web7_9_200ok_be/blob/develop/src/main/java/com/windfall/api/mypage/service/DashBoardService.java"
click node_notifications "https://github.com/prgrms-web-devcourse-final-project/web7_9_200ok_be/blob/develop/src/main/java/com/windfall/api/notification/service/SseService.java"
click node_notificationprefs "https://github.com/prgrms-web-devcourse-final-project/web7_9_200ok_be/blob/develop/src/main/java/com/windfall/api/notificationsetting/service/NotificationSettingService.java"
click node_relational "https://github.com/prgrms-web-devcourse-final-project/web7_9_200ok_be/tree/develop/src/main/java/com/windfall/domain"
click node_redis "https://github.com/prgrms-web-devcourse-final-project/web7_9_200ok_be/blob/develop/src/main/java/com/windfall/global/config/redis/RedisConfig.java"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_oauth,node_user,node_mypage toneBlue
class node_auctionapi,node_auction,node_liveauction,node_scheduler toneAmber
class node_payment,node_trade,node_chat,node_review toneMint
class node_tags,node_favorites,node_ranking,node_notifications,node_notificationprefs toneRose
class node_auctionstore,node_relational,node_redis,node_buyer,node_toss toneIndigo
```

## Components

### Identity and accounts

- [Social sign-in](https://github.com/prgrms-web-devcourse-final-project/web7_9_200ok_be/blob/develop/src/main/java/com/windfall/api/user/service/OAuthKakaoService.java): `src/main/java/com/windfall/api/user/service/OAuthKakaoService.java`
- [User accounts](https://github.com/prgrms-web-devcourse-final-project/web7_9_200ok_be/blob/develop/src/main/java/com/windfall/api/user/service/UserService.java): `src/main/java/com/windfall/api/user/service/UserService.java`
- [Account dashboard](https://github.com/prgrms-web-devcourse-final-project/web7_9_200ok_be/blob/develop/src/main/java/com/windfall/api/mypage/service/DashBoardService.java): `src/main/java/com/windfall/api/mypage/service/DashBoardService.java`

### Auction marketplace

- [Auction API](https://github.com/prgrms-web-devcourse-final-project/web7_9_200ok_be/blob/develop/src/main/java/com/windfall/api/auction/service/AuctionService.java): `src/main/java/com/windfall/api/auction/service/AuctionService.java`
- [Auction pricing](https://github.com/prgrms-web-devcourse-final-project/web7_9_200ok_be/blob/develop/src/main/java/com/windfall/domain/auction/entity/Auction.java): `src/main/java/com/windfall/domain/auction/entity/Auction.java`
- [Live auction updates](https://github.com/prgrms-web-devcourse-final-project/web7_9_200ok_be/blob/develop/src/main/java/com/windfall/api/auction/service/AuctionInteractionService.java): `src/main/java/com/windfall/api/auction/service/AuctionInteractionService.java`
- [Auction scheduler](https://github.com/prgrms-web-devcourse-final-project/web7_9_200ok_be/blob/develop/src/main/java/com/windfall/api/auction/service/AuctionSchedulerService.java): `src/main/java/com/windfall/api/auction/service/AuctionSchedulerService.java`

### Trade and communication

- [Payment confirmation](https://github.com/prgrms-web-devcourse-final-project/web7_9_200ok_be/blob/develop/src/main/java/com/windfall/api/payment/service/PaymentService.java): `src/main/java/com/windfall/api/payment/service/PaymentService.java`
- [Trade lifecycle](https://github.com/prgrms-web-devcourse-final-project/web7_9_200ok_be/blob/develop/src/main/java/com/windfall/domain/trade/entity/Trade.java): `src/main/java/com/windfall/domain/trade/entity/Trade.java`
- [Trade chat](https://github.com/prgrms-web-devcourse-final-project/web7_9_200ok_be/blob/develop/src/main/java/com/windfall/api/chat/service/ChatRoomService.java): `src/main/java/com/windfall/api/chat/service/ChatRoomService.java`
- [Buyer reviews](https://github.com/prgrms-web-devcourse-final-project/web7_9_200ok_be/blob/develop/src/main/java/com/windfall/api/review/service/ReviewService.java): `src/main/java/com/windfall/api/review/service/ReviewService.java`

### Buyer engagement

- [Tag search](https://github.com/prgrms-web-devcourse-final-project/web7_9_200ok_be/blob/develop/src/main/java/com/windfall/api/tag/service/TagService.java): `src/main/java/com/windfall/api/tag/service/TagService.java`
- [Auction favorites](https://github.com/prgrms-web-devcourse-final-project/web7_9_200ok_be/blob/develop/src/main/java/com/windfall/api/like/service/AuctionLikeService.java): `src/main/java/com/windfall/api/like/service/AuctionLikeService.java`
- [Popular ranking](https://github.com/prgrms-web-devcourse-final-project/web7_9_200ok_be/blob/develop/src/main/java/com/windfall/api/auction/service/AuctionService.java): `src/main/java/com/windfall/api/auction/service/AuctionService.java`
- [Notifications and SSE](https://github.com/prgrms-web-devcourse-final-project/web7_9_200ok_be/blob/develop/src/main/java/com/windfall/api/notification/service/SseService.java): `src/main/java/com/windfall/api/notification/service/SseService.java`
- [Notification settings](https://github.com/prgrms-web-devcourse-final-project/web7_9_200ok_be/blob/develop/src/main/java/com/windfall/api/notificationsetting/service/NotificationSettingService.java): `src/main/java/com/windfall/api/notificationsetting/service/NotificationSettingService.java`

### Persistence and infrastructure

- [Auction records](https://github.com/prgrms-web-devcourse-final-project/web7_9_200ok_be/blob/develop/src/main/java/com/windfall/domain/auction/repository/AuctionRepository.java): `src/main/java/com/windfall/domain/auction/repository/AuctionRepository.java`
- [Relational data](https://github.com/prgrms-web-devcourse-final-project/web7_9_200ok_be/tree/develop/src/main/java/com/windfall/domain): `src/main/java/com/windfall/domain`
- [Redis](https://github.com/prgrms-web-devcourse-final-project/web7_9_200ok_be/blob/develop/src/main/java/com/windfall/global/config/redis/RedisConfig.java): `src/main/java/com/windfall/global/config/redis/RedisConfig.java`

### Other components

- **Buyer or seller**
- **Toss Payments**

## Connections

- Buyer or seller → Social sign-in: signs in (evidence: `README.md`)
- Social sign-in → User accounts: authenticates (evidence: `src/main/java/com/windfall/api/user/service/OAuthKakaoService.java`)
- Buyer or seller → Auction API: browses auctions (evidence: `README.md`)
- Auction API → Auction records: queries auctions (evidence: `src/main/java/com/windfall/api/auction/service/AuctionService.java`)
- Auction API → Auction pricing: uses pricing (evidence: `src/main/java/com/windfall/api/auction/service/AuctionService.java`)
- Auction pricing → Auction records: persists state (evidence: `src/main/java/com/windfall/domain/auction/repository/AuctionRepository.java`)
- Buyer or seller → Tag search: searches tags (evidence: `README.md`)
- Buyer or seller → Auction favorites: saves auctions (evidence: `README.md`)
- Buyer or seller → Popular ranking: views popular (evidence: `README.md`)
- Buyer or seller → Live auction updates: watches live (evidence: `README.md`)
- Auction scheduler → Auction pricing: lowers price (evidence: `README.md`)
- Buyer or seller → Payment confirmation: confirms purchase (evidence: `README.md`)
- Payment confirmation → Toss Payments: confirms payment (evidence: `README.md`)
- Payment confirmation → Trade lifecycle: updates trade (evidence: `src/main/java/com/windfall/api/payment/service/PaymentService.java`)
- Buyer or seller → Trade chat: messages seller (evidence: `README.md`)
- Trade chat → Trade lifecycle: checks trade status (evidence: `src/main/java/com/windfall/api/chat/service/ChatRoomService.java`)
- Buyer or seller → Buyer reviews: reviews purchase (evidence: `src/main/java/com/windfall/api/review/service/ReviewService.java`)
- Buyer reviews → Notifications and SSE: sends review alert (evidence: `src/main/java/com/windfall/api/review/service/ReviewService.java`)
- Buyer or seller → Account dashboard: views account (evidence: `README.md`)
- Buyer or seller → Notifications and SSE: receives alerts (evidence: `README.md`)
- Buyer or seller → Notification settings: sets alerts
- Notifications and SSE → Redis: uses cooldown (evidence: `src/main/java/com/windfall/api/notification/service/SseService.java`)
- Notifications and SSE → Relational data: stores alerts (evidence: `src/main/java/com/windfall/api/notification/service/SseService.java`)
