file

package
v0.0.0-...-25930e8 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Del

func Del(ctx context.Context, src string) (err error)

Del 删除

func Save

func Save(ctx context.Context, src string, lib string) (info *model.FileInfo, err error)

Save 保存文件到正式库,如果src不是tmp库中的文件,则不做操作,原路返回

func SaveImg

func SaveImg(ctx context.Context, src string) (info *model.FileInfo, err error)

SaveImg 保存图片文件到img库

func Upload

func Upload(ctx context.Context, file *ghttp.UploadFile) (info *model.FileInfo, err error)

Upload 上传文件到临时库

Types

This section is empty.

Jump to

Keyboard shortcuts

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