Compare commits
6 commits
forge/SPRI
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 4d54420201 | |||
| 396354b1fa | |||
| 8d3eff4ff5 | |||
| 32e6e893de | |||
| d6a5bdaea6 | |||
| 9f1c3535a6 |
4 changed files with 46 additions and 0 deletions
3
.forge/iss-478981daa4be-attempt-1-run-c0b7e9d69a7a.md
Normal file
3
.forge/iss-478981daa4be-attempt-1-run-c0b7e9d69a7a.md
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# iss-478981daa4be-attempt-1-run-c0b7e9d69a7a
|
||||
|
||||
Forge 이슈 작업 브랜치 `forge/iss-478981daa4be-attempt-1-run-c0b7e9d69a7a`.
|
||||
3
.forge/iss-e2325889b406-attempt-1-run-0207d2e91028.md
Normal file
3
.forge/iss-e2325889b406-attempt-1-run-0207d2e91028.md
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# iss-e2325889b406-attempt-1-run-0207d2e91028
|
||||
|
||||
Forge 이슈 작업 브랜치 `forge/iss-e2325889b406-attempt-1-run-0207d2e91028`.
|
||||
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 incoming requests, validate input | service |
|
||||
| service | Business logic, coordination between layers | repository |
|
||||
| repository | Data access and persistence | domain |
|
||||
| domain | Core business models and logic | integration |
|
||||
| integration | Interact with external systems, including payment gateways | domain |
|
||||
31
docs/architecture/transaction-sequence.md
Normal file
31
docs/architecture/transaction-sequence.md
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
```mermaid
|
||||
sequenceDiagram
|
||||
participant User
|
||||
participant PaymentGateway
|
||||
participant Database
|
||||
|
||||
%% 정상 흐름 %%
|
||||
User->>PaymentGateway: 결제 요청
|
||||
PaymentGateway->>User: 결제 승인
|
||||
User->>Database: 거래 기록 저장
|
||||
Database-->>User: 거래 성공
|
||||
%% 커밋 %%
|
||||
User->>Database: 커밋
|
||||
Database-->>User: 커밋 완료
|
||||
|
||||
%% 외부 실패 %%
|
||||
User->>PaymentGateway: 결제 요청
|
||||
PaymentGateway-->>User: 결제 실패
|
||||
%% 롤백 %%
|
||||
User->>Database: 롤백
|
||||
Database-->>User: 롤백 완료
|
||||
|
||||
%% DB 실패 %%
|
||||
User->>PaymentGateway: 결제 요청
|
||||
PaymentGateway->>User: 결제 승인
|
||||
User->>Database: 거래 기록 저장
|
||||
Database-->>User: DB 오류
|
||||
%% 롤백 %%
|
||||
User->>Database: 롤백
|
||||
Database-->>User: 롤백 완료
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue