Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collection ¶
type Collection struct {
ID uint `gorm:"primarykey" json:"-"`
CreatedAt time.Time `json:"createdAt"`
UUID string `gorm:"index" json:"uuid"`
Name string `json:"name"`
Description string `json:"description"`
UserID uint `json:"userId"`
CID string `json:"cid"`
}
func GetCollection ¶
type CollectionRef ¶
type CollectionRef struct {
ID uint `gorm:"primaryKey"`
CreatedAt time.Time
Collection uint `gorm:"index:,option:CONCURRENTLY; not null"`
Content uint `gorm:"index:,option:CONCURRENTLY;not null"`
Path *string `gorm:"not null"`
}
func GetContentsInPath ¶
func GetContentsInPath(coluuid string, path string, db *gorm.DB, u *util.User) ([]CollectionRef, error)
refs = collections.GetContentsInPath(path, s.DB, u)
Click to show internal directories.
Click to hide internal directories.