data

package
v0.0.0-...-f12ea2b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2023 License: Unlicense Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MetadataStringKey string = "md"
)
View Source
const (
	RedisDefaultExpire = 8 * time.Hour
)

Variables

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 Data

type Data struct {
	// contains filtered or unexported fields
}

Data .

func NewData

func NewData(c *conf.Bootstrap, logger log.Logger) (data *Data, closer func(), err error)

NewData .

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL