// Path: src/main/java/co/lilpilot/blog/model/Tag.java
// @Data
// @Entity
// @Table(name = "tags")
// public class Tag extends BaseModel {
//     @Column(nullable = false, unique = true)
//     private String name;
// 
//     @ManyToMany(mappedBy = "tags")
//     // @JsonIgnore避免response中的json数据产生死循环
//     @JsonIgnore
//     private List<Post> posts = new ArrayList<>();
// 
//     //toString不包含posts 避免死循环
//     @Override
//     public String toString() {
//         return "Tag{" +
//                 "name='" + name + '\'' +
//                 "}" + super.toString();
//     }
// }


import co.lilpilot.blog.model.Tag;
import lombok.Data;
import java.util.Date;
import java.util.List;
package co.lilpilot.blog.model.vo;



/**
 * Created by lilpilot on 2017/7/5.
 */
@Data
public class PostListVO {
    private Long id;

    private Date createTime;

    private Date updateTime;

    private String title;

    private String permalink;

    private Integer status;

    private String statusDesc;

// Path: src/main/java/co/lilpilot/blog/model/Tag.java
// @Data
// @Entity
// @Table(name = "tags")
// public class Tag extends BaseModel {
//     @Column(nullable = false, unique = true)
//     private String name;
// 
//     @ManyToMany(mappedBy = "tags")
//     // @JsonIgnore避免response中的json数据产生死循环
//     @JsonIgnore
//     private List<Post> posts = new ArrayList<>();
// 
//     //toString不包含posts 避免死循环
//     @Override
//     public String toString() {
//         return "Tag{" +
//                 "name='" + name + '\'' +
//                 "}" + super.toString();
//     }
// }


// Path: src/main/java/co/lilpilot/blog/model/vo/PostListVO.java
import co.lilpilot.blog.model.Tag;
import lombok.Data;
import java.util.Date;
import java.util.List;

package co.lilpilot.blog.model.vo;



/**
 * Created by lilpilot on 2017/7/5.
 */
@Data
public class PostListVO {
    private Long id;

    private Date createTime;

    private Date updateTime;

    private String title;

    private String permalink;

    private Integer status;

    private String statusDesc;

    private List<Tag> tags;