Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseModel ¶
type Component ¶
type Component struct { BaseModel Name string `gorm:"type:varchar(100); not null; comment:名称"` Description string `gorm:"type:text; comment:描述"` Lifecycle Lifecycle `gorm:"type:varchar(20); not null; comment:生命周期"` Type ComponentType `gorm:"type:varchar(20); not null; comment:类型"` Tier Tier `gorm:"type:varchar(20); not null; comment:等级"` OwnerID string `gorm:"type:varchar(36); not null; comment:拥有者ID"` Tags []string `gorm:"column:tags; type:json; serializer:json; comment:标签"` Links []Link `gorm:"column:links; type:json; serializer:json; comment:链接"` Annotations map[string]interface{} `gorm:"column:annotations; type:json; serializer:json; comment:注释"` }
type ComponentComponent ¶
type ComponentComponent struct { BaseModel SourceID string `gorm:"type:varchar(36); not null; comment:来源组件ID"` TargetID string `gorm:"type:varchar(36); not null; comment:目标组件ID"` }
func (ComponentComponent) TableName ¶
func (ComponentComponent) TableName() string
type ComponentFilter ¶
type ComponentFilter struct { ComponentIDs []string `json:"componentIDs,omitempty"` Keywords string `json:"keywords,omitempty"` Type ComponentType `json:"type,omitempty"` Lifecycle Lifecycle `json:"lifecycle,omitempty"` TeamID string `json:"teamID,omitempty"` Tier Tier `json:"tier,omitempty"` Tags []string `json:"tags,omitempty"` }
type ComponentType ¶
type ComponentType string
const ( // Service 服务 Service ComponentType = "service" // Library 库 Library ComponentType = "library" // Website 网站 Website ComponentType = "website" )
type Team ¶
type TeamFilter ¶
type TeamFilter struct { }
type TeamUser ¶
type User ¶
type User struct { BaseModel Name string `gorm:"type:varchar(100); not null; comment:名称"` Description string `gorm:"type:text; comment:描述"` Avatar string `gorm:"type: varchar(255); comment:头像"` GithubID string `gorm:"type:varchar(100); comment:githubID"` Role Role `gorm:"type:varchar(20); not null; comment:角色"` }
type UserFilter ¶
type UserFilter struct { }
Click to show internal directories.
Click to hide internal directories.