package
Version:
v0.0.0-...-72d4cbc
Opens a new window with list of versions in this module.
Published: Nov 27, 2024
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
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
CreateContentRequest is a struct that contains the request body for the content
of a post
CreatePostStruct is a struct that contains the request body for creating a post
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 struct {
Username string `json:"username"`
Email string `json:"email"`
}
type FullPost struct {
Post Post `json:"post"`
Content Content `json:"content"`
}
type Like struct {
Id string `json:"id"`
UserId string `json:"user_id"`
PostId string `json:"post_id"`
CreatedAt string `json:"created_at"`
}
type Post struct {
Id string `json:"id"`
Author string `json:"author"`
Content string `json:"content"`
TotalLikes int `json:"total_likes"`
CreatedAt string `json:"created_at"`
}
Post is a struct that contains the post
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 struct {
Id uuid.UUID `json:"id"`
UserId string `json:"user_id"`
CreatedAt string `json:"created_at"`
}
type User struct {
Id uuid.UUID `json:"id"`
Username string `json:"username"`
Email string `json:"email"`
CreatedAt string `json:"created_at"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.