# GmwrStrDataDetailSaveDTO.java

    package cloud.wconnect.workperformance.pojo.dto.gmwr.strdata.save;

    import jakarta.validation.Valid;
    import jakarta.validation.constraints.NotNull;
    import lombok.AllArgsConstructor;
    import lombok.Builder;
    import lombok.Data;
    import org.hibernate.validator.constraints.Range;

    /**
     * DTO: Str Data Detail Save
     *
     * @author zc
     * @date 2025/1/21
     */
    @Data
    @Builder
    @AllArgsConstructor
    public class GmwrStrDataDetailSaveDTO {
        /**
         * Category
         */
        @NotNull(message = "The category cannot be null")
        @Range(min = 1, max = 3, message = "The category must be in [1 - 3]")
        private Integer category;
        /**
         * My Property
         */
        @Valid
        @NotNull(message = "The property cannot be null")
        private GmwrStrDataValueSaveDTO property;
        /**
         * My Property Chg
         */
        @Valid
        @NotNull(message = "The propertyChg cannot be null")
        private GmwrStrDataValueSaveDTO propertyChg;
        /**
         * Comp Set
         */
        @Valid
        @NotNull(message = "The compSet cannot be null")
        private GmwrStrDataValueSaveDTO compSet;
        /**
         * Comp Set Chg
         */
        @Valid
        @NotNull(message = "The compSetChg cannot be null")
        private GmwrStrDataValueSaveDTO compSetChg;
        /**
         * Index
         */
        @Valid
        @NotNull(message = "The index cannot be null")
        private GmwrStrDataValueSaveDTO index;
        /**
         * Index Chg
         */
        @Valid
        @NotNull(message = "The indexChg cannot be null")
        private GmwrStrDataValueSaveDTO indexChg;
    }