models

package
v0.0.0-...-33c5ed1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: GPL-3.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 FileObject

type FileObject struct {
	ID          string `json:"id" gorm:"size:50"`
	StorageTyp  string `json:"storage_typ" gorm:"size:50"` // 存储介质
	IsDir       bool   `json:"is_dir"`                     // 是否为目录
	FileTyp     string `json:"file_typ" gorm:"size:50"`    // 文件类型  暂时不用
	ParentID    string `json:"parent_id" gorm:"size:50"`   // 上级id
	Name        string `json:"name" gorm:"size:255"`       // 文件[夹]名称(显示名称)
	Description string `json:"description" db:"size:500"`  // 文件[夹]描述
	ObjName     string `json:"obj_name" gorm:"size:255"`   // 上传时使用的objName
	Link        string `json:"link" gorm:"size:500"`       // 文件地址
	LinkThumb   string `json:"link_thumb" gorm:"size:500"` // 缩略图
	CreatorID   string `json:"creator_id" gorm:"size:50"`  // 提交人
	CreatedAt   int64  `json:"created_at"`                 // 添加时间
}

func (*FileObject) TableName

func (*FileObject) TableName() string

Jump to

Keyboard shortcuts

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