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 SocialLink ¶
type SocialLink struct { Id int `json:"id"` Platform string `json:"platform"` Url string `json:"url"` }
SocialLink ..
Click to show internal directories.
Click to hide internal directories.