# UpdateVariableConfigDTO.java

    package cloud.wconnect.rateshop.pojo.dto.budgetdatabase;

    import jakarta.validation.constraints.NotNull;
    import lombok.Data;
    import org.apache.logging.log4j.core.config.plugins.validation.constraints.NotBlank;
    import org.hibernate.validator.constraints.Length;
    import org.hibernate.validator.constraints.Range;

    import java.util.List;

    /**
     *
     * @author: yyt
     * 2025-11-13
     */
    @Data
    public class UpdateVariableConfigDTO {

        /**
         * 名称
         */
        @NotBlank(message = "the name must not be null")
        @Length(max = 255, message = "the name must be less than 255 characters")
        private String name;

        /**
         * 类型 1、revenue，2、room
         */
        @NotNull(message = "the type must not be null")
        @Range(min = 1, max = 2, message = "the type must be in [1.revenue，2、room]")
        private Integer type;

        /**
         * room 分类公式
         */
        private List<Integer> roomFormula;

        /**
         * fb 分类公式
         */
        private List<Integer> fbFormula;

        /**
         * revenue 分类公式
         */
        private List<Integer> otherFormula;

    }