| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 | package com.welampiot.vo;import com.welampiot.dto.BroadcastItemDTO;import lombok.Data;import org.jetbrains.annotations.Contract;import org.jetbrains.annotations.NotNull;import java.io.Serializable;import java.util.List;/** * ClassName: BroadcastItemVO * Package: com.welampiot.vo * Description: * * @Author: zhj_Start * @Create: 2023/4/17 - 15:50 * @Version: v1.0 */@Datapublic class BroadcastItemVO implements Serializable {    private Integer page;    private Integer count;    private String keyword;    private Integer version;    private String username;    private Integer userId;    private Integer total;    private List<BroadcastItemDTO> list;    private static final long serialVersionUID = 1L;    @NotNull    @Contract("_ -> param1")    public static BroadcastItemVO getBroadcastItemVO(@NotNull BroadcastItemVO vo) {        if (vo.getVersion() == null) {            vo.setVersion(0);        }        if (vo.getUsername() == null) {            vo.setUsername("");        }        if (vo.getPage() == null) {            vo.setPage(1);        }        if (vo.getCount() == null) {            vo.setCount(16);        }        if (vo.getKeyword() == null) {            vo.setKeyword("");        }        return vo;    }}
 |