dto

package
v0.0.0-...-36feab7 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2021 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 FeedItem

type FeedItem struct {
	ID       string    `json:"id"`
	MediaID  *string   `json:"mediaId"`
	Caption  string    `json:"caption"`
	Posted   time.Time `json:"posted"`
	Username string    `json:"username"`
	Likes    int       `json:"likes"`
	HasLiked bool      `json:"hasLiked"`
	IsAuthor bool      `json:"isAuthor"`
}

FeedItem represents a post in a feed.

type Post

type Post struct {
	ID       string    `json:"id"`
	MediaID  *string   `json:"mediaId"`
	Posted   time.Time `json:"posted"`
	Username string    `json:"username"`
	Caption  string    `json:"caption"`
	Likes    int       `json:"likes"`
	HasLiked bool      `json:"hasLiked"`
}

Post is data transfer object used to get a post's data.

Jump to

Keyboard shortcuts

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