# ExpenseDetailDTO.java

    package cloud.wconnect.workperformance.pojo.dto.monthlyreport.expenses;

    import lombok.AllArgsConstructor;
    import lombok.Data;
    import lombok.NoArgsConstructor;
    import org.hibernate.validator.constraints.Length;

    import jakarta.validation.Valid;
    import jakarta.validation.constraints.NotEmpty;
    import java.util.List;

    /**
     * Expenses 区域详情数据
     *
     * @author lichen
     * @date 2023/9/4
     */
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public class ExpenseDetailDTO {

        /**
         * 链接
         */
        @Length(max = 500, message = "The link is limited 500 characters")
        private String link;

        /**
         * 花销分类数据
         */
        @Valid
        @NotEmpty(message = "The expenseCategorys cannot be empty")
        private List<ExpenseCategoryDTO> expenseCategorys;

    }