mirror of
https://github.com/keven1024/015.git
synced 2026-05-26 07:08:02 +00:00
29 lines
561 B
Go
29 lines
561 B
Go
package models
|
|
|
|
type FileInfo struct {
|
|
FileSize int64 `json:"size"`
|
|
MimeType string `json:"mime_type"`
|
|
FileHash string `json:"hash"`
|
|
}
|
|
|
|
type FileType string
|
|
|
|
const (
|
|
FileTypeInit FileType = "init"
|
|
FileTypeUpload FileType = "already"
|
|
)
|
|
|
|
type RedisFileInfo struct {
|
|
FileInfo
|
|
FileType FileType `json:"type"`
|
|
CreatedAt int64 `json:"created_at"`
|
|
Expire int64 `json:"expire"`
|
|
}
|
|
|
|
type RedisShareInfo struct {
|
|
Id string `json:"id"`
|
|
Owner string `json:"owner"`
|
|
FileId string `json:"fileId"`
|
|
CreatedAt int64 `json:"created_at"`
|
|
}
|