repository

package
v0.0.0-...-fe160b4 Latest Latest
Warning

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

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

Documentation

Overview

repository/file_repository.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileRepository

type FileRepository interface {
	FindAll(ctx context.Context) ([]model.FileUpload, error)
	FindByID(ctx context.Context, id string) (*model.FileUpload, error)
	CreateFile(ctx context.Context, file *model.FileUpload) error
	UpdateFile(ctx context.Context, file *model.FileUpload) error
	DeleteFile(ctx context.Context, id string) error
}

func NewFileRepository

func NewFileRepository(db *gorm.DB) FileRepository

Jump to

Keyboard shortcuts

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