Skip to content

Commit a44bc69

Browse files
authored
Merge pull request #493 from TaskFlow-CLAP/release
🚀 Release v1.0.2 -> Develop
2 parents 0a4c60f + b9dca9b commit a44bc69

35 files changed

+400
-74
lines changed
Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
11
package clap.server.adapter.inbound.web.dto.admin.response;
22

3+
import io.swagger.v3.oas.annotations.media.Schema;
4+
35
import java.util.List;
46

57
public record FindAllCategoryResponse(
6-
Long id,
8+
@Schema(description = "메인 카테고리 ID", example = "1")
9+
Long mainCategoryId,
10+
11+
@Schema(description = "카테고리 이름", example = "VM 관련")
712
String name,
13+
14+
@Schema(description = "카테고리 코드", example = "VM")
815
String code,
16+
17+
@Schema(description = "서브 카테고리 목록")
918
List<FindSubCategoryResponse> subCategory
1019
) {
1120
}
Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
package clap.server.adapter.inbound.web.dto.admin.response;
22

3+
import io.swagger.v3.oas.annotations.media.Schema;
4+
35
public record FindMainCategoryResponse(
4-
Long id,
6+
@Schema(description = "메인 카테고리 ID", example = "1")
7+
Long mainCategoryId,
8+
9+
@Schema(description = "카테고리 이름", example = "VM 관련")
510
String name,
11+
12+
@Schema(description = "카테고리 코드", example = "VM")
613
String code
714
) {
815
}
Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,21 @@
11
package clap.server.adapter.inbound.web.dto.admin.response;
22

3+
import io.swagger.v3.oas.annotations.media.Schema;
4+
35
public record FindSubCategoryResponse(
4-
Long id,
6+
@Schema(description = "서브 카테고리 ID", example = "4")
7+
Long subCategoryId,
8+
9+
@Schema(description = "메인 카테고리 ID", example = "1")
510
Long mainCategoryId,
11+
12+
@Schema(description = "카테고리 이름", example = "VM 수정")
613
String name,
14+
15+
@Schema(description = "카테고리 코드", example = "VU")
716
String code,
17+
18+
@Schema(description = "카테고리 설명 예시", example = "VM을 수정합니다.")
819
String descriptionExample
920
) {
1021
}

src/main/java/clap/server/adapter/inbound/web/dto/admin/response/RetrieveAllMemberResponse.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package clap.server.adapter.inbound.web.dto.admin.response;
22

33
import clap.server.adapter.outbound.persistense.entity.member.constant.MemberRole;
4+
import clap.server.adapter.outbound.persistense.entity.member.constant.MemberStatus;
45
import io.swagger.v3.oas.annotations.media.Schema;
56

67
import java.time.LocalDateTime;
@@ -31,7 +32,10 @@ public record RetrieveAllMemberResponse(
3132
String departmentRole,
3233

3334
@Schema(description = "가입일", example = "2024-01-01T12:00:00")
34-
LocalDateTime createdAt
35+
LocalDateTime createdAt,
36+
37+
@Schema(description = "회원 상태", example = "ACTIVE")
38+
MemberStatus memberStatus
3539

3640

3741
) {}

src/main/java/clap/server/adapter/inbound/web/dto/history/request/EditCommentRequest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import io.swagger.v3.oas.annotations.media.Schema;
44
import jakarta.validation.constraints.NotBlank;
55

6+
@Deprecated
67
public record EditCommentRequest(
78
@Schema(description = "댓글 내용")
89
@NotBlank

src/main/java/clap/server/adapter/inbound/web/dto/log/request/FilterLogRequest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ public record FilterLogRequest(
1414
Integer term,
1515

1616
@NotNull
17-
@Schema(description = "로그 상태 목록",
18-
example = "[\"LOGIN\", \"ASSIGNER_CHANGED\", \"COMMENT_ADDED\"]")
17+
@Schema(description = "로그 상태 목록")
1918
List<LogStatus> logStatus,
2019

2120
@NotNull

src/main/java/clap/server/adapter/inbound/web/dto/member/request/SendVerificationCodeRequest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import jakarta.validation.constraints.NotBlank;
44

5+
@Deprecated
56
public record SendVerificationCodeRequest(
67
@NotBlank
78
String nickname,

src/main/java/clap/server/adapter/inbound/web/dto/member/request/VerifyCodeRequest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
import jakarta.validation.constraints.NotBlank;
55

6+
@Deprecated
67
public record VerifyCodeRequest(
78
@NotBlank
89
String email,

src/main/java/clap/server/adapter/outbound/api/agit/AgitTemplateBuilder.java

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,19 @@ public String createPayLoad(PushNotificationTemplate request, Task task, String
4242

4343
public String createMessage(PushNotificationTemplate request, String taskDetailUrl) {
4444

45-
return switch (request.notificationType()) {
46-
case TASK_REQUESTED -> "📌 *새 작업 요청:* `" + request.taskName() + "`\\n"
47-
+ "\\t\\t*•요청자: " + request.senderName() + "*\\n"
48-
+ "[확인하러 가기](" + taskDetailUrl + ")";
49-
case STATUS_SWITCHED -> "⚙️ *작업 상태 변경:* `" + request.taskName() + "\\n"
50-
+ "\\t\\t*•작업 상태: " + request.message() + "*\\n"
51-
+ "[확인하러 가기](" + taskDetailUrl + ")";
52-
case PROCESSOR_CHANGED -> "🔄 *담당자 변경:* `" + request.taskName() + "\\n"
53-
+ "\\t\\t*•새 담당자: " + request.message() + "*\\n"
54-
+ "[확인하러 가기](" + taskDetailUrl + ")";
55-
case PROCESSOR_ASSIGNED -> "👤 *작업 담당자 배정:* `" + request.taskName() + "\\n"
56-
+ "\\t\\t*•담당자: " + request.message() + "*\\n"
57-
+ "[확인하러 가기](" + taskDetailUrl + ")";
45+
return switch (request.notificationType()) {
46+
case TASK_REQUESTED -> "📌 *새 작업이 요청되었습니다.*\\n"
47+
+ "\\t\\t*• 🔖 작업명:* " + "*" + request.taskName() + "*" + "\\n"
48+
+ "\\t\\t*• 🙋 요청자:* " + "*" + request.senderName() + "*" + "\\n\\n"
49+
+ "\\t[자세히 보기](" + taskDetailUrl + ")";
50+
51+
case STATUS_SWITCHED -> "작업 상태가 " + "*" + request.message() + "*" + "으로 변경되었습니다.";
52+
53+
case PROCESSOR_CHANGED -> "담당자가 " + "*" + request.message() + "*" + "으로 변경되었습니다.";
54+
55+
case PROCESSOR_ASSIGNED -> "작업이 *승인*되었습니다.*\n"
56+
+ "\\t\\t*• 👤 담당자:* " + "*" + request.message() + "*";
57+
5858
default -> null;
5959
};
6060
}

src/main/java/clap/server/adapter/outbound/api/data/PushNotificationTemplate.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ public record PushNotificationTemplate(
99
String taskName,
1010
String senderName,
1111
String message,
12-
String commenterName
12+
String commenterName,
13+
String reason
1314
) {
1415
}

0 commit comments

Comments
 (0)