package com.yifu.cloud.plus.v1.yifu.archives.utils;

import lombok.Getter;
import lombok.Setter;

import javax.validation.Valid;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @program: master
 * @description: 验证list对象
 * @author: pwang
 * @create: 2020-07-29 20:17
 **/
@Getter
@Setter
public class ListWrapper<E> implements Serializable {

    private static final long serialVersionUID = 1L;

    @Valid
    private List<E> list;

    public ListWrapper() {
        list = new ArrayList<>();
    }

    public ListWrapper(List<E> list) {
        this.list = list;
    }

}
