Skip to content

Commit

Permalink
♻ :: notification 로직용 Group응답 DTO 생성
Browse files Browse the repository at this point in the history
- GroupInfoForNotificationDto
  • Loading branch information
mybloom committed Dec 26, 2022
1 parent 1457cc8 commit 9e4f31e
Showing 1 changed file with 34 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
package io.github.depromeet.knockknockbackend.domain.group.presentation.dto.response;


import io.github.depromeet.knockknockbackend.domain.group.domain.GroupType;
import io.github.depromeet.knockknockbackend.domain.group.domain.vo.GroupBaseInfoVo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@NoArgsConstructor
public class GroupInfoForNotificationDto {
private Long groupId;

private String title;

private String description;

private String thumbnailPath;

@Schema(description = "공개 그룹 여부 ture 면 공개임")
private Boolean publicAccess;

private GroupType groupType;

public GroupInfoForNotificationDto(GroupBaseInfoVo groupBaseInfoVo) {
groupId = groupBaseInfoVo.getGroupId();
title = groupBaseInfoVo.getTitle();
description = groupBaseInfoVo.getDescription();
publicAccess = groupBaseInfoVo.getPublicAccess();
thumbnailPath = groupBaseInfoVo.getThumbnailPath();
groupType = groupBaseInfoVo.getGroupType();
}
}

0 comments on commit 9e4f31e

Please sign in to comment.