admin

package
v0.0.0-...-74179fa Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateNewPost

func CreateNewPost(w http.ResponseWriter, r *http.Request, db *gorm.DB) error

func NewPost

func NewPost(w http.ResponseWriter, r *http.Request, db *gorm.DB) error

Types

type Post

type Post struct {
	Id          string         `json:"id"`
	Image       string         `json:"image"`
	Title       string         `json:"title"`
	Content     string         `json:"content"`
	Description string         `json:"description"`
	Tags        pq.StringArray `json:"tags" gorm:"type:text[]"`
}

Jump to

Keyboard shortcuts

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