-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #151 from Kusitms-29th-MeetUp-H/feat/global
[fix]:Main Papago 번역 main에 적용
- Loading branch information
Showing
12 changed files
with
286 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
86 changes: 86 additions & 0 deletions
86
.../java/com/kusitms29/backendH/api/sync/service/dto/response/SyncAssociateInfoResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
package com.kusitms29.backendH.api.sync.service.dto.response; | ||
|
||
import com.kusitms29.backendH.domain.category.entity.Type; | ||
import com.kusitms29.backendH.domain.sync.entity.SyncType; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
|
||
import java.time.LocalDateTime; | ||
import java.time.format.DateTimeFormatter; | ||
import java.time.format.DecimalStyle; | ||
import java.util.Locale; | ||
|
||
@Getter | ||
@Builder | ||
public class SyncAssociateInfoResponse { | ||
private Long syncId; | ||
private String syncType; | ||
private String type; | ||
private String image; | ||
private int userCnt; | ||
private int totalCnt; | ||
private String syncName; | ||
private String location; | ||
private String date; | ||
private String associate; | ||
private Boolean isMarked; | ||
private static final DateTimeFormatter DATE_TIME_FORMATTER = | ||
DateTimeFormatter.ofPattern("M/d(EEE) a h시") | ||
.withLocale(Locale.KOREAN) | ||
.withDecimalStyle(DecimalStyle.of(Locale.KOREAN)); | ||
|
||
public SyncAssociateInfoResponse(){ | ||
|
||
} | ||
public SyncAssociateInfoResponse( | ||
Long syncId, | ||
String syncType, | ||
String type, | ||
String image, | ||
int userCnt, | ||
int totalCnt, | ||
String syncName, | ||
String location, | ||
String date, | ||
String associate, | ||
Boolean isMarked) { | ||
this.syncId = syncId; | ||
this.syncType = syncType; | ||
this.type = type; | ||
this.image = image; | ||
this.userCnt = userCnt; | ||
this.totalCnt = totalCnt; | ||
this.syncName = syncName; | ||
this.location = location; | ||
this.date = date; | ||
this.associate = associate; | ||
this.isMarked = isMarked; | ||
} | ||
public static SyncAssociateInfoResponse of( | ||
Long syncId, | ||
SyncType syncType, | ||
Type type, | ||
String image, | ||
int userCnt, | ||
int totalCnt, | ||
String syncName, | ||
String location, | ||
LocalDateTime date, | ||
String associate, | ||
Boolean isMarked) { | ||
String dateString = date != null ? date.format(DATE_TIME_FORMATTER) : null; | ||
return new SyncAssociateInfoResponse( | ||
syncId, | ||
syncType.getStringSyncType(), | ||
type.getStringType(), | ||
image, | ||
userCnt, | ||
totalCnt, | ||
syncName, | ||
location, | ||
dateString, | ||
associate, | ||
isMarked | ||
); | ||
} | ||
} |
83 changes: 83 additions & 0 deletions
83
.../src/main/java/com/kusitms29/backendH/api/sync/service/dto/response/SyncInfoResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
package com.kusitms29.backendH.api.sync.service.dto.response; | ||
|
||
import com.kusitms29.backendH.domain.category.entity.Type; | ||
import com.kusitms29.backendH.domain.sync.entity.SyncType; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
|
||
import java.time.LocalDateTime; | ||
import java.time.format.DateTimeFormatter; | ||
import java.time.format.DecimalStyle; | ||
import java.util.Locale; | ||
@Getter | ||
@Builder | ||
public class SyncInfoResponse { | ||
private Long syncId; | ||
private String syncType; | ||
private String type; | ||
private String image; | ||
private int userCnt; | ||
private int totalCnt; | ||
private String syncName; | ||
private String location; | ||
private String date; | ||
private Boolean isMarked; | ||
|
||
private static final DateTimeFormatter DATE_TIME_FORMATTER = | ||
DateTimeFormatter.ofPattern("M/d(EEE) a h시") | ||
.withLocale(Locale.KOREAN) | ||
.withDecimalStyle(DecimalStyle.of(Locale.KOREAN)); | ||
|
||
public SyncInfoResponse(){ | ||
|
||
} | ||
public SyncInfoResponse( | ||
Long syncId, | ||
String syncType, | ||
String type, | ||
String image, | ||
int userCnt, | ||
int totalCnt, | ||
String syncName, | ||
String location, | ||
String date, | ||
Boolean isMarked) { | ||
this.syncId = syncId; | ||
this.syncType = syncType; | ||
this.type = type; | ||
this.image = image; | ||
this.userCnt = userCnt; | ||
this.totalCnt = totalCnt; | ||
this.syncName = syncName; | ||
this.location = location; | ||
this.date = date; | ||
this.isMarked = isMarked; | ||
} | ||
|
||
public static SyncInfoResponse of( | ||
Long syncId, | ||
SyncType syncType, | ||
Type type, | ||
String image, | ||
int userCnt, | ||
int totalCnt, | ||
String syncName, | ||
String location, | ||
LocalDateTime date, | ||
Boolean isMarked) { | ||
String dateString = date != null ? date.format(DATE_TIME_FORMATTER) : null; | ||
return new SyncInfoResponse( | ||
syncId, | ||
syncType.getStringSyncType(), | ||
type.getStringType(), | ||
image, | ||
userCnt, | ||
totalCnt, | ||
syncName, | ||
location, | ||
dateString, | ||
isMarked | ||
); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
Main/src/main/java/com/kusitms29/backendH/global/common/ChatReq.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.kusitms29.backendH.global.common; | ||
|
||
public record ChatReq( | ||
String roomName, | ||
String content | ||
) { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.