model

package
v0.0.0-...-9c903d5 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *gorm.DB

Functions

func CreateMovie

func CreateMovie(data *Movie)

func InitDB

func InitDB(iniPath string)

Types

type FetchCount

type FetchCount struct {
	Model
	Count int `json:"count"`
}

type Model

type Model struct {
	ID int `gorm:"primary_key" json:"id"`
}

Model base model

type Movie

type Movie struct {
	Model
	MovieNo string `json:"movie_no"`
	Title   string `json:"title"`
}

Jump to

Keyboard shortcuts

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