package cn.lili.modules.lmk.domain.vo; import cn.lili.base.AbsVo; import cn.lili.modules.lmk.domain.entity.VideoTag; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import org.springframework.beans.BeanUtils; import org.springframework.data.elasticsearch.annotations.Field; import org.springframework.data.elasticsearch.annotations.FieldType; import org.springframework.lang.NonNull; /** * 视频标签展示 * * @author xp * @since 2025-05-13 */ @Data @ApiModel(value = "视频标签响应数据", description = "视频标签响应数据") public class SimpleVideoTagVO { @ApiModelProperty("标签id") @Field(type = FieldType.Keyword) private String id; /** 标签名称 */ @ApiModelProperty("标签名称") @Field(type = FieldType.Text, searchAnalyzer = "ik_max_word") private String tagName; @ApiModelProperty(hidden = true) @Field(type = FieldType.Keyword) private String videoId; public static SimpleVideoTagVO getVoByEntity(@NonNull VideoTag entity, SimpleVideoTagVO vo) { if(vo == null) { vo = new SimpleVideoTagVO(); } BeanUtils.copyProperties(entity, vo); return vo; } }