File tree Expand file tree Collapse file tree
src/main/kotlin/com/numberone/daepiro/domain
disasterSituation/dto/response Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,6 +13,9 @@ data class DisasterSituationResponse(
1313 @Schema(description = " 재난 종류" , example = " 호우" )
1414 val type : String ,
1515
16+ @Schema(description = " 재난 종류 id" , example = " 호우" )
17+ val typeId : Long ,
18+
1619 @Schema(description = " 제목" , example = " 서울특별시 성북구 쌍문동 호우 발생" )
1720 val title : String ,
1821
@@ -43,6 +46,7 @@ data class DisasterSituationResponse(
4346 ): DisasterSituationResponse {
4447 return DisasterSituationResponse (
4548 id = article.id!! ,
49+ typeId = article.disasterType!! .id!! ,
4650 type = article.disasterType!! .type.korean,
4751 title = article.title,
4852 content = article.body,
Original file line number Diff line number Diff line change @@ -87,10 +87,13 @@ class UserEntity(
8787 ) {
8888 this .realname = realname
8989 this .nickname = nickname
90- this .profileImageUrl = " https://daepiro-dev.s3.ap-northeast-2.amazonaws.com/article/profile/" + (Random .nextInt(
91- 1 ,
92- 8
93- )) + " .png"
90+ if (this .profileImageUrl == null ) {
91+ this .profileImageUrl =
92+ " https://daepiro-dev.s3.ap-northeast-2.amazonaws.com/article/profile/" + (Random .nextInt(
93+ 1 ,
94+ 8
95+ )) + " .png"
96+ }
9497 }
9598
9699 fun initFcmToken (fcmToken : String? ) {
You can’t perform that action at this time.
0 commit comments