✨ 作品集功能
This commit is contained in:
parent
1d557e75ee
commit
74f5878910
34
src/main/java/com/rymcu/vertical/entity/Portfolio.java
Normal file
34
src/main/java/com/rymcu/vertical/entity/Portfolio.java
Normal file
@ -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;
|
||||||
|
}
|
10
src/main/java/com/rymcu/vertical/mapper/PortfolioMapper.java
Normal file
10
src/main/java/com/rymcu/vertical/mapper/PortfolioMapper.java
Normal file
@ -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<Portfolio> {
|
||||||
|
}
|
13
src/main/java/mapper/PortfolioMapper.xml
Normal file
13
src/main/java/mapper/PortfolioMapper.xml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||||
|
<mapper namespace="com.rymcu.vertical.mapper.PortfolioMapper">
|
||||||
|
<resultMap id="BaseResultMap" type="com.rymcu.vertical.entity.Portfolio">
|
||||||
|
<id column="id" property="idPortfolio"></id>
|
||||||
|
<result column="head_img_url" property="headImgUrl"></result>
|
||||||
|
<result column="name" property="name"></result>
|
||||||
|
<result column="portfolio_author_id" property="portfolioAuthorId"></result>
|
||||||
|
<result column="description" property="description"></result>
|
||||||
|
<result column="created_time" property="createdTime"></result>
|
||||||
|
<result column="updated_time" property="updatedTime"></result>
|
||||||
|
</resultMap>
|
||||||
|
</mapper>
|
Loading…
Reference in New Issue
Block a user