models

package
v0.0.0-...-d39ba65 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseModel

type BaseModel struct {
	IsAuthorized bool
}

type EditPostModel

type EditPostModel struct {
	BaseModel

	Post Post
}

type Post

type Post struct {
	Id              string
	Title           string
	ContentHtml     string
	ContentMarkdown string
}

func NewPost

func NewPost(id, title, contentHtml, contentMarkdown string) *Post

type PostListModel

type PostListModel struct {
	BaseModel

	Posts []Post
}

type ViewPostModel

type ViewPostModel struct {
	BaseModel

	Post Post
}

Jump to

Keyboard shortcuts

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