Commit 794c37a
File tree
28 files changed
+415
-1131
lines changed- helm
- charts
- templates
- kong
- conf
- scripts
28 files changed
+415
-1131
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
7 | 6 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
| 7 | + | |
32 | 8 | | |
33 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
34 | 32 | | |
35 | 33 | | |
36 | | - | |
| 34 | + | |
37 | 35 | | |
38 | 36 | | |
39 | | - | |
40 | | - | |
| 37 | + | |
41 | 38 | | |
42 | | - | |
| 39 | + | |
43 | 40 | | |
44 | 41 | | |
45 | | - | |
46 | | - | |
| 42 | + | |
47 | 43 | | |
48 | | - | |
| 44 | + | |
| 45 | + | |
49 | 46 | | |
50 | 47 | | |
51 | | - | |
| 48 | + | |
| 49 | + | |
52 | 50 | | |
53 | | - | |
| 51 | + | |
54 | 52 | | |
55 | | - | |
56 | | - | |
| 53 | + | |
57 | 54 | | |
58 | | - | |
| 55 | + | |
59 | 56 | | |
60 | 57 | | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
69 | 99 | | |
70 | 100 | | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
80 | 120 | | |
81 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
82 | 140 | | |
83 | | - | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
84 | 155 | | |
85 | | - | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
86 | 171 | | |
87 | | - | |
88 | | - | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
89 | 183 | | |
90 | | - | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
91 | 199 | | |
92 | | - | |
93 | | - | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
94 | 214 | | |
95 | 215 | | |
96 | | - | |
| 216 | + | |
97 | 217 | | |
98 | | - | |
| 218 | + | |
99 | 219 | | |
100 | | - | |
| 220 | + | |
| 221 | + | |
101 | 222 | | |
102 | | - | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
103 | 228 | | |
104 | | - | |
105 | | - | |
| 229 | + | |
106 | 230 | | |
107 | | - | |
108 | | - | |
109 | | - | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
110 | 239 | | |
111 | | - | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
112 | 248 | | |
113 | | - | |
114 | | - | |
115 | | - | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
116 | 253 | | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
| 254 | + | |
122 | 255 | | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
| 256 | + | |
| 257 | + | |
131 | 258 | | |
132 | | - | |
133 | | - | |
134 | | - | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
135 | 263 | | |
136 | | - | |
137 | 264 | | |
138 | | - | |
139 | | - | |
140 | | - | |
| |||
- .env.docker+23-8
- .eslintrc-46
- .eslintrc.js+55
- .husky/pre-commit+1-5
- .prettierrc+2-12
- Dockerfile+1-1
- README.md+94-20
- buildspec.yml-35
- ci/Dockerfile+21-12
- ci/docker-entrypoint.sh+9
- nest-cli.json+13-5
- package.json+98-103
- prisma/migrations/20250223155008_initial_schema/migration.sql+2-2
- prisma/migrations/migration_lock.toml+1-1
- prisma/schema.prisma+15-18
- src/app/app.constant.ts-1
- src/app/app.controller.ts+22-16
- src/app/app.module.ts+6-55
- src/common/common.module.ts+64-16
- src/common/config/app.config.ts+64
- src/common/config/auth.config.ts+33
- src/common/config/doc.config.ts+11
- src/common/config/index.ts+7
- src/common/config/kafka.config.ts+12
- src/common/config/redis.config.ts+6
- src/common/constants/request.constant.ts+9
- src/common/constants/response.constant.ts+2
- src/common/decorators/message.decorator.ts+6
- src/common/decorators/request-public.decorator.ts+6
- src/common/decorators/request-role.decorator.ts+7
- src/common/decorators/request-user.decorator.ts+8
- src/common/dtos/base-response.dto.ts+61
- src/common/dtos/paginated-response.dto.ts+68
- src/common/enums/app.enum.ts+12
- src/common/filters/exception.filter.ts+92
- src/common/guards/auth.guard.ts+55
- src/common/guards/role.guard.ts+23
- src/common/interceptors/response.interceptor.ts+56
- src/common/interfaces/jwt.interface.ts+3
- src/common/interfaces/request.interface.ts+10
- src/common/interfaces/response.interface.ts+20
- src/common/middlewares/request.middleware.ts+25
- src/common/services/helper.hash.service.ts-19
- src/common/services/prisma.service.ts-27
- src/config/app.config.ts-22
- src/config/auth.config.ts-20
- src/config/doc.config.ts-11
- src/config/index.ts-6
- src/config/rmq.config.ts-9
- src/database/database.module.ts+9
- src/database/database.service.ts+27
- src/decorators/auth.decorator.ts-8
- src/decorators/payload.decorator.ts-12
- src/decorators/public.decorator.ts-5
- src/decorators/role.decorator.ts-4
- src/filters/http.exception.filter.ts-50
- src/guards/jwt.access.guard.ts-33
- src/guards/jwt.refresh.guard.ts-26
- src/guards/roles.guard.ts-18
- src/interceptors/response.interceptor.ts-32
- src/languages/en/auth.json+7-2
- src/languages/en/error.json-14
- src/languages/en/http.json+21
- src/languages/en/success.json-9
- src/languages/en/user.json+12-5
- src/main.ts+79-62
- src/middlewares/logging.middleware.ts-22
- src/modules/auth/auth.module.ts+25-18
- src/modules/auth/controllers/auth.controller.ts+33-35
- src/modules/auth/controllers/auth.kafka.controller.ts+27
- src/modules/auth/dtos/auth.login.dto.ts+15-16
- src/modules/auth/dtos/auth.response.dto.ts+12-18
- src/modules/auth/dtos/auth.signup.dto.ts+45-43
- src/modules/auth/interfaces/auth.interface.ts+4-6
- src/modules/auth/interfaces/auth.service.interface.ts+4-4
- src/modules/auth/services/auth.service.ts+148-142
- src/modules/auth/strategies/jwt.access.strategy.ts+14-13
- src/modules/auth/strategies/jwt.refresh.strategy.ts-23
- src/modules/user/controllers/user.admin.controller.ts-26
- src/modules/user/controllers/user.controller.ts+57-49
- src/modules/user/controllers/user.kafka.controller.ts+24
- src/modules/user/dtos/user-bulk-request.dto.ts+14
- src/modules/user/dtos/user-bulk-response.dto.ts+11
- src/modules/user/dtos/user.response.dto.ts+79-72
- src/modules/user/dtos/user.update.dto.ts+53-42
- src/modules/user/interfaces/user-service.interface.ts+14
- src/modules/user/interfaces/user.service.interface.ts-12
- src/modules/user/services/user.service.ts+68-56
- src/modules/user/user.module.ts+7-6
- src/seed/admin.seed.ts-29
- src/swagger.ts+40-48
- test/auth.service.spec.ts-283
- test/helper.hash.service.spec.ts-63
- test/user.service.spec.ts-234
- tsconfig.json+25-22
- yarn.lock+2.1k-1.4k
0 commit comments