Documentation ¶
Index ¶
- type SysFileRepo
- func (s *SysFileRepo) Download(req *coreRpc.FileDownloadRequest, stream coreRpc.FileService_DownloadServer) error
- func (s *SysFileRepo) DownloadFile(fileId, resourceId string) (*dao.File, error)
- func (s *SysFileRepo) Upload(stream coreRpc.FileService_UploadServer) error
- func (s *SysFileRepo) UploadFile(filepath string, content []byte) (*coreRpc.FileUploadResponse, error)
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 (*SysFileRepo) Download ¶
func (s *SysFileRepo) Download(req *coreRpc.FileDownloadRequest, stream coreRpc.FileService_DownloadServer) error
func (*SysFileRepo) DownloadFile ¶
func (s *SysFileRepo) DownloadFile(fileId, resourceId string) (*dao.File, error)
func (*SysFileRepo) Upload ¶
func (s *SysFileRepo) Upload(stream coreRpc.FileService_UploadServer) error
func (*SysFileRepo) UploadFile ¶
func (s *SysFileRepo) UploadFile(filepath string, content []byte) (*coreRpc.FileUploadResponse, error)
UploadFile for v2, Upload for v3
Click to show internal directories.
Click to hide internal directories.