resources

package
v0.0.0-...-18354f7 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 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 NotificationResource

type NotificationResource struct {
	ID        uint         `json:"id"`
	User      UserResource `json:"user"`
	FollowId  uint         `json:"follow_id"`
	Type      string       `json:"type"`
	Message   string       `json:"message"`
	CreatedAt time.Time    `json:"created_at"`
}

type PostResource

type PostResource struct {
	UUID      string       `json:"uuid"`
	Author    UserResource `json:"author"`
	Content   string       `json:"content"`
	Media     string       `json:"media"`
	CreatedAt time.Time    `json:"created_at"`
	Likes     uint         `json:"likes"`
	Liked     bool         `json:"liked"`
}

type ProfileResource

type ProfileResource struct {
	UUID      string     `json:"uuid"`
	Name      string     `json:"name"`
	Username  string     `json:"username"`
	Link      string     `json:"link"`
	Bio       string     `json:"bio"`
	Birthday  *time.Time `json:"birthday"`
	Image     string     `json:"image"`
	IsPrivate bool       `json:"is_private"`
}

type UserResource

type UserResource struct {
	UUID      string `json:"uuid"`
	Name      string `json:"name"`
	Username  string `json:"username"`
	Image     string `json:"image"`
	IsPrivate bool   `json:"is_private"`
}

Jump to

Keyboard shortcuts

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