models

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	Name         string `json:"name"`         // 文件名
	IsDirectory  bool   `json:"isDirectory"`  // 是否是文件夹
	Size         int    `json:"size"`         // 大小
	Extension    string `json:"extension"`    // 扩展名
	Mime         string `json:"mime"`         // 媒体类型
	Path         string `json:"path"`         // 相对路径(相对于storagePath)
	LastModified int64  `json:"lastModified"` // 最后修改时间 Unix Timestamp seconds
	Content      string `json:"content"`      //只有文件有内容显示
}

type Files

type Files []File

Jump to

Keyboard shortcuts

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