projectfile

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindUserUploadToProject

func BindUserUploadToProject(ctx context.Context, db *gorm.DB, params BindUserUploadParams) (*types.ProjectFile, error)

BindUserUploadToProject creates a ProjectFile record for one upload.

func BindUserUploadsToProject

func BindUserUploadsToProject(ctx context.Context, db *gorm.DB, params []BindUserUploadParams) ([]*types.ProjectFile, error)

BindUserUploadsToProject creates ProjectFile records for multiple uploads in a batch. The caller is responsible for wrapping the call in a transaction if atomicity is required.

func NormalizeFolderRelativePath

func NormalizeFolderRelativePath(relativePath string) (string, error)

NormalizeFolderRelativePath canonicalizes one folder path with a trailing slash.

Types

type BindUserUploadParams

type BindUserUploadParams struct {
	OrgID        uint
	ProjectID    uint
	TaskID       *uint
	TaskPublicID string
	Uin          uint
	FileUpload   *types.FileUpload
	DisplayName  string
	RelativePath string
}

BindUserUploadParams links one uploaded file into a project.

Jump to

Keyboard shortcuts

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