Compare commits
7 commits
forge/SPRI
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 615d10ff93 | |||
| ce291ba9ec | |||
| 0541f0a989 | |||
| 5dd7302aa9 | |||
| 4ac5045734 | |||
| 040b29aa5a | |||
| 2bc7c0718b |
4 changed files with 52 additions and 0 deletions
3
.forge/iss-155aa95ea6df-attempt-2.md
Normal file
3
.forge/iss-155aa95ea6df-attempt-2.md
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
# iss-155aa95ea6df-attempt-2
|
||||||
|
|
||||||
|
Forge 이슈 작업 브랜치 `forge/iss-155aa95ea6df-attempt-2`.
|
||||||
3
.forge/iss-8fd82b653bff-attempt-1.md
Normal file
3
.forge/iss-8fd82b653bff-attempt-1.md
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
# iss-8fd82b653bff-attempt-1
|
||||||
|
|
||||||
|
Forge 이슈 작업 브랜치 `forge/iss-8fd82b653bff-attempt-1`.
|
||||||
9
docs/architecture/package-map.md
Normal file
9
docs/architecture/package-map.md
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
# Package Map
|
||||||
|
|
||||||
|
| Package | Responsibility | Forbidden Dependencies |
|
||||||
|
|----------------|----------------------------------------------------|------------------------|
|
||||||
|
| controller | Handle HTTP requests and responses | domain |
|
||||||
|
| service | Business logic and transaction management | domain, integration |
|
||||||
|
| repository | Data access and retrieval | service |
|
||||||
|
| domain | Core domain logic and entities | controller, service, repository |
|
||||||
|
| integration | External service communication | service |
|
||||||
37
docs/architecture/transaction-sequence.md
Normal file
37
docs/architecture/transaction-sequence.md
Normal file
|
|
@ -0,0 +1,37 @@
|
||||||
|
```mermaid
|
||||||
|
sequenceDiagram
|
||||||
|
participant User as User
|
||||||
|
participant Checkout as Checkout Service
|
||||||
|
participant Payment as Payment Gateway
|
||||||
|
participant DB as Database
|
||||||
|
|
||||||
|
%% Normal flow
|
||||||
|
User->>Checkout: Initiate Checkout
|
||||||
|
Checkout->>DB: Save Order
|
||||||
|
DB-->>Checkout: Order Confirmation
|
||||||
|
Checkout->>Payment: Process Payment
|
||||||
|
Payment-->>Checkout: Payment Success
|
||||||
|
Checkout->>User: Payment Successful
|
||||||
|
|
||||||
|
%% External failure
|
||||||
|
User->>Checkout: Initiate Checkout
|
||||||
|
Checkout->>DB: Save Order
|
||||||
|
DB-->>Checkout: Order Confirmation
|
||||||
|
Checkout->>Payment: Process Payment
|
||||||
|
Payment-->>Checkout: Payment Failure
|
||||||
|
Checkout->>DB: Rollback Order
|
||||||
|
DB-->>Checkout: Order Rollback
|
||||||
|
Checkout->>User: Payment Failed
|
||||||
|
|
||||||
|
%% DB failure
|
||||||
|
User->>Checkout: Initiate Checkout
|
||||||
|
Checkout->>DB: Save Order
|
||||||
|
DB-->>Checkout: Order Confirmation
|
||||||
|
Checkout->>Payment: Process Payment
|
||||||
|
Payment-->>Checkout: Payment Success
|
||||||
|
Checkout->>DB: Commit Order
|
||||||
|
DB-->>Checkout: Error
|
||||||
|
Checkout->>DB: Rollback Order
|
||||||
|
DB-->>Checkout: Order Rollback
|
||||||
|
Checkout->>User: Payment Successful, Order Error
|
||||||
|
```
|
||||||
Loading…
Add table
Add a link
Reference in a new issue