package
0.0.0-20241226111824-a12a7f529f92
Repository: https://github.com/agelessbaby/bloomblog.git
Documentation: pkg.go.dev
# Functions
CommentAction handles comment actions such as adding, editing, or deleting a comment.
CommentList retrieves the list of comments for a specific post.
FavoriteAction handles the favorite action for a post.
FavoriteList handles the list action for a post.
GetFeed retrieves a feed based on the latest time and user token.
GetUserById retrieves a user by ID
@Summary Get User by ID @Description Get user information by ID and token @Tags User @Security BearerAuth @Accept json @Produce json @Param user_id query string true "User ID" @Success 200 {object} user.BloomBlogUserResponse @Failure 400 {object} errno.ErrNo @Router /bloomblog/user/getuserbyid [GET].
Login handles user login
@Summary User Login @Description Authenticate user with username and password @Tags User @Accept json @Produce json @Param loginParam body UserRegisterParam true "User login data" @Success 200 {object} user.BloomBlogUserRegisterResponse @Failure 400 {object} errno.ErrNo @Router /bloomblog/user/login [post].
PublishAction handles the publication of a blog post with images.
PublishList retrieves the publishing list of a user
@Summary get the publishing list @Description This endpoint allows users to fetch another user's publishing list
@Tags publish @Accept json @Produce json @Security BearerAuth @Param user_id query string true "The ID of the user to retrieve the following list for" @Success 200 {object} publish.BloomblogPublishListResponse "The response object" @Failure 400 {object} publish.BloomblogPublishListResponse "Invalid input data" @Failure 500 {object} publish.BloomblogPublishListResponse "Internal server error" @Router /bloomblog/publish/action [post].
Register handles user registration
@Summary User Registration @Description Register a new user @Tags User @Accept json @Produce json @Param registerParam body UserRegisterParam true "User registration data" @Success 200 {object} user.BloomBlogUserRegisterResponse @Failure 400 {object} errno.ErrNo @Router /bloomblog/user/register [post].
RelationAction handles user relation actions (e.g., follow, unfollow).
RelationFollowerList retrieves the list of followers for a specific user.
RelationFollowList retrieves the list of users that a specific user is following.
SendResponse pack response.
SlCommentList retrieves the list of sub-comments for a specific parent comment.
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
The input parameter for getting user feed.
The input parameter for publish posts.
The input parameter for follow or unfollow.
No description provided by the author
The unput parameter for getting user by id.
The input parameter for user register.