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 APIAssetVersion

type APIAssetVersion struct {
	ID             uint64 `gorm:"id"`
	OrgID          uint64 `gorm:"org_id"`
	AssetID        string `gorm:"asset_id"`
	Major          uint32 `gorm:"major"`
	Minor          uint32 `gorm:"minor"`
	Patch          uint32 `gorm:"patch"`
	Desc           string `gorm:"desc"`
	SpecProtocol   string `gorm:"specProtocol"`
	CreatorID      string `gorm:"creator_id"`
	UpdaterID      string `gorm:"updater_id"`
	CreatedAt      string `gorm:"created_at"`
	UpdatedAt      string `gorm:"updated_at"`
	SwaggerVersion string `gorm:"swagger_version"`
	AssetName      string `gorm:"asset_name"`
	Deprecated     bool   `gorm:"deprecated"`
	Source         string `gorm:"source"`
	AppID          uint32 `gorm:"app_id"`
	Branch         string `gorm:"branch"`
	ServiceName    string `gorm:"service_name"`
}

func (APIAssetVersion) TableName

func (APIAssetVersion) TableName() string

type APIMExportRecord

type APIMExportRecord struct {
	Model
	Common

	AssetID        string `gorm:"asset_id"`
	AssetName      string `gorm:"asset_name"`
	VersionID      uint32 `gorm:"version_id"`
	SwaggerVersion string `json:"swagger_version"`
	Major          uint32 `gorm:"major"`
	Minor          uint32 `gorm:"minor"`
	Patch          uint32 `gorm:"patch"`
	SpecProtocol   string `gorm:"spec_protocol"`
}

func (APIMExportRecord) TableName

func (APIMExportRecord) TableName() string

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"`
}

Jump to

Keyboard shortcuts

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