mirror of
https://github.com/IceWhaleTech/CasaOS.git
synced 2025-08-25 06:40:51 +00:00
* 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
80 lines
2.9 KiB
Go
80 lines
2.9 KiB
Go
/*
|
|
* @Author: LinkLeong link@icewhale.com
|
|
* @Date: 2022-05-13 18:15:46
|
|
* @LastEditors: LinkLeong
|
|
* @LastEditTime: 2022-05-30 17:33:21
|
|
* @FilePath: /CasaOS/service/model/o_container.go
|
|
* @Description:
|
|
* @Website: https://www.casaos.io
|
|
* Copyright (c) 2022 by icewhale, All Rights Reserved.
|
|
*/
|
|
package model
|
|
|
|
const CONTAINERTABLENAME = "o_container"
|
|
|
|
//Soon to be removed
|
|
type AppListDBModel struct {
|
|
CustomId string `gorm:"column:custom_id;primary_key" json:"custom_id"`
|
|
Title string `json:"title"`
|
|
// ScreenshotLink model.Strings `gorm:"type:json" json:"screenshot_link,omitempty"`
|
|
ScreenshotLink string `json:"screenshot_link"`
|
|
Slogan string `json:"slogan"`
|
|
Description string `json:"description"`
|
|
//Tags model.Strings `gorm:"type:json" json:"tags"`
|
|
Tags string `json:"tags"`
|
|
Icon string `json:"icon"`
|
|
Version string `json:"version"`
|
|
ContainerId string `json:"container_id,omitempty"`
|
|
Image string `json:"image,omitempty"`
|
|
Index string `json:"index"`
|
|
CreatedAt string `gorm:"<-:create;autoCreateTime" json:"created_at"`
|
|
UpdatedAt string `gorm:"<-:create;<-:update;autoUpdateTime" json:"updated_at"`
|
|
//Port string `json:"port,omitempty"`
|
|
PortMap string `json:"port_map"`
|
|
Label string `json:"label"`
|
|
EnableUPNP bool `json:"enable_upnp"`
|
|
Envs string `json:"envs"`
|
|
Ports string `json:"ports"`
|
|
Volumes string `json:"volumes"`
|
|
Devices string `json:"devices"`
|
|
//Envs []model.Env `json:"envs"`
|
|
//Ports []model.PortMap `gorm:"type:json" json:"ports"`
|
|
//Volumes []model.PathMap `gorm:"type:json" json:"volumes"`
|
|
//Devices []model.PathMap `gorm:"type:json" json:"device"`
|
|
Position bool `json:"position"`
|
|
NetModel string `json:"net_model"`
|
|
CpuShares int64 `json:"cpu_shares"`
|
|
Memory int64 `json:"memory"`
|
|
Restart string `json:"restart"`
|
|
//Rely model.MapStrings `gorm:"type:json" json:"rely"` //[{"mysql":"id"},{"mysql":"id"}]
|
|
Origin string `json:"origin"`
|
|
HostName string `json:"host_name"`
|
|
Privileged bool `json:"privileged"`
|
|
CapAdd string `json:"cap_add"`
|
|
Cmd string `gorm:"type:json" json:"cmd"`
|
|
}
|
|
|
|
func (p *AppListDBModel) TableName() string {
|
|
return "o_container"
|
|
}
|
|
|
|
type MyAppList struct {
|
|
Id string `json:"id"`
|
|
Name string `json:"name"`
|
|
Icon string `json:"icon"`
|
|
State string `json:"state"`
|
|
CustomId string `gorm:"column:custom_id;primary_key" json:"custom_id"`
|
|
Index string `json:"index"`
|
|
//Order string `json:"order"`
|
|
Port string `json:"port"`
|
|
UpTime string `json:"up_time"`
|
|
Slogan string `json:"slogan"`
|
|
Type string `json:"type"`
|
|
//Rely model.MapStrings `json:"rely"` //[{"mysql":"id"},{"mysql":"id"}]
|
|
Image string `json:"image"`
|
|
Volumes string `json:"volumes"`
|
|
NewVersion bool `json:"new_version"`
|
|
Host string `json:"host"`
|
|
Protocol string `json:"protocol"`
|
|
}
|