start backend

This commit is contained in:
SlimusMinus
2026-03-26 00:21:30 +03:00
parent 611b1c82ad
commit 263242e469
56 changed files with 1524 additions and 23 deletions

View File

@@ -1,4 +1,16 @@
package com.krylov.refound.mapper;
public class PostMapper {
import com.krylov.refound.dto.PostRequest;
import com.krylov.refound.dto.PostResponse;
import com.krylov.refound.entity.Post;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
@Mapper(componentModel = "spring")
public interface PostMapper {
Post toEntity(PostRequest request);
@Mapping(source = "user.email", target = "userEmail")
PostResponse toResponse(Post post);
}