mirror of
https://github.com/KaySar12/NextZen-UserService.git
synced 2025-03-15 23:25:35 +07:00
46 lines
920 B
Go
46 lines
920 B
Go
package model
|
|
|
|
type CommonModel struct {
|
|
RuntimePath string
|
|
}
|
|
|
|
type APPModel struct {
|
|
LogPath string
|
|
LogSaveName string
|
|
LogFileExt string
|
|
UserDataPath string
|
|
DBPath string
|
|
}
|
|
|
|
type OIDCModel struct {
|
|
AuthServer string
|
|
ClientID string
|
|
ClientSecret string
|
|
AuthURL string
|
|
CallbackURL string
|
|
}
|
|
|
|
type NextWebModel struct {
|
|
Server string
|
|
UserName string
|
|
Password string
|
|
EntranceCode string
|
|
}
|
|
|
|
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"`
|
|
}
|
|
type Result struct {
|
|
Success int `json:"success" example:"200"`
|
|
Message string `json:"message" example:"ok"`
|
|
Data interface{} `json:"data" example:"Return result"`
|
|
}
|