func GetPostByID(c *gin.Context) {
	id := c.Param("id")

	post, err := models.FindPostByObjectID(id)
	if err != nil {
		c.String(http.StatusInternalServerError, "database parse errror")
	}

	c.JSON(http.StatusOK, post)
}
// GetPostByID parse post by object id
GetPostByID parse post by object id
// GetPostByID parse post by object id
func GetPostByID(c *gin.Context) {
	id := c.Param("id")
	post, err := models.FindPostByObjectID(id)
	if err != nil {
		c.String(http.StatusInternalServerError, "database parse errror")
	}
	c.JSON(http.StatusOK, post)
}
func GetPostByID ( c * gin . Context ) { id := c . Param ( " " ) post , err := models . FindPostByObjectID ( id ) if err != nil { c . String ( http . StatusInternalServerError , " " ) } c . JSON ( http . StatusOK , post ) }
GetPostByID parse post by object id
GetPostByID parse post by object id