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 从领域模型转换
Click to show internal directories.
Click to hide internal directories.