Documentation ¶
Index ¶
Constants ¶
View Source
const (
MetadataStringKey string = "md"
)
View Source
const (
RedisDefaultExpire = 8 * time.Hour
)
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewData, NewMetadataRepo)
ProviderSet is data providers.
View Source
var Tables = []any{ new(Metadata), }
Functions ¶
func NewMetadataRepo ¶
func NewMetadataRepo(data *Data, logger log.Logger) biz.MetadataRepo
NewMetadataRepo .
Types ¶
type Metadata ¶
type Metadata struct { ID uint64 `gorm:"primaryKey"` Title string `gorm:"type:varchar(30);not null;comment:'名字'"` Description string `gorm:"type:varchar(255);not null;comment:'描述'"` Director string `gorm:"type:varchar(50);not null;comment:'导演'"` }
Metadata defines the movie metadata.
Click to show internal directories.
Click to hide internal directories.