From 74f5878910af932d226cc05c4a5bef7109c7364c Mon Sep 17 00:00:00 2001 From: ronger Date: Tue, 7 Apr 2020 17:32:20 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E4=BD=9C=E5=93=81=E9=9B=86?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/rymcu/vertical/entity/Portfolio.java | 34 +++++++++++++++++++ .../vertical/mapper/PortfolioMapper.java | 10 ++++++ src/main/java/mapper/PortfolioMapper.xml | 13 +++++++ 3 files changed, 57 insertions(+) create mode 100644 src/main/java/com/rymcu/vertical/entity/Portfolio.java create mode 100644 src/main/java/com/rymcu/vertical/mapper/PortfolioMapper.java create mode 100644 src/main/java/mapper/PortfolioMapper.xml diff --git a/src/main/java/com/rymcu/vertical/entity/Portfolio.java b/src/main/java/com/rymcu/vertical/entity/Portfolio.java new file mode 100644 index 0000000..5d37ca6 --- /dev/null +++ b/src/main/java/com/rymcu/vertical/entity/Portfolio.java @@ -0,0 +1,34 @@ +package com.rymcu.vertical.entity; + +import lombok.Data; + +import javax.persistence.Column; +import javax.persistence.GeneratedValue; +import javax.persistence.Id; +import javax.persistence.Table; +import java.util.Date; + +/** + * @author ronger + */ +@Data +@Table(name = "vertical_portfolio") +public class Portfolio { + /** 主键 */ + @Id + @GeneratedValue(generator = "JDBC") + @Column(name = "id") + private Integer idPortfolio; + /** 作品集头像 */ + private String headImgUrl; + /** 作品集名称 */ + private String name; + /** 作品集作者 */ + private Integer portfolioAuthorId; + /** 作品集介绍 */ + private String description; + /** 创建时间 */ + private Date createdTime; + /** 更新时间 */ + private Date updatedTime; +} diff --git a/src/main/java/com/rymcu/vertical/mapper/PortfolioMapper.java b/src/main/java/com/rymcu/vertical/mapper/PortfolioMapper.java new file mode 100644 index 0000000..fbe5c7c --- /dev/null +++ b/src/main/java/com/rymcu/vertical/mapper/PortfolioMapper.java @@ -0,0 +1,10 @@ +package com.rymcu.vertical.mapper; + +import com.rymcu.vertical.core.mapper.Mapper; +import com.rymcu.vertical.entity.Portfolio; + +/** + * @author ronger + */ +public interface PortfolioMapper extends Mapper { +} diff --git a/src/main/java/mapper/PortfolioMapper.xml b/src/main/java/mapper/PortfolioMapper.xml new file mode 100644 index 0000000..54dac69 --- /dev/null +++ b/src/main/java/mapper/PortfolioMapper.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file