Documentation ¶
Index ¶
- Variables
- func ClearCache(ctx echo.Context) error
- func Crop(ctx echo.Context) error
- func CropByOwner(ctx echo.Context, ownerType string, ownerID uint64) error
- func CropPermCheckerAdd(checker func(ctx echo.Context, f *modelFile.File) error)
- func Editable(fileName string) (string, bool)
- func File(ctx echo.Context) error
- func Invitation(ctx echo.Context) error
- func InvitationAdd(ctx echo.Context) error
- func InvitationDelete(ctx echo.Context) error
- func InvitationEdit(ctx echo.Context) error
- func Playable(fileName string) (string, bool)
- func ResponseDataForUpload(ctx echo.Context, field string, err error, imageURLs []string) (result echo.H, embed bool)
- func Role(ctx echo.Context) error
- func RoleAdd(ctx echo.Context) error
- func RoleDelete(ctx echo.Context) error
- func RoleEdit(ctx echo.Context) error
- func SaveFilename(subdir, name, postFilename string) (string, error)
- func SetWatermark(markfile string)
- func Settings(ctx echo.Context) error
- func Upload(ctx echo.Context) error
- func UploadByOwner(ctx echo.Context, ownerType string, ownerID uint64) error
- func UploadedFile(ctx echo.Context) error
- func User(ctx echo.Context) error
- func UserAdd(ctx echo.Context) error
- func UserDelete(ctx echo.Context) error
- func UserEdit(ctx echo.Context) error
- func Verification(ctx echo.Context) error
- func VerificationDelete(ctx echo.Context) error
- func WatermarkFile() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( StorerEngine = filesystem.Name DefaultChecker = func(r *uploadClient.Result) error { return nil } )
Functions ¶
func ClearCache ¶
func CropByOwner ¶
CropByOwner 图片裁剪
func CropPermCheckerAdd ¶
CropPermCheckerAdd 添加裁剪权限检查逻辑
func Invitation ¶
func InvitationAdd ¶
func InvitationDelete ¶
func InvitationEdit ¶
func ResponseDataForUpload ¶
func ResponseDataForUpload(ctx echo.Context, field string, err error, imageURLs []string) (result echo.H, embed bool)
ResponseDataForUpload 根据不同的上传方式响应不同的数据格式
func RoleDelete ¶
func SaveFilename ¶
SaveFilename SaveFilename(`0/`,“,`img.jpg`)
func SetWatermark ¶
func SetWatermark(markfile string)
func UploadByOwner ¶
UploadByOwner 上传文件
func UserDelete ¶
func Verification ¶
func VerificationDelete ¶
func WatermarkFile ¶
func WatermarkFile() string
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.