2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-05 03:22:32 +08:00
Files
panel/pkg/types/plugin.go
2024-09-18 02:25:24 +08:00

19 lines
852 B
Go

package types
import "github.com/go-chi/chi/v5"
// Plugin 插件元数据结构
type Plugin struct {
Order int `json:"-"` // 排序
Slug string `json:"slug"` // 插件标识
Name string `json:"name"` // 插件名称
Description string `json:"description"` // 插件描述
Version string `json:"version"` // 插件版本
Requires []string `json:"requires"` // 依赖插件
Excludes []string `json:"excludes"` // 排除插件
Install string `json:"-"` // 安装命令
Uninstall string `json:"-"` // 卸载命令
Update string `json:"-"` // 更新命令
Route func(r chi.Router) `json:"-"` // 路由
}