From bb74dfcc1ca1015dbda51d67ae6df30c3bbfac3e Mon Sep 17 00:00:00 2001 From: liujiming <liujm@wealthgrow.cn> Date: Mon, 28 Jun 2021 14:21:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BB=E9=A2=98=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../community/ThemeAttachmentEntity.java | 139 ++++++++++++++++++ .../community/ThemeAttachmentMapper.java | 16 ++ 2 files changed, 155 insertions(+) create mode 100644 community-service/src/main/java/com/tanpu/community/dao/entity/community/ThemeAttachmentEntity.java create mode 100644 community-service/src/main/java/com/tanpu/community/dao/mapper/community/ThemeAttachmentMapper.java diff --git a/community-service/src/main/java/com/tanpu/community/dao/entity/community/ThemeAttachmentEntity.java b/community-service/src/main/java/com/tanpu/community/dao/entity/community/ThemeAttachmentEntity.java new file mode 100644 index 0000000..67e46fe --- /dev/null +++ b/community-service/src/main/java/com/tanpu/community/dao/entity/community/ThemeAttachmentEntity.java @@ -0,0 +1,139 @@ +package com.tanpu.community.dao.entity.community; + +import com.baomidou.mybatisplus.annotation.TableName; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.NoArgsConstructor; + +import java.io.Serializable; +import java.time.LocalDateTime; + +/** + * <p> + * 主题附件 + * </p> + * + * @author xudong + * @since 2021-06-28 + */ +@Builder +@AllArgsConstructor +@NoArgsConstructor +@TableName("theme_attachment") +@ApiModel(value="ThemeAttachmentEntity对象", description="主题附件") +public class ThemeAttachmentEntity implements Serializable { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty(value = "id") + private String id; + + @ApiModelProperty(value = "主题ID") + private String themeId; + + @ApiModelProperty(value = "附件类型") + private Integer attachType; + + @ApiModelProperty(value = "附件对应的ID") + private String attchId; + + private String createBy; + + private LocalDateTime createTime; + + private String updateBy; + + private LocalDateTime updateTime; + + private Integer deleteTag; + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getThemeId() { + return themeId; + } + + public void setThemeId(String themeId) { + this.themeId = themeId; + } + + public Integer getAttachType() { + return attachType; + } + + public void setAttachType(Integer attachType) { + this.attachType = attachType; + } + + public String getAttchId() { + return attchId; + } + + public void setAttchId(String attchId) { + this.attchId = attchId; + } + + public String getCreateBy() { + return createBy; + } + + public void setCreateBy(String createBy) { + this.createBy = createBy; + } + + public LocalDateTime getCreateTime() { + return createTime; + } + + public void setCreateTime(LocalDateTime createTime) { + this.createTime = createTime; + } + + public String getUpdateBy() { + return updateBy; + } + + public void setUpdateBy(String updateBy) { + this.updateBy = updateBy; + } + + public LocalDateTime getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(LocalDateTime updateTime) { + this.updateTime = updateTime; + } + + public Integer getDeleteTag() { + return deleteTag; + } + + public void setDeleteTag(Integer deleteTag) { + this.deleteTag = deleteTag; + } + + @Override + public String toString() { + return "ThemeAttachmentEntity{" + + "id=" + id + + ", themeId=" + themeId + + ", attachType=" + attachType + + ", attchId=" + attchId + + ", createBy=" + createBy + + ", createTime=" + createTime + + ", updateBy=" + updateBy + + ", updateTime=" + updateTime + + ", deleteTag=" + deleteTag + + "}"; + } +} diff --git a/community-service/src/main/java/com/tanpu/community/dao/mapper/community/ThemeAttachmentMapper.java b/community-service/src/main/java/com/tanpu/community/dao/mapper/community/ThemeAttachmentMapper.java new file mode 100644 index 0000000..2089c26 --- /dev/null +++ b/community-service/src/main/java/com/tanpu/community/dao/mapper/community/ThemeAttachmentMapper.java @@ -0,0 +1,16 @@ +package com.tanpu.community.dao.mapper.community; + +import com.tanpu.community.dao.entity.community.ThemeAttachmentEntity; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + * <p> + * 主题附件 Mapper æŽ¥å£ + * </p> + * + * @author xudong + * @since 2021-06-28 + */ +public interface ThemeAttachmentMapper extends BaseMapper<ThemeAttachmentEntity> { + +} -- 2.18.1