post

package
Version: v0.0.0-...-2b5e5cc Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Post

type Post struct {
	gorm.Model
	Title         string
	Summary       string
	Detail        string `sql:"type:text"`
	FileReference string
	Files         []file.File `gorm:"unique;foreignkey:Reference;association_foreignkey:FileReference"`
}

func Get

func Get(pageNum int, pageSize int, maps interface{}) ([]*Post, error)

func (Post) Add

func (p Post) Add() (Post, error)

Source Files

Jump to

Keyboard shortcuts

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