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;
|
}
|
|
}
|