From c7e1cf750570e3bb914e4e88671480f958768644 Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Thu, 17 Aug 2023 17:11:43 +0800 Subject: [PATCH] feat: add message enable --- .../project/domain/MessageTask.java | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/backend/framework/domain/src/main/java/io/metersphere/project/domain/MessageTask.java b/backend/framework/domain/src/main/java/io/metersphere/project/domain/MessageTask.java index 0f9578d5b8..8da56434f8 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/project/domain/MessageTask.java +++ b/backend/framework/domain/src/main/java/io/metersphere/project/domain/MessageTask.java @@ -10,48 +10,48 @@ import lombok.Data; @Data public class MessageTask implements Serializable { - @Schema(title = "", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{message_task.id.not_blank}", groups = {Updated.class}) @Size(min = 1, max = 50, message = "{message_task.id.length_range}", groups = {Created.class, Updated.class}) private String id; - @Schema(title = "消息类型", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "消息类型", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{message_task.type.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{message_task.type.length_range}", groups = {Created.class, Updated.class}) private String type; - @Schema(title = "通知事件类型", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "通知事件类型", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{message_task.event.not_blank}", groups = {Created.class}) @Size(min = 1, max = 255, message = "{message_task.event.length_range}", groups = {Created.class, Updated.class}) private String event; - @Schema(title = "接收人id", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "接收人id", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{message_task.receiver.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{message_task.receiver.length_range}", groups = {Created.class, Updated.class}) private String receiver; - @Schema(title = "任务类型", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "任务类型", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{message_task.task_type.not_blank}", groups = {Created.class}) @Size(min = 1, max = 64, message = "{message_task.task_type.length_range}", groups = {Created.class, Updated.class}) private String taskType; - @Schema(title = "webhook地址") + @Schema(description = "webhook地址") private String webhook; - @Schema(title = "具体测试的ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "具体测试的ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{message_task.test_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{message_task.test_id.length_range}", groups = {Created.class, Updated.class}) private String testId; - @Schema(title = "创建时间") + @Schema(description = "创建时间") private Long createTime; - @Schema(title = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{message_task.project_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{message_task.project_id.length_range}", groups = {Created.class, Updated.class}) private String projectId; - @Schema(title = "是否启用") + @Schema(description = "是否启用") @NotNull(message = "{message_task.enable.not_blank}", groups = {Created.class, Updated.class}) private Boolean enable;