Documentation
¶
Index ¶
Constants ¶
View Source
const (
TableNamePrefix = "wpm_"
)
表名前缀
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Base ¶
type Base struct {
UUID dxo.UUID
Committer dxo.UserID
Creator dxo.UserID
Owner dxo.UserID
// ID uint `gorm:"primaryKey"`
CreatedAt time.Time
UpdatedAt time.Time
DeletedAt gorm.DeletedAt `gorm:"index"`
}
Base ...
type Executable ¶
type Executable struct {
ID dxo.ExecutableID `gorm:"primaryKey"`
Base
Name string
Title string
IconURL string
Description string
Path string
Size int64
SHA256SUM util.Hex
OpenWithPriority int // 如果 value<=0, 表示 disable
}
Executable ...
type IntentTemplate ¶
type IntentTemplate struct {
ID dxo.IntentTemplateID `gorm:"primaryKey"`
Base
Executable dxo.ExecutableID
}
IntentTemplate ...
type LocalRepository ¶
type LocalRepository struct {
ID dxo.LocalRepositoryID `gorm:"primaryKey"`
Base
LocalRepositoryBase
}
LocalRepository ...
type LocalRepositoryBase ¶
type LocalRepositoryBase struct {
Name string
DisplayName string
Description string
Path string
ConfigFile string
DotGitPath string
RepositoryPath string
WorkingPath string
}
LocalRepositoryBase ...
type Media ¶
type Media struct {
ID dxo.MediaID `gorm:"primaryKey"`
Base
Path string
SHA256SUM util.Hex
FileSize int64
ContentType string
}
Media ...
type Project ¶
type Project struct {
ID dxo.ProjectID `gorm:"primaryKey"`
Base
Name string
Path string
Description string
ProjectType string
OwnerRepository dxo.LocalRepositoryID
}
Project ...
type RemoteRepository ¶
type RemoteRepository struct {
ID dxo.RemoteRepositoryID `gorm:"primaryKey"`
Base
Name string
URL string
DisplayName string
}
RemoteRepository ...
type SystemConfig ¶
type User ¶
type User struct {
ID dxo.UserID
Base
Name dxo.UserName
Avatar string
Nickname string
Home string // the home dir path
}
User ...
type UserConfig ¶
Click to show internal directories.
Click to hide internal directories.