Skip to content

Commit 32e7a2b

Browse files
committed
Add mvc diagram for user service
1 parent dd1e6b9 commit 32e7a2b

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
graph TD
2+
subgraph "User Service MVC Architecture"
3+
subgraph "Models"
4+
UM[User Model]
5+
R[Repository]
6+
DB[(MongoDB)]
7+
UM --> R
8+
R --> DB
9+
end
10+
11+
subgraph "Controllers"
12+
UC[User Controller]
13+
AC[Auth Controller]
14+
OC[OAuth Controller]
15+
UC --> R
16+
AC --> R
17+
OC --> R
18+
end
19+
20+
subgraph "Routes Layer"
21+
UR[User Routes]
22+
AR[Auth Routes]
23+
M[Middleware]
24+
UR --> M
25+
AR --> M
26+
M --> UC
27+
M --> AC
28+
M --> OC
29+
end
30+
31+
subgraph "External Interface"
32+
API[API Gateway]
33+
API --> UR
34+
API --> AR
35+
end
36+
end
37+
38+
classDef models fill:#f9f,stroke:#333,stroke-width:2px
39+
classDef controllers fill:#bbf,stroke:#333,stroke-width:2px
40+
classDef routes fill:#bfb,stroke:#333,stroke-width:2px
41+
classDef external fill:#fbb,stroke:#333,stroke-width:2px
42+
43+
class UM,R,DB models
44+
class UC,AC,OC controllers
45+
class UR,AR,M routes
46+
class API external

0 commit comments

Comments
 (0)