From 499661e55d6e3595f6f3e58b7fdff0e3acc89832 Mon Sep 17 00:00:00 2001 From: song-cc-rock Date: Wed, 18 Oct 2023 16:03:57 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E7=B3=BB=E7=BB=9F=E8=AE=BE=E7=BD=AE):=20?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=BB=84=E7=BB=87=E5=88=97=E8=A1=A8=E5=90=8D?= =?UTF-8?q?=E7=A7=B0=E4=BF=AE=E6=94=B9=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../request/OrganizationNameEditRequest.java | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 backend/services/system-setting/src/main/java/io/metersphere/system/request/OrganizationNameEditRequest.java diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/request/OrganizationNameEditRequest.java b/backend/services/system-setting/src/main/java/io/metersphere/system/request/OrganizationNameEditRequest.java new file mode 100644 index 0000000000..5a74ab4b33 --- /dev/null +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/request/OrganizationNameEditRequest.java @@ -0,0 +1,27 @@ +package io.metersphere.system.request; + +import io.metersphere.validation.groups.Created; +import io.metersphere.validation.groups.Updated; +import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotBlank; +import jakarta.validation.constraints.Size; +import lombok.Data; +import lombok.EqualsAndHashCode; + +import java.io.Serializable; + +/** + * @author song-cc-rock + */ +@Data +@EqualsAndHashCode(callSuper = false) +public class OrganizationNameEditRequest implements Serializable { + + @Schema(description = "组织ID", requiredMode = Schema.RequiredMode.REQUIRED) + private String id; + + @Schema(description = "组织名称", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{organization.name.not_blank}", groups = {Created.class, Updated.class}) + @Size(min = 1, max = 100, message = "{organization.name.length_range}", groups = {Created.class, Updated.class}) + private String name; +}