domain

package
v0.0.0-...-789fa8c Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrArticleNotFound = errors.New("article not found")
)

Functions

This section is empty.

Types

type Article

type Article struct {
	Slug           string
	Title          string
	Description    string
	Body           string
	TagList        []Tag
	CreatedAt      time.Time
	UpdatedAt      time.Time
	Favorited      bool
	FavoritesCount int
	Author         domain.User
}

func (*Article) AddTag

func (a *Article) AddTag(tag Tag)

type ArticleCriteria

type ArticleCriteria struct {
	Tag       string
	Author    string
	Favorited string
	Limit     uint
	Offset    uint
}

type Comment

type Comment struct {
	ID        uint
	CreatedAt time.Time
	UpdatedAt time.Time
	Body      string
	Author    domain.User
}

type Tag

type Tag string

Jump to

Keyboard shortcuts

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