domain

package
v0.0.0-...-0e08e9b Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package domain contains the entities of the article maker business logic

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Article

type Article struct {
	ID    int
	Title string `json:"title"`
	Body  string `json:"body"` // get just the body field
	Publisher
	Category
	CreatedAt   time.Time `json:"created_at"`
	PublishedAt time.Time `json:"published_at"`
	Deleted     bool      `json:"-"`
}

type Category

type Category struct {
	ID   int    `json:"-"`
	Name string `json:"category"`
}

type Publisher

type Publisher struct {
	ID   int    `json:"-"`
	Name string `json:"publisher"`
}

Jump to

Keyboard shortcuts

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