package
Version:
v1.3.0
Opens a new window with list of versions in this module.
Published: Dec 10, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type APIResponse struct {
Success bool `json:"success"`
Data interface{} `json:"data,omitempty"`
Error string `json:"error,omitempty"`
}
APIResponse 定义统一的API响应格式
type FileInfo struct {
Name string `json:"name"`
Size int64 `json:"size"`
ModTime time.Time `json:"modTime"`
IsDir bool `json:"isDir"`
FileCount int `json:"fileCount"`
}
文件信息结构体
type UploadResponse struct {
OriginalName string `json:"originalName"`
SavedName string `json:"savedName"`
Size int64 `json:"size"`
Success bool `json:"success"`
}
上传响应结构体
Source Files
¶
Click to show internal directories.
Click to hide internal directories.