package cn.reghao.tnb.content.app.data.model.vo;

import cn.reghao.jutil.jdk.db.PageList;
import cn.reghao.tnb.content.app.data.model.po.ImagePost;
import lombok.*;

/**
 * @author reghao
 * @date 2023-08-19 12:49:28
 */
@NoArgsConstructor
@AllArgsConstructor
@Setter
@Getter
public class ImageAlbumCard {
    private Long albumId;
    private String albumName;
    private String userId;
    private PageList<ImageData> images;

    public ImageAlbumCard(ImagePost imagePost, String userIdStr) {
        this.albumId = imagePost.getAlbumId();
        this.albumName = imagePost.getAlbumName();
        this.userId = userIdStr;
    }
}
