list

package
v2.2.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2020 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FileList = func(list []*dbschema.NgingFile) interface{} {
	listData := make([]*FileInfo, len(list))
	for k, v := range list {
		listData[k] = &FileInfo{
			NgingFile:  v,
			SubdirInfo: upload.SubdirGetByTable(v.TableName),
		}
	}
	return listData
}

Functions

This section is empty.

Types

type FileInfo

type FileInfo struct {
	*dbschema.NgingFile
	SubdirInfo *upload.SubdirInfo `db:"-"`
}

Jump to

Keyboard shortcuts

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