model

package
v1.3.0-rc.0...-d217119 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Common

type Common struct {
	OrgID     uint32 `gorm:"org_id"`
	OrgName   string `gorm:"org_name"`
	CreatorID string `gorm:"creator_id"`
	UpdaterID string `gorm:"updater_id"`
}

type Model

type Model struct {
	ID        fields.UUID      `gorm:"id"`
	CreatedAt time.Time        `gorm:"created_at"`
	UpdatedAt time.Time        `gorm:"updated_at"`
	DeletedAt fields.DeletedAt `gorm:"deleted_at"`
}

type Opus

type Opus struct {
	Model
	Common

	Level            string `gorm:"level"`
	Type             string `gorm:"type"`
	Name             string `gorm:"name"`
	DisplayName      string `gorm:"display_name"`
	DisplayNameI18n  string `gorm:"display_name_i18n"`
	Summary          string `gorm:"summary"`
	SummaryI18n      string `gorm:"summary_i18n"`
	LogoURL          string `gorm:"logo_url"`
	Catalog          string `gorm:"catalog"`
	DefaultVersionID string `gorm:"default_version_id"`
	LatestVersionID  string `gorm:"latest_version_id"`
}

Opus is the model `erda_gallery_opus`

func (Opus) TableName

func (Opus) TableName() string

type OpusExtra

type OpusExtra struct {
	Model
	Common

	OpusID    string `gorm:"opus_id"`
	VersionID string `gorm:"version_id"`

	Extra string `gorm:"extra"`
}

func (OpusExtra) TableName

func (OpusExtra) TableName() string

type OpusInstallation

type OpusInstallation struct {
	Model
	Common

	OpusID    string `gorm:"opus_id"`
	VersionID string `gorm:"version_id"`

	Installer string `gorm:"installer"`
	Spec      string `gorm:"spec"`
}

func (OpusInstallation) TableName

func (OpusInstallation) TableName() string

type OpusPresentation

type OpusPresentation struct {
	Model
	Common

	OpusID    string `gorm:"opus_id"`
	VersionID string `gorm:"version_id"`

	Ref             string `gorm:"ref"`
	Desc            string `gorm:"desc"`
	DescI18n        string `gorm:"desc_i18n"`
	ContactName     string `gorm:"contact_name"`
	ContactURL      string `gorm:"contact_url"`
	ContactEmail    string `gorm:"contact_email"`
	IsOpenSourced   bool   `gorm:"is_open_sourced"`
	OpensourceURL   string `gorm:"opensource_url"`
	LicenseName     string `gorm:"license_name"`
	LicenseURL      string `gorm:"license_url"`
	HomepageName    string `gorm:"homepage_name"`
	HomepageURL     string `gorm:"homepage_url"`
	HomepageLogoURL string `gorm:"homepage_logo_url"`
	IsDownloadable  bool   `gorm:"is_downloadable"`
	DownloadURL     string `gorm:"download_url"`
	Parameters      string `gorm:"parameters"`
	Forms           string `gorm:"forms"`
	I18n            string `gorm:"i18n"`
}

func (OpusPresentation) TableName

func (OpusPresentation) TableName() string

type OpusReadme

type OpusReadme struct {
	Model
	Common

	OpusID    string `gorm:"opus_id"`
	VersionID string `gorm:"version_id"`

	Lang     string `gorm:"lang"`
	LangName string `gorm:"lang_name"`
	Text     string `gorm:"text"`
}

func (OpusReadme) TableName

func (OpusReadme) TableName() string

type OpusVersion

type OpusVersion struct {
	Model
	Common

	OpusID        string `gorm:"opus_id"`
	Name          string `gorm:"name"`
	Version       string `gorm:"version"`
	Summary       string `gorm:"summary"`
	SummaryI18n   string `gorm:"summary_i18n"`
	Labels        string `gorm:"labels"`
	LogoURL       string `gorm:"logo_url"`
	CheckValidURL string `gorm:"check_valid_url"`
	IsValid       bool   `gorm:"is_valid"`
}

func (OpusVersion) TableName

func (OpusVersion) TableName() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL