-
Notifications
You must be signed in to change notification settings - Fork 0
운영환경 1.0.0 버전 반영 #143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
운영환경 1.0.0 버전 반영 #143
Changes from all commits
f6d324e
3639825
f639287
dff00e2
60dd4ca
f0c201b
4f5bde7
cb52047
7efaebe
bf91a99
0ca0699
a3a0931
ba1771c
a99283f
fee5bff
5698fa8
66bbfe3
d132070
ed6c58f
ff39d48
0c2cb4e
68d9223
602af22
038f632
77a36f2
d5995ac
38cfbf6
709e1c5
d45fe78
e6da525
de559fb
9579e95
adcc096
c5fdaf6
c8494af
148b56e
a3caf24
e6cbf9e
42d7be2
371a5b3
afede2d
742e1ab
d7f9ad0
3666ead
0b39343
c49b854
a0a0a12
952a4e9
3335bc3
0064d5d
ee8dea4
4c13609
43ff8f4
ed4c7a7
13b421e
e0a5ded
485535b
c637106
6040958
a9ea0cc
a86a931
ddfe9bd
ddaa2ae
cb35b4d
275c05b
f0c2c91
deef531
63e4d2b
a049a69
611643a
66d43a8
5ed3d5a
66e6602
ac9cc3a
571b2ed
47cd8f7
2cb481e
a77addd
6b0e9cd
33938a9
56539f3
94febd9
b91eaa0
64a7475
17c28f4
cef3d3e
820853f
9ed5faa
7dfafef
dafd4ec
8f4ebe9
5bdd291
2141077
b76e383
8ec5a3b
bcedc0c
2c4ee58
4e24036
0534696
066baab
b307855
02ac88a
3fc7e4b
f9ca6b6
91ebe59
4f378d4
69e7556
f5efd8d
c3e484f
c2f44a9
d8fee1e
10c168f
387f22a
f9c4f31
6ba8f0a
c1ee81b
812f0fd
69388a3
dbe48f9
8d5e793
bd0dc05
4724957
420f778
0694ab1
d036d9a
e38e329
02cfcf2
218d123
eaca660
61eeb87
0a74148
7acfd26
574d17d
c356786
8de405d
c551b97
34a89c5
51b6f51
8ac61d3
a20c6c2
45cb55f
e1f7567
55e0b7f
bcedba1
30dee19
2be6328
efa477a
90a4217
e755faf
2e63039
c6b058d
45233a9
4e0d107
11420b1
16e166c
f64f421
1befb5b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -18,6 +18,7 @@ import com.yapp2app.photo.application.usecase.UpdateFolderUseCase | |||||
| import io.swagger.v3.oas.annotations.Operation | ||||||
| import io.swagger.v3.oas.annotations.tags.Tag | ||||||
| import jakarta.validation.Valid | ||||||
| import jakarta.validation.constraints.Min | ||||||
| import org.springframework.security.core.annotation.AuthenticationPrincipal | ||||||
| import org.springframework.web.bind.annotation.DeleteMapping | ||||||
| import org.springframework.web.bind.annotation.GetMapping | ||||||
|
|
@@ -72,8 +73,11 @@ class FolderController( | |||||
| description = "폴더 목록을 조회합니다.", | ||||||
| ) | ||||||
| @GetMapping | ||||||
| fun getAllFolder(@AuthenticationPrincipal(expression = "id") userId: Long): BaseResponse<GetAllFolderResponse> { | ||||||
| val command = commandConverter.toGetFoldersCommand(userId) | ||||||
| fun getAllFolder( | ||||||
| @AuthenticationPrincipal(expression = "id") userId: Long, | ||||||
| @RequestParam("limit") @Min(1) limit: Int?, | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| ): BaseResponse<GetAllFolderResponse> { | ||||||
| val command = commandConverter.toGetFoldersCommand(userId, limit) | ||||||
|
|
||||||
| val result = getFoldersUseCase.execute(command) | ||||||
|
|
||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| ALTER TABLE TB_PHOTO_IMAGE | ||
| ADD CONSTRAINT uk_photo_image_media_id UNIQUE (media_id); |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| -- 기존 데이터 중 10자 초과 폴더명을 10자로 잘라냄 | ||
| UPDATE TB_FOLDER SET name = LEFT(name, 10) WHERE LENGTH(name) > 10; | ||
|
|
||
| -- 폴더명 최대 길이를 10자로 제한 | ||
| ALTER TABLE TB_FOLDER ALTER COLUMN name TYPE VARCHAR(10); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HandlerMethodValidationException에는 어떤 파라미터가 유효성 검사에 실패했는지에 대한 구체적인 정보가 포함되어 있습니다. 현재 구현은 일반적인INVALID_PARAMETER메시지를 반환하고 있어 디버깅이 어려울 수 있습니다.MethodArgumentNotValidException핸들러와 유사하게, 예외 객체에서 실제 유효성 검사 실패 메시지를 추출하여 반환하는 것이 좋습니다. 이렇게 하면 클라이언트가 어떤 값이 잘못되었는지 명확하게 알 수 있습니다.