Skip to content

Commit

Permalink
feat: vaccination에 백그라운드, 마스크 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
HyungJu committed May 16, 2024
1 parent 8b10041 commit 8d19c6f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,10 @@ class InoculationService(
imageGenUrl + "?diseaseName=${inoculation.vaccination.diseaseName}" +
"&vaccinationName=${inoculation.vaccination.vaccineName}" +
"&inoculationDate=${inoculation.date}" +
"&userId=${inoculation.member.nickname?.nickname}",
"&userId=${inoculation.member.nickname?.nickname}" +
"&cardImageUrl=${inoculation.vaccination.certificationBackgroundImage}" + "" +
"&maskImageUrl=${inoculation.vaccination.certificationMaskImage}" +
"&iconImageUrl=${inoculation.vaccination.certificationIcon}",
ByteArray::class.java,
) ?: throw BusinessException(GlobalError.GLOBAL_NOT_FOUND)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ class Vaccination(
val icon: String,
@Column(columnDefinition = "VARCHAR(1000)")
val certificationIcon: String,
@Column(columnDefinition = "VARCHAR(1000)")
val certificationBackgroundImage: String,
@Column(columnDefinition = "VARCHAR(1000)")
val certificationMaskImage: String,
@Enumerated(EnumType.STRING) val vaccinationType: VaccinationType,
) : BaseEntity() {
@Id
Expand Down
5 changes: 5 additions & 0 deletions src/main/resources/db/migration/V4__certimage.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ALTER TABLE t_vaccination
ADD certification_background_image VARCHAR(1000) NULL;

ALTER TABLE t_vaccination
ADD certification_mask_image VARCHAR(1000) NULL;

0 comments on commit 8d19c6f

Please sign in to comment.