package cn.reghao.tnb.sb.multi.mybatis.model.two;

import cn.reghao.jutil.jdk.web.db.BaseObject;
import lombok.Getter;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @author reghao
 * @date 2024-10-31 13:57:28
 */
@NoArgsConstructor
@Getter
public class PostItem extends BaseObject<Integer> {
    private Long albumId;
    private String postId;
    private Integer pos;
    private LocalDateTime addedAt;

    public PostItem(long albumId, String postId) {
        this.albumId = albumId;
        this.postId = postId;
        this.pos = 1;
        this.addedAt = LocalDateTime.now();
    }
}
