diff --git a/src/main/java/com/rymcu/vertical/dto/PortfolioDTO.java b/src/main/java/com/rymcu/vertical/dto/PortfolioDTO.java index 772f46a..2b6b486 100644 --- a/src/main/java/com/rymcu/vertical/dto/PortfolioDTO.java +++ b/src/main/java/com/rymcu/vertical/dto/PortfolioDTO.java @@ -20,9 +20,9 @@ public class PortfolioDTO { /** 作品集作者头像 */ private String portfolioAuthorAvatarUrl; /** 作品集名称 */ - private String name; + private String portfolioTitle; /** 作品集介绍 */ - private String description; + private String portfolioDescription; /** 更新时间 */ private Date updatedTime; /** 过去时长 */ diff --git a/src/main/java/com/rymcu/vertical/entity/Portfolio.java b/src/main/java/com/rymcu/vertical/entity/Portfolio.java index 5d37ca6..c18877a 100644 --- a/src/main/java/com/rymcu/vertical/entity/Portfolio.java +++ b/src/main/java/com/rymcu/vertical/entity/Portfolio.java @@ -20,13 +20,14 @@ public class Portfolio { @Column(name = "id") private Integer idPortfolio; /** 作品集头像 */ + @Column(name = "portfolio_head_img_url") private String headImgUrl; /** 作品集名称 */ - private String name; + private String portfolioTitle; /** 作品集作者 */ private Integer portfolioAuthorId; /** 作品集介绍 */ - private String description; + private String portfolioDescription; /** 创建时间 */ private Date createdTime; /** 更新时间 */ diff --git a/src/main/java/mapper/PortfolioMapper.xml b/src/main/java/mapper/PortfolioMapper.xml index e78ece3..9ecb377 100644 --- a/src/main/java/mapper/PortfolioMapper.xml +++ b/src/main/java/mapper/PortfolioMapper.xml @@ -3,26 +3,26 @@ - - + + - + - - + + - +