Compare commits
6 commits
forge/SPRI
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 7c4d5426ee | |||
| 31ede6480f | |||
| db924cad56 | |||
| b267f512ef | |||
| e06fb95bef | |||
| b9f10941e2 |
4 changed files with 53 additions and 0 deletions
3
.forge/iss-5a912ed79baf-attempt-3.md
Normal file
3
.forge/iss-5a912ed79baf-attempt-3.md
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
# iss-5a912ed79baf-attempt-3
|
||||||
|
|
||||||
|
Forge 이슈 작업 브랜치 `forge/iss-5a912ed79baf-attempt-3`.
|
||||||
3
.forge/iss-87190c9836ac-attempt-1.md
Normal file
3
.forge/iss-87190c9836ac-attempt-1.md
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
# iss-87190c9836ac-attempt-1
|
||||||
|
|
||||||
|
Forge 이슈 작업 브랜치 `forge/iss-87190c9836ac-attempt-1`.
|
||||||
9
docs/architecture/package-map.md
Normal file
9
docs/architecture/package-map.md
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
# Package Responsibility Map
|
||||||
|
|
||||||
|
| Package | Responsibility | Forbidden Dependencies |
|
||||||
|
|----------------|------------------------------------------------|------------------------|
|
||||||
|
| controller | Handles user input and orchestrates payment | domain |
|
||||||
|
| service | Contains business logic for payment processing | integration |
|
||||||
|
| repository | Data access layer for payment records | service |
|
||||||
|
| domain | Defines the core domain models and business rules| controller |
|
||||||
|
| integration | Communicates with external payment gateways | domain, service |
|
||||||
38
docs/architecture/transaction-sequence.md
Normal file
38
docs/architecture/transaction-sequence.md
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
```mermaid
|
||||||
|
sequenceDiagram
|
||||||
|
participant User
|
||||||
|
participant PaymentService
|
||||||
|
participant PaymentGateway
|
||||||
|
participant Database
|
||||||
|
|
||||||
|
%% Normal Flow
|
||||||
|
User->>PaymentService: Initiate Payment
|
||||||
|
PaymentService->>Database: Store Transaction
|
||||||
|
Database-->>PaymentService: Transaction Stored
|
||||||
|
PaymentService->>PaymentGateway: Process Payment
|
||||||
|
PaymentGateway-->>PaymentService: Payment Success
|
||||||
|
PaymentService->>Database: Update Transaction Status
|
||||||
|
Database-->>PaymentService: Transaction Updated
|
||||||
|
PaymentService-->>User: Payment Success
|
||||||
|
|
||||||
|
%% External Failure Flow
|
||||||
|
User->>PaymentService: Initiate Payment
|
||||||
|
PaymentService->>Database: Store Transaction
|
||||||
|
Database-->>PaymentService: Transaction Stored
|
||||||
|
PaymentService->>PaymentGateway: Process Payment
|
||||||
|
PaymentGateway-->>PaymentService: Payment Failure
|
||||||
|
PaymentService->>Database: Rollback Transaction
|
||||||
|
Database-->>PaymentService: Transaction Rolled Back
|
||||||
|
PaymentService-->>User: Payment Failure
|
||||||
|
|
||||||
|
%% DB Failure Flow
|
||||||
|
User->>PaymentService: Initiate Payment
|
||||||
|
PaymentService->>Database: Store Transaction
|
||||||
|
Database-->>PaymentService: Transaction Store Failure
|
||||||
|
PaymentService-->>User: Payment Failure
|
||||||
|
|
||||||
|
%% Commit & Rollback
|
||||||
|
Note over User, PaymentService:
|
||||||
|
commit --> PaymentService
|
||||||
|
rollback --> PaymentService
|
||||||
|
```
|
||||||
Loading…
Add table
Add a link
Reference in a new issue