# M3PlLayoutDTO.java

    package cloud.wconnect.finance.pojo.dto.pl;

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

    /**
     * <p>
     * Layout配置
     * </p>
     *
     * @author lichen
     * @since 2025-09-25
     */
    @Data
    public class M3PlLayoutDTO {

        /**
         * 分类，1:Row 2:Blank 3:Label 4:分割线
         */
        @Range(min = 1, max = 4, message = "The category must between in [1:Row 2:Blank 3:Label 4:Line]")
        private Integer category;

        /**
         * 分类为2或4时row_number为空；分类为1,3时row_number不为空
         */
        private String rowNumber;

        /**
         * 显示样式，多个样式用逗号分隔。1：字体加粗 2：字体倾斜 3：字体加下划线 4：字体颜色。
         */
        private String styleType;

        /**
         * style_type包含4时，此字段才有值
         */
        private String styleValue;

        /**
         * 1:Income 2:Expense
         */
        @Range(min = 1, max = 2, message = "The rowType must between in [1:Income 2:Expense]")
        private Integer rowType;

        /**
         * %Rev指标的计算公式
         */
        @Valid
        private RevFormulaDTO revFormula;

        /**
         * POR公式计算的分母，Row的编号
         */
        private String porFormulaDenominator;

    }