package com.yuchen.saas.park.api.dto.property;

import com.yuchen.saas.park.api.entity.property.PropertyBill;
import com.yuchen.saas.park.api.entity.property.PropertyBillSub;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * 拆分账单参数
 */
@Data
public class PropertySlipCreateBillDto {

    @NotNull(message = "账单参数不能为空")
    @Size(min = 2,message = "拆分的账单不能小于2笔")
    private List<PropertyBill> billList;

    @NotNull(message = "子表账单参数不能为空")
    @Size(min = 2,message = "子表拆分的账单不能小于2笔")
    private List<PropertyBillSub> billSubList;

}
