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
Click to show internal directories.
Click to hide internal directories.