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

import cn.reghao.jutil.jdk.db.BaseObject;
import cn.reghao.tnb.common.auth.UserContext;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.time.LocalDateTime;

/**
 * @author reghao
 * @date 2023-08-19 02:33:11
 */
@NoArgsConstructor
@Getter
@Setter
public class ImagePost extends BaseObject<Integer> {
    private Long albumId;
    private String albumName;
    private Integer channelId;
    private String coverUrl;
    private Integer total;
    private LocalDateTime createdAt;
    private Integer scope;
    private Long userId;

    public ImagePost(long albumId, String albumName, int scope) {
        this.albumId = albumId;
        this.albumName = albumName;
        this.channelId = 105;
        this.coverUrl = "";
        this.total = 0;
        this.createdAt = LocalDateTime.now();
        this.scope = scope;
        this.userId = UserContext.getUser();
    }
}
