d4bed3e5c7
* fix bug * updata UI * 0.3.2 ### Added - [Files] Files can now be selected multiple files and downloaded, deleted, moved, etc. - [Apps] Support to modify the application opening address.([#204](https://github.com/IceWhaleTech/CasaOS/issues/204)) ### Changed - [Apps] Hide the display of non-essential environment variables in the application. - [System] Network, disk, cpu, memory, etc. information is modified to be pushed via socket. - [System] Optimize opening speed.([#214](https://github.com/IceWhaleTech/CasaOS/issues/214)) ### Fixed - [System] Fixed the problem that sync data cannot submit the device ID ([#68](https://github.com/IceWhaleTech/CasaOS/issues/68)) - [Files] Fixed the code editor center alignment display problem.([#210](https://github.com/IceWhaleTech/CasaOS/issues/210)) - [Files] Fixed the problem of wrong name when downloading files.([#240](https://github.com/IceWhaleTech/CasaOS/issues/240)) - [System] Fixed the network display as a negative number problem.([#224](https://github.com/IceWhaleTech/CasaOS/issues/224)) * Modify log help class * Fix some bugs in 0.3.2 * Solve the operation file queue problem * Exclude web folders * update UI
92 lines
1.9 KiB
Go
92 lines
1.9 KiB
Go
/*
|
|
* @Author: LinkLeong link@icewhale.com
|
|
* @Date: 2022-05-13 18:15:46
|
|
* @LastEditors: LinkLeong
|
|
* @LastEditTime: 2022-05-30 16:43:59
|
|
* @FilePath: /CasaOS/model/sys_common.go
|
|
* @Description:
|
|
* @Website: https://www.casaos.io
|
|
* Copyright (c) 2022 by icewhale, All Rights Reserved.
|
|
*/
|
|
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
|
|
Avatar string
|
|
NickName string
|
|
Public string
|
|
}
|
|
|
|
//服务配置
|
|
type ServerModel struct {
|
|
HttpPort string
|
|
RunMode string
|
|
ServerApi string
|
|
LockAccount bool
|
|
Handshake string
|
|
Token string
|
|
UDPPort string
|
|
USBAutoMount string
|
|
SocketPort string
|
|
}
|
|
|
|
//服务配置
|
|
type APPModel struct {
|
|
LogSavePath string
|
|
LogSaveName string
|
|
LogFileExt string
|
|
DateStrFormat string
|
|
DateTimeFormat string
|
|
TimeFormat string
|
|
DateFormat string
|
|
ProjectPath string
|
|
RootPath string
|
|
}
|
|
|
|
//公共返回模型
|
|
type Result struct {
|
|
Success int `json:"success" example:"200"`
|
|
Message string `json:"message" example:"ok"`
|
|
Data interface{} `json:"data" example:"返回结果"`
|
|
}
|
|
|
|
//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
|
|
}
|
|
|
|
type FileSetting struct {
|
|
ShareDir []string `json:"share_dir" delim:"|"`
|
|
DownloadDir string `json:"download_dir"`
|
|
}
|