| | |
| | | package com.yeshi.buwan.vo.video; |
| | | |
| | | import com.yeshi.buwan.domain.SolrVideo; |
| | | import com.yeshi.buwan.domain.solr.SolrAlbumVideo; |
| | | import com.yeshi.buwan.domain.VideoInfo; |
| | | import com.yeshi.buwan.util.StringUtil; |
| | | import com.yeshi.buwan.util.TimeUtil; |
| | |
| | | private String updatetime; |
| | | private String show; |
| | | private String tag; |
| | | private Integer freeType; |
| | | |
| | | public Integer getFreeType() { |
| | | return freeType; |
| | | } |
| | | |
| | | public void setFreeType(Integer freeType) { |
| | | this.freeType = freeType; |
| | | } |
| | | |
| | | public void setShow(String show) { |
| | | this.show = show; |
| | |
| | | } |
| | | |
| | | |
| | | public static VideoAdminInfoVO create(SolrVideo solrVideo) { |
| | | public static VideoAdminInfoVO create(SolrAlbumVideo solrVideo) { |
| | | VideoAdminInfoVO vo = new VideoAdminInfoVO(); |
| | | vo.setId(solrVideo.getId()); |
| | | vo.setName(solrVideo.getName()); |
| | |
| | | StringUtil.isNullOrEmpty(solrVideo.getUpdatetime() + "") ? "0" : solrVideo.getUpdatetime() + ""), |
| | | "yyyy-MM-dd")); |
| | | vo.setTag(solrVideo.getTag()); |
| | | vo.setFreeType(solrVideo.getFreeType()); |
| | | return vo; |
| | | } |
| | | |