添加快传7天离线传

This commit is contained in:
yoyuzh
2026-03-24 09:12:10 +08:00
parent e004e64009
commit b9ab1a7640
32 changed files with 1927 additions and 81 deletions

View File

@@ -4,10 +4,16 @@ import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
public record TransferFileItem(
String id,
@NotBlank(message = "文件名不能为空")
String name,
String relativePath,
@Min(value = 0, message = "文件大小不能为负数")
long size,
String contentType
String contentType,
Boolean uploaded
) {
public TransferFileItem(String name, long size, String contentType) {
this(null, name, name, size, contentType, null);
}
}