peng
6 天以前 745af316b6f14cc97f6cb64d56eda4cb68960c3e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package cn.lili.modules.lmk.domain.vo;
 
import cn.lili.base.AbsVo;
import cn.lili.modules.lmk.domain.entity.Share;
import java.util.List;
import org.springframework.lang.NonNull;
import org.springframework.beans.BeanUtils;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;
 
/**
 * 分享记录展示
 *
 * @author xp
 * @since 2025-06-16
 */
@Data
@ApiModel(value = "分享记录响应数据", description = "分享记录响应数据")
public class ShareVO extends AbsVo {
 
    /** 哪个业务的分享 */
    @ApiModelProperty("哪个业务的分享")
    private String shareType;
 
    /** 业务id */
    @ApiModelProperty("业务id")
    private String refId;
 
    /** 分享人 */
    @ApiModelProperty("分享人")
    private String shareUser;
 
    /** 分享时间 */
    @ApiModelProperty("分享时间")
    private Date shareTime;
 
    public static ShareVO getVoByEntity(@NonNull Share entity, ShareVO vo) {
        if(vo == null) {
            vo = new ShareVO();
        }
        BeanUtils.copyProperties(entity, vo);
        return vo;
    }
 
}