Files
senmesh-zc/src/main/java/com/senmesh/sfile/dto/UserFileDTO.java
2026-01-06 16:37:39 +08:00

68 lines
1.6 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package com.senmesh.sfile.dto;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.senmesh.common.dto.BaseDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
/**
* 用户文件
*/
@ApiModel("用户文件")
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class UserFileDTO extends BaseDTO {
private static final long serialVersionUID = 1L;
@ApiModelProperty("用户id")
private Long userId;
@ApiModelProperty("根类型:1普通/2内穿外/3外传内/4我的分享")
private String rootType;
@ApiModelProperty("文件大类:1文件/2文件夹")
private String fileType;
@ApiModelProperty("文件名")
private String fileName;
@ApiModelProperty("父id")
private Long parentId;
@ApiModelProperty("文件编码")
private String fileCode;
@ApiModelProperty("文件大小")
private Long fileSize;
@ApiModelProperty("文件状态:1正常2失效11解析中12待审核13传输中14失败")
private String fileStatus;
@ApiModelProperty("路径")
private String path;
@ApiModelProperty("有效期")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date endTime;
@ApiModelProperty("访问码")
private String accessCode;
@ApiModelProperty("文件种类")
private String fileCategory;
}