repo

package
v0.0.0-...-ff5c026 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SysFileRepo

type SysFileRepo struct {
	coreRpc.UnimplementedFileServiceServer
	// contains filtered or unexported fields
}

func NewSysFileRepo

func NewSysFileRepo(db *coredb.CoreDB, log logging.Logger) (*SysFileRepo, error)

func (*SysFileRepo) Download

func (*SysFileRepo) DownloadFile

func (s *SysFileRepo) DownloadFile(fileId, resourceId string) (*dao.File, error)

func (*SysFileRepo) Upload

func (*SysFileRepo) UploadFile

func (s *SysFileRepo) UploadFile(filepath string, content []byte) (*coreRpc.FileUploadResponse, error)

UploadFile for v2, Upload for v3

Jump to

Keyboard shortcuts

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