model

package
v0.0.0-...-9d5fb5c Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blog

type Blog struct {
	Id                    int       `json:"id"`
	BodyId                int       `json:"bodyId"`
	Autogenerated         bool      `json:"autogenerated"`
	Topic                 string    `json:"topic"`
	Title                 string    `json:"title"`
	QuestionPosedToOpenAi string    `json:"questionPosedToOpenAi"`
	CreatedOn             time.Time `json:"createdOn"`
	DateTag               string    `json:"dateTag"`
	CreatedBy             string    `json:"createdBy"`
	Active                bool      `json:"active"`
	Category              Category  `json:"category"`
	ImageUrl              string    `json:"imageUrl"`
	ImageText             string    `json:"imageText"`
	Demo                  bool      `json:"demo"`
	Body                  string    `json:"body"`
}

Blog ..

type BlogRepository

type BlogRepository interface {
	GetAll() ([]*Blog, error)
	Categories() ([]*Category, error)
	SocialLinks() ([]*SocialLink, error)
	Save(Blog *Blog) error
	Close()
}

BlogRepository ..

type Category

type Category struct {
	Id   int    `json:"id"`
	Name string `json:"name"`
}

Category ...

type SocialLink struct {
	Id       int    `json:"id"`
	Platform string `json:"platform"`
	Url      string `json:"url"`
}

SocialLink ..

Jump to

Keyboard shortcuts

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