12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- 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
- */
- @Data
- public 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;
- private String name;
- private String beginDate;
- private List<BroadcastItemDTO> proTimeList;
- @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;
- }
- }
|