Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DB *gorm.DB
)
Functions ¶
func AutoMigrate ¶
func AutoMigrate()
Types ¶
type Collect ¶
type Collect struct { ID int `json:"id" gorm:"primarykey"` Name string `json:"name" gorm:"varchar(125);not null;comment:'第三方包名'"` Url string `json:"url" gorm:"index:url,unique;varchar(125);not null;comment:'第三方包地址'"` Language string `json:"language" gorm:"varchar(125);not null;comment:'语言'"` }
func FindByName ¶
Click to show internal directories.
Click to hide internal directories.