package cn.reghao.oss.store.model.po;

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

/**
 * @author reghao
 * @date 2022-11-24 10:25:18
 */
@NoArgsConstructor
@Setter
@Getter
public class DataBlock extends BaseObject<Integer> {
    private String contentId;
    private String blockId;
    private String host;
    private String absolutePath;
    private long size;
    //private String baseDir;
    //private String relativeDir;
    //private int index;
    //private long start;
    //private long end;
    //private String objectId;

    public DataBlock(String contentId, String blockId, String host, String absolutePath, long size) {
        this.contentId = contentId;
        this.blockId = blockId;
        this.host = host;
        this.absolutePath = absolutePath;
        this.size = size;
    }
}
