articleManagement

package
v0.0.0-...-4d32bc5 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateArticle

func CreateArticle(db *gorm.DB, article Article) (err error)

Types

type Article

type Article struct {
	gorm.Model

	Title        string `gorm:"column:title"`
	Author       string `gorm:"column:author;index"`
	Abstract     string `gorm:"column:abstract"`
	FilePath     string `gorm:"column:filepath"`
	InitialGrade int    `gorm:"column:initial_grade"`
}

func GetLatestNArticle

func GetLatestNArticle(db *gorm.DB, n int) (articles []Article, err error)

Jump to

Keyboard shortcuts

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