Documentation
¶
Overview ¶
* @Author: LinkLeong link@icewhale.org * @Date: 2022-07-26 17:17:57 * @LastEditors: LinkLeong * @LastEditTime: 2022-08-01 17:08:08 * @FilePath: /CasaOS/service/model/o_connections.go * @Description: * @Website: https://www.casaos.io * Copyright (c) 2022 by icewhale, All Rights Reserved.
* @Author: LinkLeong link@icewhale.org * @Date: 2022-07-26 11:17:17 * @LastEditors: LinkLeong * @LastEditTime: 2022-07-27 15:25:07 * @FilePath: /CasaOS/service/model/o_shares.go * @Description: * @Website: https://www.casaos.io * Copyright (c) 2022 by icewhale, All Rights Reserved.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppNotify ¶
type AppNotify struct {
State int `json:"state"` //0:一直在变动的未读消息 1:未读 2:已读
Message string `json:"message"`
CreatedAt string `json:"created_at"`
UpdatedAt string `json:"updated_at"`
Id string `json:"id"`
Type int `json:"type"`
Icon string `json:"icon"`
Name string `json:"name"`
Class int `json:"class"`
CustomId string `gorm:"column:custom_id;primary_key" json:"custom_id"`
}
type ConnectionsDBModel ¶
type ConnectionsDBModel struct {
ID uint `gorm:"column:id;primary_key" json:"id"`
Updated int64 `gorm:"autoUpdateTime"`
Created int64 `gorm:"autoCreateTime"`
Username string `json:"username"`
Password string `json:"password"`
Host string `json:"host"`
Port string `json:"port"`
Status string `json:"status"`
Directories string `json:"directories"` // string array
MountPoint string `json:"mount_point"` //parent directory of mount point
}
func (*ConnectionsDBModel) TableName ¶
func (p *ConnectionsDBModel) TableName() string
type PeerDriveDBModel ¶
type PeerDriveDBModel struct {
ID string `gorm:"column:id;primary_key" json:"id"`
Updated int64 `gorm:"autoUpdateTime"`
Created int64 `gorm:"autoCreateTime"`
UserAgent string `json:"user_agent"`
DisplayName string `json:"display_name"`
DeviceName string `json:"device_name"`
Model string `json:"model"`
IP string `json:"ip"`
OS string `json:"os"`
Browser string `json:"browser"`
Online bool `gorm:"-" json:"online"`
}
type RelyDBModel ¶
type RelyDBModel struct {
Id uint `gorm:"column:id;primary_key" json:"id"`
CustomId string ` json:"custom_id"`
ContainerCustomId string `json:"container_custom_id"`
ContainerId string `json:"container_id,omitempty"`
Type int `json:"type"` // 目前暂未使用
CreatedAt time.Time `gorm:"<-:create" json:"created_at"`
UpdatedAt time.Time `gorm:"<-:create;<-:update" json:"updated_at"`
}
func (RelyDBModel) TableName ¶
func (p RelyDBModel) TableName() string
type SharesDBModel ¶
type SharesDBModel struct {
}
func (*SharesDBModel) TableName ¶
func (p *SharesDBModel) TableName() string
Click to show internal directories.
Click to hide internal directories.