file

package
v0.0.0-...-26336ce Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(where map[string]interface{}) error

Types

type File

type File struct {
	gorm.Model
	HashID      string  `gorm:"unique"`
	Reference   *string `json:"-"`
	System      string  `json:"-"`
	Type        string
	Path        string `json:"-"`
	Name        string `json:"-"`
	ThirdPatyID string `json:"-"`
}

func (File) Add

func (f File) Add() (File, error)

func (*File) AfterCreate

func (f *File) AfterCreate(tx *gorm.DB) (err error)

func (File) Update

func (f File) Update() (File, error)

type Files

type Files []*File

func BatchUpdates

func BatchUpdates(where map[string]interface{}, updates map[string]interface{}) (Files, error)

func Get

func Get(where map[string]interface{}) (Files, error)

Jump to

Keyboard shortcuts

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