Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
jsteenke authored Jan 17, 2024
2 parents da78408 + c81b526 commit 8e5364f
Showing 1 changed file with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package io.github.onecx.announcement.bff.rs.mappers;

import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.tkit.quarkus.rs.mappers.OffsetDateTimeMapper;

import gen.io.github.onecx.announcement.bff.clients.model.Announcement;
import gen.io.github.onecx.announcement.bff.clients.model.AnnouncementPageResult;
import gen.io.github.onecx.announcement.bff.rs.internal.model.AnnouncementDTO;
import gen.io.github.onecx.announcement.bff.rs.internal.model.AnnouncementPageResultDTO;

@Mapper(uses = OffsetDateTimeMapper.class)
public interface ResponseMapper {

@Mapping(target = "version", ignore = true)
AnnouncementDTO mapAnnouncementToAnnouncementDTO(Announcement announcement);

@Mapping(target = "removeStreamItem", ignore = true)
AnnouncementPageResultDTO mapAnnouncementPageResultToAnnouncementPageResultDTO(
AnnouncementPageResult announcementPageResult);

}

0 comments on commit 8e5364f

Please sign in to comment.