2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 06:47:20 +08:00
Files
panel/pkg/types/app.go

30 lines
803 B
Go

package types
import "github.com/go-chi/chi/v5"
// App 应用接口
type App interface {
Route(r chi.Router)
}
// AppCenter 应用中心结构
type AppCenter struct {
Icon string `json:"icon"`
Name string `json:"name"`
Description string `json:"description"`
Categories []string `json:"categories"`
Slug string `json:"slug"`
Channels []struct {
Slug string `json:"slug"`
Name string `json:"name"`
Panel string `json:"panel"`
Version string `json:"version"`
Log string `json:"log"`
} `json:"channels"`
Installed bool `json:"installed"`
InstalledChannel string `json:"installed_channel"`
InstalledVersion string `json:"installed_version"`
UpdateExist bool `json:"update_exist"`
Show bool `json:"show"`
}