views

package
v0.0.0-...-72d4cbc Latest Latest
Warning

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

Go to latest
Published: Nov 27, 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 Comment

type Comment struct {
	Post     Post    `json:"post"`
	Content  Content `json:"content"`
	Profile  Profile `json:"profile"`
	Username string  `json:"username"`
}

type Content

type Content struct {
	Id        string `json:"id"`
	Body      string `json:"body"`
	Image     string `json:"image"`
	Video     string `json:"video"`
	PostType  string `json:"post_type"`
	CreatedAt string `json:"created_at"`
}

Content is a struct that contains the content of a post

type CreateContentRequest

type CreateContentRequest struct {
	Body     string
	Image    string
	Video    string
	PostType string
}

CreateContentRequest is a struct that contains the request body for the content of a post

type CreatePostStruct

type CreatePostStruct struct {
	UserId    string
	Content   Content
	CommentTo string
}

CreatePostStruct is a struct that contains the request body for creating a post

type CreateProfileReq

type CreateProfileReq struct {
	FullName   string `json:"full_name"`
	ProfilePic string `json:"profile_pic"`
	UserId     string `json:"user_id"`
	Banner     string `json:"banner"`
	Bio        string `json:"bio"`
}

type CreateUserReq

type CreateUserReq struct {
	Username string `json:"username"`
	Email    string `json:"email"`
}

type FullPost

type FullPost struct {
	Post    Post    `json:"post"`
	Content Content `json:"content"`
}

type Like

type Like struct {
	Id        string `json:"id"`
	UserId    string `json:"user_id"`
	PostId    string `json:"post_id"`
	CreatedAt string `json:"created_at"`
}

type Post

type Post struct {
	Id         string `json:"id"`
	Author     string `json:"author"`
	Content    string `json:"content"`
	TotalLikes int    `json:"total_likes"`
	CommentTo  string `json:"comment_to"`
	CreatedAt  string `json:"created_at"`
}

Post is a struct that contains the post

type Profile

type Profile struct {
	Id         uuid.UUID `json:"id"`
	FullName   string    `json:"full_name"`
	ProfilePic string    `json:"profile_pic"`
	UserId     string    `json:"user_id"`
	Bio        string    `json:"bio"`
	Banner     string    `json:"banner"`
	CreatedAt  string    `json:"created_at"`
}

type Session

type Session struct {
	Id        uuid.UUID `json:"id"`
	UserId    string    `json:"user_id"`
	CreatedAt string    `json:"created_at"`
}

type User

type User struct {
	Id        uuid.UUID `json:"id"`
	Username  string    `json:"username"`
	Email     string    `json:"email"`
	CreatedAt string    `json:"created_at"`
}

Jump to

Keyboard shortcuts

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