file_strategys

package
v0.0.0-...-6fd7e0b Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefUpload

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

func NewDefUpload

func NewDefUpload(fic *biz.FileLibConfigUsecase, fi *biz.FileLibUsecase) *DefUpload

func (*DefUpload) ListAll

func (*DefUpload) Upload

func (u *DefUpload) Upload(ctx context.Context, file multipart.File, header *multipart.FileHeader, id uint64) (*biz.FileLibDO, error)

type QiNiuUpload

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

func NewQiNiuUpload

func NewQiNiuUpload(fic *biz.FileLibConfigUsecase) *QiNiuUpload

func (*QiNiuUpload) ListAll

func (*QiNiuUpload) Upload

func (u *QiNiuUpload) Upload(ctx context.Context, file multipart.File, header *multipart.FileHeader, id uint64) (*biz.FileLibDO, error)

type UploadOperator

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

func NewUploadOperator

func NewUploadOperator(id uint64, fic *biz.FileLibConfigUsecase, fi *biz.FileLibUsecase) *UploadOperator

func (*UploadOperator) ListAll

func (*UploadOperator) Upload

func (operator *UploadOperator) Upload(ctx context.Context, file multipart.File, header *multipart.FileHeader, id uint64) (*biz.FileLibDO, error)

调用策略中的方法

Jump to

Keyboard shortcuts

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