response

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileListResponse

type FileListResponse struct {
	Total int64          `json:"total"`
	Items []FileResponse `json:"items"`
}

FileListResponse 文件列表响应

type FileResponse

type FileResponse struct {
	ID        uint64    `json:"id"`
	Name      string    `json:"name"`
	Path      string    `json:"path"`
	Size      uint64    `json:"size"`
	Ext       string    `json:"ext"`
	MimeType  string    `json:"mime_type"`
	CreatedAt time.Time `json:"created_at"`
}

FileResponse 文件响应

func (*FileResponse) FromDomainModel

func (f *FileResponse) FromDomainModel(file *model.File)

FromDomainModel 从领域模型转换

type InitMultipartUploadResponse

type InitMultipartUploadResponse struct {
	UploadId string `json:"upload_id"`
	Path     string `json:"path"`
}

type MultipartUploadStatusResponse

type MultipartUploadStatusResponse struct {
	Parts []Part `json:"parts"`
	Path  string `json:"path"`
}

type Part

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

func PartListFormDomainModel

func PartListFormDomainModel(parts []model.Part) []Part

type PartList

type PartList []Part

Jump to

Keyboard shortcuts

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