manager

package
v5.3.3-pre68 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: AGPL-3.0 Imports: 66 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

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

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

	CropOptions = modelFile.ImageOptions
)
View Source
var TopNavigate = &navigate.List{
	{
		Display: true,
		Name:    `设置`,
		Action:  `manager`,
		Icon:    `gear`,
		Children: (&navigate.List{
			{
				Display: true,
				Name:    `系统设置`,
				Action:  `settings`,
			},

			{
				Display: true,
				Name:    `元数据`,
				Action:  `kv`,
			},
			{
				Display: false,
				Name:    `添加元数据`,
				Action:  `kv_add`,
			},
			{
				Display: false,
				Name:    `修改元数据`,
				Action:  `kv_edit`,
			},
			{
				Display: false,
				Name:    `删除元数据`,
				Action:  `kv_delete`,
			},

			{
				Display: true,
				Name:    `警报收信账号`,
				Action:  `alert_recipient`,
			},
			{
				Display: false,
				Name:    `添加警报收信账号`,
				Action:  `alert_recipient_add`,
			},
			{
				Display: false,
				Name:    `修改警报收信账号`,
				Action:  `alert_recipient_edit`,
			},
			{
				Display: false,
				Name:    `删除警报收信账号`,
				Action:  `alert_recipient_delete`,
			},

			{
				Display: false,
				Name:    `警报专题`,
				Action:  `alert_topic`,
			},
			{
				Display: false,
				Name:    `关联收信账号`,
				Action:  `alert_topic_add`,
			},
			{
				Display: false,
				Name:    `修改收信账号`,
				Action:  `alert_topic_edit`,
			},
			{
				Display: false,
				Name:    `取消关联收信账号`,
				Action:  `alert_topic_delete`,
			},
			{
				Display: false,
				Name:    `测试发送警报信息`,
				Action:  `alert_recipient_test`,
			},

			{
				Display: true,
				Name:    `用户管理`,
				Action:  `user`,
			},
			{
				Display: false,
				Name:    `添加用户`,
				Action:  `user_add`,
				Icon:    `plus`,
			},
			{
				Display: false,
				Name:    `修改用户`,
				Action:  `user_edit`,
			},
			{
				Display: false,
				Name:    `删除用户`,
				Action:  `user_delete`,
			},
			{
				Display: false,
				Name:    `踢下线`,
				Action:  `user_kick`,
			},

			{
				Display: true,
				Name:    `角色管理`,
				Action:  `role`,
			},
			{
				Display: false,
				Name:    `添加角色`,
				Action:  `role_add`,
				Icon:    `plus`,
			},
			{
				Display: false,
				Name:    `修改角色`,
				Action:  `role_edit`,
			},
			{
				Display: false,
				Name:    `删除角色`,
				Action:  `role_delete`,
			},
			{
				Display: true,
				Name:    `登录日志`,
				Action:  `login_log`,
			},
			{
				Display: false,
				Name:    `删除登录日志`,
				Action:  `login_log_delete`,
			},

			{
				Display: true,
				Name:    `邀请码`,
				Action:  `invitation`,
			},
			{
				Display: false,
				Name:    `添加邀请码`,
				Action:  `invitation_add`,
			},
			{
				Display: false,
				Name:    `修改邀请码`,
				Action:  `invitation_edit`,
			},
			{
				Display: false,
				Name:    `删除邀请码`,
				Action:  `invitation_delete`,
			},

			{
				Display: true,
				Name:    `验证码`,
				Action:  `verification`,
			},
			{
				Display: false,
				Name:    `删除验证码`,
				Action:  `verification_delete`,
			},
			{
				Display: false,
				Name:    `上传图片`,
				Action:  `upload`,
			},
			{
				Display: true,
				Name:    `本地附件`,
				Action:  `uploaded/file`,
			},
			{
				Display: false,
				Name:    `合并文件`,
				Action:  `uploaded/merged`,
			},
			{
				Display: false,
				Name:    `分片文件`,
				Action:  `uploaded/chunk`,
			},
			{
				Display: true,
				Name:    `清理缓存`,
				Action:  `clear_cache`,
				Target:  `ajax`,
			},
			{
				Display: true,
				Name:    `重载环境变量`,
				Action:  `reload_env`,
				Target:  `ajax`,
			},
			{
				Display: true,
				Name:    `后台oAuth应用`,
				Action:  `oauth_app/index`,
			},
			{
				Display: false,
				Name:    `添加后台oAuth应用`,
				Action:  `oauth_app/add`,
			},
			{
				Display: false,
				Name:    `修改后台oAuth应用`,
				Action:  `oauth_app/edit/:id`,
			},
			{
				Display: false,
				Name:    `删除后台oAuth应用`,
				Action:  `oauth_app/delete/:id`,
			},
			{
				Display: false,
				Name:    `程序升级`,
				Action:  `upgrade`,
			},
		}).Add(-1, file.TopNavigate...),
	},
	{
		Display:  true,
		Name:     `工具箱`,
		Action:   `tool`,
		Icon:     `suitcase`,
		Children: (&navigate.List{}).Add(-1, tool.TopNavigate...),
	},
}

TopNavigate 顶部导航菜单

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 AlertTopic

func AlertTopic(ctx echo.Context) error

func AlertTopicAdd

func AlertTopicAdd(ctx echo.Context) error

func AlertTopicDelete

func AlertTopicDelete(ctx echo.Context) error

func AlertTopicEdit

func AlertTopicEdit(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 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 KvAdd

func KvAdd(ctx echo.Context) error

func KvDelete

func KvDelete(ctx echo.Context) error

func KvEdit

func KvEdit(ctx echo.Context) error

func KvIndex

func KvIndex(ctx echo.Context) error

func LoginLog

func LoginLog(ctx echo.Context) error

func LoginLogDelete

func LoginLogDelete(ctx echo.Context) error

func Playable

func Playable(fileName string) (string, bool)

func ReloadEnv

func ReloadEnv(ctx echo.Context) error

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 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, readBeforeHooks ...uploadClient.ReadBeforeHook) error

UploadByOwner 上传文件

func Uploaded

func Uploaded(ctx echo.Context, uploadType string) error

Uploaded 本地附件文件管理

func UploadedChunk

func UploadedChunk(ctx echo.Context) error

func UploadedFile

func UploadedFile(ctx echo.Context) error

UploadedFile 本地附件文件管理

func UploadedMerged

func UploadedMerged(ctx echo.Context) error

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 UserKick

func UserKick(ctx echo.Context) error

UserKick 踢🦶用户下线

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