2024-02-21 11:45:10 +07:00
|
|
|
package model
|
|
|
|
|
|
|
|
type CommonModel struct {
|
|
|
|
RuntimePath string
|
|
|
|
}
|
|
|
|
|
|
|
|
type APPModel struct {
|
2024-11-22 17:29:12 +07:00
|
|
|
LogPath string
|
|
|
|
LogSaveName string
|
|
|
|
LogFileExt string
|
|
|
|
UserDataPath string
|
|
|
|
DBPath string
|
2024-02-21 11:45:10 +07:00
|
|
|
}
|
|
|
|
|
2024-11-22 17:29:12 +07:00
|
|
|
type OIDCModel struct {
|
|
|
|
AuthServer string
|
|
|
|
ClientID string
|
|
|
|
ClientSecret string
|
|
|
|
AuthURL string
|
|
|
|
CallbackURL string
|
|
|
|
}
|
|
|
|
|
|
|
|
type NextWebModel struct {
|
|
|
|
Server string
|
|
|
|
UserName string
|
|
|
|
Password string
|
|
|
|
EntranceCode string
|
|
|
|
}
|
2024-11-23 12:02:07 +07:00
|
|
|
|
|
|
|
type DefaultModel struct {
|
|
|
|
Apps map[string]AppInfo
|
|
|
|
}
|
|
|
|
|
|
|
|
type AppInfo struct {
|
|
|
|
Hostname string `json:"hostname,omitempty"`
|
|
|
|
Name string `json:"name,omitempty"`
|
|
|
|
Icon string `json:"icon,omitempty"`
|
|
|
|
AppType string `json:"app_type,omitempty"`
|
|
|
|
Status string `json:"status,omitempty"`
|
|
|
|
}
|
2024-02-21 11:45:10 +07:00
|
|
|
type Result struct {
|
|
|
|
Success int `json:"success" example:"200"`
|
|
|
|
Message string `json:"message" example:"ok"`
|
2024-10-02 10:49:27 +07:00
|
|
|
Data interface{} `json:"data" example:"Return result"`
|
2024-02-21 11:45:10 +07:00
|
|
|
}
|