model

package
v0.0.0-...-905bf1f Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

Types

type Danmu

type Danmu struct {
	ID      int64     `gorm:"primaryKey;not null;unique"`
	VideoID int64     `gorm:"not null"`
	UserID  int64     `gorm:"not null"`
	Content string    `gorm:"not null"`
	BeginAt time.Time `gorm:"not null"`
}

func (*Danmu) Create

func (dm *Danmu) Create() error

func (*Danmu) GetAllByVideoID

func (dm *Danmu) GetAllByVideoID(dms *[]Danmu) error

Jump to

Keyboard shortcuts

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