mirror of
https://github.com/IceWhaleTech/CasaOS.git
synced 2025-06-16 05:55:33 +00:00
Added CasaOS own file manager, now you can browse, upload, download files from the system, even edit code online, preview photos and videos through it. It will appear in the first position of Apps. Added CPU core count display and memory capacity display.
78 lines
1.4 KiB
Go
78 lines
1.4 KiB
Go
package model
|
|
|
|
import "time"
|
|
|
|
//系统配置
|
|
type SysInfoModel struct {
|
|
Name string //系统名称
|
|
}
|
|
|
|
//用户相关
|
|
type UserModel struct {
|
|
UserName string
|
|
PWD string
|
|
Token string
|
|
Head string
|
|
Email string
|
|
Description string
|
|
Initialized bool
|
|
}
|
|
|
|
//服务配置
|
|
type ServerModel struct {
|
|
HttpPort string
|
|
RunMode string
|
|
ServerApi string
|
|
LockAccount bool
|
|
Handshake string
|
|
Token string
|
|
}
|
|
|
|
//服务配置
|
|
type APPModel struct {
|
|
LogSavePath string
|
|
LogSaveName string
|
|
LogFileExt string
|
|
DateStrFormat string
|
|
DateTimeFormat string
|
|
TimeFormat string
|
|
DateFormat string
|
|
ProjectPath string
|
|
}
|
|
|
|
//公共返回模型
|
|
type Result struct {
|
|
Success int `json:"success" example:"200"`
|
|
Message string `json:"message" example:"ok"`
|
|
Data interface{} `json:"data" example:"返回结果"`
|
|
}
|
|
|
|
//zeritier相关
|
|
type ZeroTierModel struct {
|
|
UserName string
|
|
PWD string
|
|
Token string
|
|
}
|
|
|
|
//redis配置文件
|
|
type RedisModel struct {
|
|
Host string
|
|
Password string
|
|
MaxIdle int
|
|
MaxActive int
|
|
IdleTimeout time.Duration
|
|
}
|
|
|
|
type SystemConfig struct {
|
|
ConfigStr string `json:"config_str"`
|
|
WidgetList string `json:"widget_list"`
|
|
ConfigPath string `json:"config_path"`
|
|
SyncPort string `json:"sync_port"`
|
|
SyncKey string `json:"sync_key"`
|
|
Analyse string `json:"analyse"`
|
|
}
|
|
|
|
type CasaOSGlobalVariables struct {
|
|
AppChange bool
|
|
}
|