123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174 |
- package com.lqkj.business.entity;
- import com.lqkj.common.annotation.Excels;
- import org.apache.commons.lang3.builder.ToStringBuilder;
- import org.apache.commons.lang3.builder.ToStringStyle;
- import com.lqkj.common.annotation.Excel;
- import com.lqkj.common.core.model.BaseEntity;
- /**
- * 信息管理对象 cms_news
- *
- * @author lqkj
- * @date 2023-02-16
- */
- public class CmsNews extends BaseEntity
- {
- private static final long serialVersionUID = 1L;
- /** 编号 */
- private String newsId;
- /** 所属分类 */
- // @Excel(name = "所属分类")
- private Integer categoryId;
- /** 标题 */
- @Excel(name = "标题")
- private String title;
- /** 内容 */
- private String content;
- /** 浏览量 */
- @Excel(name = "浏览量")
- private Integer viewCount;
- /** 是否置顶 */
- @Excel(name = "是否置顶", readConverterExp = "true=是,false=否")
- private Boolean isTop;
- /** 是否轮播 */
- @Excel(name = "是否轮播", readConverterExp = "true=是,false=否")
- private Boolean carousel;
- /** 缩略图 */
- @Excel(name = "缩略图")
- private String thumbnail;
- /** 视频 */
- @Excel(name = "视频")
- private String videoUrl;
- private Object focusImgs;
- @Excels({
- @Excel(name = "分类名称", targetAttr = "name", type = Excel.Type.EXPORT)})
- private CmsCategory cmsCategory;
- public void setNewsId(String newsId)
- {
- this.newsId = newsId;
- }
- public String getNewsId()
- {
- return newsId;
- }
- public void setCategoryId(Integer categoryId)
- {
- this.categoryId = categoryId;
- }
- public Integer getCategoryId()
- {
- return categoryId;
- }
- public void setTitle(String title)
- {
- this.title = title;
- }
- public String getTitle()
- {
- return title;
- }
- public void setContent(String content)
- {
- this.content = content;
- }
- public String getContent()
- {
- return content;
- }
- public void setViewCount(Integer viewCount)
- {
- this.viewCount = viewCount;
- }
- public Integer getViewCount()
- {
- return viewCount;
- }
- public void setIsTop(Boolean isTop)
- {
- this.isTop = isTop;
- }
- public Boolean getIsTop()
- {
- return isTop;
- }
- public void setThumbnail(String thumbnail)
- {
- this.thumbnail = thumbnail;
- }
- public String getThumbnail()
- {
- return thumbnail;
- }
- public void setVideoUrl(String videoUrl)
- {
- this.videoUrl = videoUrl;
- }
- public String getVideoUrl()
- {
- return videoUrl;
- }
- public CmsCategory getCmsCategory() {
- return cmsCategory;
- }
- public void setCmsCategory(CmsCategory cmsCategory) {
- this.cmsCategory = cmsCategory;
- }
- public Object getFocusImgs() {
- return focusImgs;
- }
- public void setFocusImgs(Object focusImgs) {
- this.focusImgs = focusImgs;
- }
- public Boolean getCarousel() {
- return carousel;
- }
- public void setCarousel(Boolean carousel) {
- this.carousel = carousel;
- }
- @Override
- public String toString() {
- return "CmsNews{" +
- "newsId='" + newsId + '\'' +
- ", categoryId=" + categoryId +
- ", title='" + title + '\'' +
- ", content='" + content + '\'' +
- ", viewCount=" + viewCount +
- ", isTop=" + isTop +
- ", carousel=" + carousel +
- ", thumbnail='" + thumbnail + '\'' +
- ", videoUrl='" + videoUrl + '\'' +
- ", focusImgs=" + focusImgs +
- ", cmsCategory=" + cmsCategory +
- '}';
- }
- }
|