Skip to content

Commit

Permalink
0.2.8 #61
Browse files Browse the repository at this point in the history
0.2.8
  • Loading branch information
raymondanythings authored Dec 31, 2023
2 parents a798545 + ad7dc20 commit 92ceb51
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "shinnyang",
"version": "0.2.7",
"version": "0.2.8",
"description": "",
"author": {
"name": "Medici",
Expand Down
9 changes: 9 additions & 0 deletions src/common/dto/cat.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@ export class CatDTO {
@IsString()
yearImage: string;

@ApiProperty({
description: '스탬프 이미지 주소',
example:
'https://res.cloudinary.com/dzfrlb2nb/image/upload/f_auto,q_auto/qrlibxs63hintzlq7jsh.png',
})
@IsString()
stampImage: string;

constructor(cats: Cats) {
this.id = cats.id;
this.code = cats.code;
Expand All @@ -58,5 +66,6 @@ export class CatDTO {
this.faceImage = cats.faceImage;
this.backImage = cats.backImage;
this.yearImage = cats.yearImage;
this.stampImage = cats.stampImage;
}
}
7 changes: 7 additions & 0 deletions src/common/entities/cats.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,11 @@ export class Cats extends BaseEntity {

@Column({ name: 'year_image', comment: '년도 이미지 경로', nullable: true })
yearImage: string;

@Column({
name: 'stamp_image',
comment: '스탬프 이미지 경로',
nullable: true,
})
stampImage: string;
}

0 comments on commit 92ceb51

Please sign in to comment.