models

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BlogDB *gorm.DB

Functions

func CloseDB

func CloseDB()

CloseDB 关闭数据库连接

func InitDB

func InitDB()

InitDB 数据库连接初始化

Types

type Model

type Model struct {
	PrimaryID int `gorm:"primary_key" json:"primary_id"`
}

Model 公共表模型

Jump to

Keyboard shortcuts

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