Files
supermarket/internal/models/models.go
T
davidandClaude Opus 5.5 cd24f2a06d Phase 1, part 4: promote the company's own products
- Content lists the company first, at /content/own: its products from
  the profile (always there to pick from), its own feeds (a new profile
  field for the blog, news and releases), and new or updated pages from
  its websites' sitemaps, with each page's title and description.
- Drafts from it are kind "product" (utm_campaign=product), filed under
  the company's name, and prompted to promote the company's own work
  without unsupported claims; on Reddit, in the makers' voice, with a
  warning that self-promotion is often restricted.

This completes Phase 1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 14:42:37 -07:00

30 lines
845 B
Go

// Package models holds the types the fetchers share.
package models
import "time"
type ContentSource string
const (
SourceTwitterAccount ContentSource = "X·Account"
SourceTwitterSearch ContentSource = "X·Search"
SourceYouTube ContentSource = "YouTube"
SourceRSS ContentSource = "RSS"
SourcePage ContentSource = "Page" // a new or updated page on the company's site
SourceProduct ContentSource = "Product" // one of the company's products, from the profile
)
// ContentItem is one fetched post, video or article. AppName is the
// inventory entry it was fetched for.
type ContentItem struct {
ID string
Source ContentSource
Author string
AuthorHandle string
Title string
Body string
URL string
PublishedAt time.Time
AppName string
}