models

package
v0.0.0-...-0e0598e Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DBClient *gorm.DB

DBClient 连接单例

Functions

func ConnectDB

func ConnectDB()

ConnectDB 建立连接

Types

type Post

type Post struct {
	gorm.Model
	UUID string `gorm:"index;type:varchar(36)"`
	Name string

	Content string
	Excerpt *string `gorm:"type:varchar(255)"` // Optional field name
}

Jump to

Keyboard shortcuts

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