| | |
| | | package com.yeshi.buwan.domain.live; |
| | | |
| | | import org.springframework.data.annotation.Id; |
| | | import org.springframework.data.mongodb.core.mapping.Document; |
| | | |
| | | import java.util.Date; |
| | | |
| | | @Document(collection = "tvLiveChannelResourceMap") |
| | | public class TVLiveChannelResourceMap { |
| | | |
| | | @Id |
| | | private String id; |
| | | private String channelId; |
| | | private TVLiveResource resource; |
| | | //第三方主键 |
| | | private String rid; |
| | | |
| | | private Integer weight; |
| | | |
| | | private Date createTime; |
| | | |
| | | |
| | | public String getId() { |
| | | return id; |
| | | } |
| | | |
| | | public void setId(String id) { |
| | | this.id = id; |
| | | } |
| | | |
| | | public static String createId(String channelId, TVLiveResource resource) { |
| | | return channelId + "-" + resource.name(); |
| | | } |
| | | |
| | | public String getChannelId() { |
| | | return channelId; |
| | | } |
| | | |
| | | public void setChannelId(String channelId) { |
| | | this.channelId = channelId; |
| | | } |
| | | |
| | | public TVLiveResource getResource() { |
| | | return resource; |
| | | } |
| | | |
| | | public void setResource(TVLiveResource resource) { |
| | | this.resource = resource; |
| | | } |
| | | |
| | | public String getRid() { |
| | | return rid; |
| | | } |
| | | |
| | | public void setRid(String rid) { |
| | | this.rid = rid; |
| | | } |
| | | |
| | | public Integer getWeight() { |
| | | return weight; |
| | | } |
| | | |
| | | public void setWeight(Integer weight) { |
| | | this.weight = weight; |
| | | } |
| | | |
| | | public Date getCreateTime() { |
| | | return createTime; |
| | | } |
| | | |
| | | public void setCreateTime(Date createTime) { |
| | | this.createTime = createTime; |
| | | } |
| | | } |