1234567891011121314151617181920212223242526272829303132 |
- package com.welampiot.vo;
- import com.welampiot.dto.PolicyDTO;
- import lombok.Data;
- import org.jetbrains.annotations.Contract;
- import org.jetbrains.annotations.NotNull;
- import java.util.List;
- @Data
- public class PolicyVO {
- private List userList;
- private Integer limit;
- private Integer offset;
- private String keyword;
- private List<PolicyDTO> list;
- private Integer total;
- private Integer id;
- private Integer version;
- @NotNull
- @Contract("_ -> param1")
- public static PolicyVO getPolicyVO(@NotNull PolicyVO vo) {
- if (vo.getId() == null) {
- vo.setId(0);
- }
- if (vo.getVersion() == null) {
- vo.setVersion(0);
- }
- return vo;
- }
- }
|