作品集功能

This commit is contained in:
ronger 2020-04-07 17:32:20 +08:00
parent 1d557e75ee
commit 74f5878910
3 changed files with 57 additions and 0 deletions

View 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;
}

View 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> {
}

View 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>