mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 05:31:44 +08:00
34 lines
892 B
Go
34 lines
892 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"`
|
|
Slug string `json:"slug"`
|
|
Channels []struct {
|
|
Slug string `json:"slug"`
|
|
Name string `json:"name"`
|
|
Panel string `json:"panel"`
|
|
Install string `json:"-"`
|
|
Uninstall string `json:"-"`
|
|
Update string `json:"-"`
|
|
Subs []struct {
|
|
Log string `json:"log"`
|
|
Version string `json:"version"`
|
|
} `json:"subs"`
|
|
} `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"`
|
|
}
|