Documentation ¶
Index ¶
- func Begin(ctx context.Context) *gorm.DB
- func End(ctx context.Context, tx *gorm.DB, err error)
- func GetFileTable(ctx context.Context, db *gorm.DB) *gorm.DB
- func GetFileTagTable(ctx context.Context, db *gorm.DB) *gorm.DB
- func GetTagsTable(ctx context.Context, db *gorm.DB) *gorm.DB
- func Init()
- type File
- type FileTag
- type Model
- type Tags
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type File ¶
type File struct { Model Name string // 文件名 Path string // 文件真实路径 IsDir bool // 是否是目录 ParentID string // 父 ID }
File 文件相关的定义
type FileTag ¶
type FileTag struct { Model FileID string `gorm:"idx_file_tags"` TagsID string `gorm:"idx_file_tags"` }
FileTag file tag
Click to show internal directories.
Click to hide internal directories.