video_repository_v1

package
v0.0.0-...-bee458a Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

Types

type VideoModel

type VideoModel struct {
	Id        int        `gorm:"primary_key;column:id"`
	Title     string     `gorm:"column:title"`
	Url       string     `gorm:"column:url"`
	CreatedAt *time.Time `gorm:"column:created_at"`
	UpdatedAt *time.Time `gorm:"column:updated_at"`
}

func (VideoModel) FromVideoEntity

func (VideoModel) FromVideoEntity(v entity.Video) *VideoModel

func (*VideoModel) ToVideoEntity

func (m *VideoModel) ToVideoEntity() *entity.Video

Jump to

Keyboard shortcuts

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