-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Add] #42 : IndexService를 KeyResultService에서 구현
- Loading branch information
Showing
3 changed files
with
41 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
src/main/java/org/moonshot/server/domain/objective/dto/request/ModifyIndexRequestDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package org.moonshot.server.domain.objective.dto.request; | ||
|
||
import jakarta.validation.constraints.NotNull; | ||
import org.hibernate.validator.constraints.Range; | ||
import org.moonshot.server.domain.objective.model.IndexTarget; | ||
|
||
public record ModifyIndexRequestDto( | ||
@NotNull(message = "대상의 ID를 입력해주세요.") | ||
Long id, | ||
@NotNull(message = "대상을 지정해주세요.") | ||
IndexTarget target, | ||
@NotNull(message = "대상의 이동할 위치 값을 입력하세요.") | ||
@Range(min = 0, max = 2, message = "순서는 0부터 2까지로 설정할 수 있습니다.") | ||
Integer idx | ||
) { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters