file

package
v1.0.44 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileService

type FileService struct {
	// contains filtered or unexported fields
}

func NewFileService

func NewFileService(ctx *context.ERPContext, baseURL string) *FileService

func (*FileService) DeleteFile

func (s *FileService) DeleteFile(id string) error

func (*FileService) GetFileByID

func (s *FileService) GetFileByID(id string) (*models.FileModel, error)

func (*FileService) UpdateFileByID

func (s *FileService) UpdateFileByID(id string, file *models.FileModel) error

func (*FileService) UpdateFileRefByID

func (s *FileService) UpdateFileRefByID(id string, refID, refType string) error

func (*FileService) UploadFile

func (s *FileService) UploadFile(file []byte, provider, folder string, fileObj *models.FileModel) error

func (*FileService) UploadFileFromBase64

func (s *FileService) UploadFileFromBase64(base64String, provider, folder string, fileObj *models.FileModel) error

Jump to

Keyboard shortcuts

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