Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type ChannelMapper ¶
type ChannelMapper struct { *db.BasicMapper[Channel] }
func NewChannelMapper ¶
func NewChannelMapper(ds *db.DatabaseSource) (*ChannelMapper, error)
type Content ¶
type Content struct { ID uint `gorm:"id;primaryKey;autoIncrement"` Platform string `gorm:"platform"` ChannelCredit string `gorm:"channel_credit"` Title string `gorm:"title"` Thumbnail string `gorm:"thumbnail"` ContentCredit string `gorm:"content_credit"` State ContentState `gorm:"state"` Path string `gorm:"path"` CreateAt time.Time `gorm:"create_at"` UpdateAt time.Time `gorm:"update_at"` }
type ContentMapper ¶
type ContentMapper struct { *db.BasicMapper[Content] }
func NewContentMapper ¶
func NewContentMapper(ds *db.DatabaseSource) (*ContentMapper, error)
type ContentState ¶
type ContentState int
const ( ContentStateInited ContentState = iota ContentStateDownloading ContentStateDownloaded )
type Subscription ¶
type Subscription struct { ID uint `gorm:"id;primaryKey;autoIncrement"` UserCredit string `gorm:"user_credit"` ChannelCredit string `gorm:"channel_credit"` CreateAt time.Time `gorm:"create_at"` UpdateAt time.Time `gorm:"update_at"` }
func (Subscription) TableName ¶
func (Subscription) TableName() string
type SubscriptionMapper ¶
type SubscriptionMapper struct { *db.BasicMapper[Subscription] }
func NewSubscriptionMapper ¶
func NewSubscriptionMapper(ds *db.DatabaseSource) (*SubscriptionMapper, error)
type UnionMapper ¶
type UnionMapper struct { ChannelMapper *ChannelMapper SubscriptionMapper *SubscriptionMapper ContentMapper *ContentMapper UserMapper *UserMapper }
func NewUnionMapper ¶
func NewUnionMapper(ds *db.DatabaseSource) (*UnionMapper, error)
type User ¶
type UserMapper ¶
type UserMapper struct { *db.BasicMapper[User] }
func NewUserMapper ¶
func NewUserMapper(ds *db.DatabaseSource) (*UserMapper, error)
Click to show internal directories.
Click to hide internal directories.