model

package
v0.0.0-...-9188d2c Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSONTime

type JSONTime struct {
	time.Time
}

JSONTime format json time field by myself

func (JSONTime) MarshalJSON

func (t JSONTime) MarshalJSON() ([]byte, error)

MarshalJSON on JSONTime format Time field with %Y-%m-%d %H:%M:%S

func (*JSONTime) Scan

func (t *JSONTime) Scan(v interface{}) error

Scan valueof time.Time

func (JSONTime) Value

func (t JSONTime) Value() (driver.Value, error)

Value insert timestamp into mysql need this function.

type VideoEditData

type VideoEditData struct {
	Id             int64  `gorm:"primaryKey; type:bigint(20) AUTO_INCREMENT"`
	UserId         int64  `gorm:"index:idx_userId; type:bigint(20) NOT NULL "`
	FileName       string `gorm:"type:varchar(255) NOT NULL"`
	ResultVideoURL string `gorm:"type:varchar(255) NOT NULL"`
	CreatedAt      JSONTime
}

Jump to

Keyboard shortcuts

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