All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.owl.mvc.dto.DeleteDTO Maven / Gradle / Ivy

package com.owl.mvc.dto;

import java.util.List;

/**
 * 删除接收类
 * @author engwen
 * email [email protected]
 * 2019/2/26.
 */
public class DeleteDTO {
    /*
    * 主id
    * */
    private Long id;
    /*
    * id集合
    * */
    private List idList;

    public DeleteDTO() {
    }

    private DeleteDTO(Long id) {
        this.id = id;
    }

    private DeleteDTO(List idList) {
        this.idList = idList;
    }

    public static DeleteDTO getInstance(Long id) {
        return new DeleteDTO(id);
    }

    public static DeleteDTO getInstance(List idList) {
        return new DeleteDTO(idList);
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public List getIdList() {
        return idList;
    }

    public void setIdList(List idList) {
        this.idList = idList;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy