mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 09:13:49 +08:00
21 lines
563 B
Go
21 lines
563 B
Go
package types
|
|
|
|
import "github.com/go-chi/chi/v5"
|
|
|
|
// App 应用元数据结构
|
|
type App struct {
|
|
Slug string `json:"slug"` // 插件标识
|
|
Route func(r chi.Router) `json:"-"` // 路由
|
|
}
|
|
|
|
// StoreApp 商店应用结构
|
|
type StoreApp struct {
|
|
Name string `json:"name"`
|
|
Description string `json:"description"`
|
|
Slug string `json:"slug"`
|
|
Version string `json:"version"`
|
|
Installed bool `json:"installed"`
|
|
InstalledVersion string `json:"installed_version"`
|
|
Show bool `json:"show"`
|
|
}
|