package com.bocloud.cmp.model;

import java.util.Date;
import java.util.List;

import com.bocloud.common.utils.DateSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 对象存储元素实体类
 * 
 * @author hufy
 *
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ObjectStorageItemBean {

	private Long id;
	private String name;
	private Long size; // 大小
	private Integer isDirectory; // 0 不是目录 1 是目录
	private String contentType; // 内容类型
	@JsonSerialize(using = DateSerializer.class)
	private Date updateTime; // 更新时间
	private String hash; // hash值
	private Long containerId; // 容器的id
	private String uploadUrl; // 用户上传的路径
	private String directoryName; // 所在目录名称
	private String containerName; // 容器名称
	private Long vendorId;
	private String origFilename;
	private List<ObjectStorageItemBean> children;
}
