Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ public record SaveEducation(
@NotNull String title,
@NotNull String content,
@NotNull List<Part> parts,
@NotNull int week,
@Valid List<@NotNull FileSaveRequest> files
){}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public interface PostMapper {
@Mapping(target = "modifiedAt", ignore = true),
@Mapping(target = "user", source = "user"),
@Mapping(target = "part", expression = "java(user.getUserPart())"),
@Mapping(target = "parts", expression = "java(List.of(user.getUserPart()))"),
@Mapping(target = "cardinalNumber", expression = "java(latest.getCardinalNumber())")
})
Post fromPostDto(PostDTO.Save dto, User user, Cardinal latest);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class PostController {
private final PostUsecase postUsecase;

@PostMapping
@Operation(summary="게시글 생성")
@Operation(summary="파트 게시글 생성 (스터디 로그, 아티클)")
public CommonResponse<String> save(@RequestBody @Valid PostDTO.Save dto, @Parameter(hidden = true) @CurrentUser Long userId) {
postUsecase.save(dto, userId);

Expand Down