Documentation ¶
Index ¶
- func CommitTran(db *gorm.DB)
- func Connect(l *log.Logger) (*gorm.DB, error)
- func DeleteFile(fileid int64, db *gorm.DB, l *log.Logger) (string, error)
- func DeleteFiles(files []int64, db *gorm.DB, l *log.Logger) (string, error)
- func GetDupFilesByName(finfos models.Files, db *gorm.DB, l *log.Logger) (*models.Files, error)
- func GetFile(fileid int64, db *gorm.DB, l *log.Logger) (*models.File, error)
- func LogConfig(l *zl.Logger, lv gl.LogLevel) *gl.Interface
- func Rollback(db *gorm.DB)
- func SaveFiles(f *models.Files, db *gorm.DB, l *log.Logger) error
- func SearchFilesByPartName(s string, page int, pagesize int, db *gorm.DB, l *log.Logger) (*models.Files, error)
- func StartTran(l *log.Logger, db *gorm.DB) *gorm.DB
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommitTran ¶
func GetDupFilesByName ¶
func SearchFilesByPartName ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.