req

package
v0.0.0-...-54354b8 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminLoginReq

type AdminLoginReq struct {
	Email    string `json:"email"`
	Password string `json:"password"`
}

type CreateCommentReq

type CreateCommentReq struct {
	Comment string `json:"comment,omitempty"`
	UserID  string `json:"userId"`
	PostID  string `json:"postId"`
}

type CreatePostReq

type CreatePostReq struct {
	Description string `form:"description,omitempty"`
	Location    string `form:"location,omitempty"`
	Files       []*multipart.FileHeader
	UserID      string `json:"userId"`
}

type DeleteCommentReq

type DeleteCommentReq struct {
	UserID    string `json:"userId"`
	CommentID string `json:"commentId"`
}

type FollowUnfollowUserReq

type FollowUnfollowUserReq struct {
	UserID     string `json:"userId"`
	FollowedID string `json:"followedId"`
}

type GetCommentsReq

type GetCommentsReq struct {
	PostID string `json:"postId"`
}

type LikeUnlikePostReq

type LikeUnlikePostReq struct {
	PostID string `json:"postId"`
	UserID string `json:"userId"`
}

type LoginReq

type LoginReq struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

type SendChatReq

type SendChatReq struct {
	SenderID    string `json:"senderId"`
	RecipientID string `json:"recipientId"`
	Message     string `json:"message"`
	CreatedAt   string `json:"createdAt"`
	ReceivedAt  string `json:"receivedAt"`
}

type SignUpReq

type SignUpReq struct {
	FullName  string            `json:"fullName"`
	Email     string            `json:"email"`
	Username  string            `json:"username"`
	Password  string            `json:"password"`
	AccType   constants.AccType `json:"accountType"`
	CreatedAt string            `json:"createdAt"`
	UpdatedAt string            `json:"updatedAt"`
}

type UserId

type UserId struct {
	UserID string `json:"userId"`
}

type VerifyOtp

type VerifyOtp struct {
	UserID string `json:"userId"`
	Otp    string `json:"Otp"`
}

Jump to

Keyboard shortcuts

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