manager

package
v2.2.1+incompatible Latest Latest
Warning

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

Go to latest
Published: May 13, 2020 License: AGPL-3.0 Imports: 47 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	File                = file.File
	GetWatermarkOptions = storer.GetWatermarkOptions
)

Functions

func AlertRecipient

func AlertRecipient(ctx echo.Context) error

func AlertRecipientAdd

func AlertRecipientAdd(ctx echo.Context) error

func AlertRecipientDelete

func AlertRecipientDelete(ctx echo.Context) error

func AlertRecipientEdit

func AlertRecipientEdit(ctx echo.Context) error

func AlertRecipientTest

func AlertRecipientTest(ctx echo.Context) error

func ClearCache

func ClearCache(ctx echo.Context) error

func Crop

func Crop(ctx echo.Context) error

Crop 图片裁剪

func CropByOwner

func CropByOwner(ctx echo.Context, ownerType string, ownerID uint64) error

CropByOwner 图片裁剪

func CropPermCheckerAdd

func CropPermCheckerAdd(checker func(ctx echo.Context, f *modelFile.File) error)

CropPermCheckerAdd 添加裁剪权限检查逻辑

func Editable

func Editable(fileName string) (string, bool)

func Invitation

func Invitation(ctx echo.Context) error

func InvitationAdd

func InvitationAdd(ctx echo.Context) error

func InvitationDelete

func InvitationDelete(ctx echo.Context) error

func InvitationEdit

func InvitationEdit(ctx echo.Context) error

func Playable

func Playable(fileName string) (string, bool)

func ResponseDataForUpload

func ResponseDataForUpload(ctx echo.Context, field string, err error, imageURLs []string) (result echo.H, embed bool)

ResponseDataForUpload 根据不同的上传方式响应不同的数据格式

func Role

func Role(ctx echo.Context) error

func RoleAdd

func RoleAdd(ctx echo.Context) error

func RoleDelete

func RoleDelete(ctx echo.Context) error

func RoleEdit

func RoleEdit(ctx echo.Context) error

func SaveFilename

func SaveFilename(subdir, name, postFilename string) (string, error)

SaveFilename SaveFilename(`0/`,“,`img.jpg`)

func Settings

func Settings(ctx echo.Context) error

func StorerEngine

func StorerEngine() storer.Info

func Upload

func Upload(ctx echo.Context) error

Upload 上传文件

func UploadByOwner

func UploadByOwner(ctx echo.Context, ownerType string, ownerID uint64) error

UploadByOwner 上传文件

func UploadedFile

func UploadedFile(ctx echo.Context) error

UploadedFile 本地附件文件管理

func User

func User(ctx echo.Context) error

func UserAdd

func UserAdd(ctx echo.Context) error

func UserDelete

func UserDelete(ctx echo.Context) error

func UserEdit

func UserEdit(ctx echo.Context) error

func Verification

func Verification(ctx echo.Context) error

func VerificationDelete

func VerificationDelete(ctx echo.Context) error

Types

This section is empty.

Directories

Path Synopsis
Package file 上传文件管理
Package file 上传文件管理

Jump to

Keyboard shortcuts

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