model

package
v0.0.0-...-877b449 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *gorm.DB

Functions

func AddDict

func AddDict(req *service.FileRequest) (int, error)

func AddFile

func AddFile(req *service.FileRequest) (int, error)

func Count

func Count(req *service.FileRequest) (int, error)

func CreateNewRoot

func CreateNewRoot() (int, error)

func Database

func Database(conn string)

func DeleteFile

func DeleteFile(id int) error

func GetAll

func GetAll(req *service.FileRequest) ([]*service.FileDetails, error)

func GetFile

func GetFile(id int) (string, error)

func GetParentId

func GetParentId(req *service.FileRequest) (int, error)

func RabbitMQ

func RabbitMQ(str string)

func Setup

func Setup()

Types

type FileSystem

type FileSystem struct {
	Id           int `json:"id"`
	UserId       int
	ParentDictId int
	FileName     string
	EncryptedKey string
	Ctime        time.Time
	Mtime        time.Time
	Atime        time.Time
	FileType     string
	FileSize     int
}

Jump to

Keyboard shortcuts

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