mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 06:47:20 +08:00
29 lines
761 B
Go
29 lines
761 B
Go
package types
|
|
|
|
import "github.com/go-chi/chi/v5"
|
|
|
|
// App 应用接口
|
|
type App interface {
|
|
Route(r chi.Router)
|
|
}
|
|
|
|
// AppDetail 应用详情
|
|
type AppDetail struct {
|
|
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"`
|
|
}
|