file

package
v0.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 1, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompleteMultipartUploadReq

type CompleteMultipartUploadReq struct {
	UploadID string `json:"upload_id" binding:"required" msg:"缺少上传ID"`
	Parts    []Part `json:"parts" binding:"required" msg:"缺少分片信息"`
}

CompleteMultipartUploadReq 完成分片上传请求

type InitMultipartUploadReq

type InitMultipartUploadReq struct {
	Filename string `json:"filename" form:"filename" binding:"required" msg:"请选择上传文件"`
	FileSize int64  `json:"file_size" form:"file_size" binding:"required" msg:"缺少文件大小"`
}

InitMultipartUploadReq 初始化分片上传请求体

type MultipartUploadStatusReq

type MultipartUploadStatusReq struct {
	UploadID string `json:"upload_id" binding:"required" msg:"缺少上传ID"`
}

MultipartUploadStatusReq 查询分片上传状态请求体

type Part

type Part struct {
	PartNumber int    `json:"part_number"`
	ETag       string `json:"etag"`
	Size       int64  `json:"size"`
}

Part 文件分片

type PartList

type PartList []Part

PartList 文件分片列表

func (PartList) ToAppDTO

func (parts PartList) ToAppDTO() []command.Part

ToAppDTO 将request dto 转换为 应用层 dto

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL