Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type YtdlpHistory ¶
type YtdlpHistory struct {
Id int64 `gorm:"primaryKey;autoIncrement;comment:主键id"`
Name string `gorm:"comment:视频名称"`
Url string `gorm:"comment:视频链接"`
CreatedAt time.Time `gorm:"autoCreateTime"`
UpdatedAt time.Time `gorm:"autoUpdateTime"`
DeletedAt gorm.DeletedAt `gorm:"index"`
}
func (*YtdlpHistory) ExistsByName ¶
func (yt *YtdlpHistory) ExistsByName() (bool, error)
Check if a record exists with the same name
func (*YtdlpHistory) ExistsByUrl ¶
func (yt *YtdlpHistory) ExistsByUrl() (bool, error)
Check if a record exists with the same URL
func (*YtdlpHistory) FindByFilename ¶
func (yt *YtdlpHistory) FindByFilename() (bool, error)
根据自定义文件名判断是否下载过
func (*YtdlpHistory) FindByOriginURL ¶
func (yt *YtdlpHistory) FindByOriginURL() (bool, error)
根据原始url判断是否下载过
func (*YtdlpHistory) InsertOne ¶
func (yt *YtdlpHistory) InsertOne() (int64, error)
func (*YtdlpHistory) Sync ¶
func (yt *YtdlpHistory) Sync()
Click to show internal directories.
Click to hide internal directories.