15 Star 91 Fork 0

IceWhale Team/CasaOS

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
sys_common.go 1.54 KB
一键复制 编辑 原始数据 按行查看 历史
Li 提交于 2022-12-22 11:53 +08:00 . remove socket-port function
/*
* @Author: LinkLeong link@icewhale.com
* @Date: 2022-05-13 18:15:46
* @LastEditors: LinkLeong
* @LastEditTime: 2022-09-02 22:12:34
* @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 ServerModel struct {
HttpPort string
RunMode string
ServerApi string
LockAccount bool
Token string
USBAutoMount string
UpdateUrl string
}
// 服务配置
type APPModel struct {
LogPath string
LogSaveName string
LogFileExt string
DateStrFormat string
DateTimeFormat string
UserDataPath string
TimeFormat string
DateFormat string
DBPath string
ShellPath string
}
type CommonModel struct {
RuntimePath 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 {
ConfigPath string `json:"config_path"`
}
type FileSetting struct {
ShareDir []string `json:"share_dir" delim:"|"`
DownloadDir string `json:"download_dir"`
}
type BaseInfo struct {
Hash string `json:"i"`
Version string `json:"v"`
Channel string `json:"c,omitempty"`
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/icewhale-team/CasaOS.git
git@gitee.com:icewhale-team/CasaOS.git
icewhale-team
CasaOS
CasaOS
main

搜索帮助