MySQL

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

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

Go to latest
Published: Nov 13, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Admin

type Admin struct {
	Id         int        `gorm:"column:id; primary_key ; AUTO_INCREMENT" json:"id"`
	Name       string     `gorm:"column:name" json:"name"`
	Email      string     `gorm:"column:email" json:"email"`
	Password   string     `gorm:"column:password" json:"password"`
	Created_at *time.Time `gorm:"column:created_at" json:"created_at"`
	Updated_at *time.Time `gorm:"column:updated_at" json:"updated_at"`
}

func (Admin) TableName

func (self Admin) TableName() string

type Article

type Article struct {
	Id          int        `gorm:"column:id" json:"id"`
	Title       string     `gorm:"column:title" json:"title"`
	Content     string     `gorm:"column:content" json:"content"`
	Cover       string     `gorm:"column:cover" json:"cover"`
	Description string     `gorm:"column:description" json:"description"`
	Created_at  *time.Time `gorm:"column:created_at" json:"created_at"`
	Updated_at  *time.Time `gorm:"column:updated_at" json:"updated_at"`
}

func (Article) TableName

func (self Article) TableName() string

type ArticleGroup

type ArticleGroup struct {
	Id         int        `gorm:"column:id" json:"id"`
	Name       string     `gorm:"column:name" json:"name"`
	Count      int        `gorm:"column:count" json:"count"`
	Created_at *time.Time `gorm:"column:created_at" json:"created_at"`
	Updated_at *time.Time `gorm:"column:updated_at" json:"updated_at"`
}

func (ArticleGroup) TableName

func (self ArticleGroup) TableName() string

Jump to

Keyboard shortcuts

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