Documentation ¶
Index ¶
- Constants
- func CommunityDetailHandler(c *gin.Context)
- func CommunityHandler(c *gin.Context)
- func CreateCommentHandler(c *gin.Context)
- func CreatePostHandler(c *gin.Context)
- func GetCommentByPostIdHandler(c *gin.Context)
- func GetPostByCommunityIdHandler(c *gin.Context)
- func GetPostDetailHandler(c *gin.Context)
- func GetPostHandler(c *gin.Context)
- func GetPostOrderHandler(c *gin.Context)
- func LoginHandler(c *gin.Context)
- func PostVoteHandler(c *gin.Context)
- func ResponseSuccess(c *gin.Context, data interface{})
- func SignUpHandler(c *gin.Context)
- type ResponseData
Constants ¶
View Source
const ( OrderTime = "time" OrderScore = "score" )
Variables ¶
This section is empty.
Functions ¶
func CommunityDetailHandler ¶
CommunityDetailHandler 返回社区板块对应的详细信息
func GetCommentByPostIdHandler ¶
GetCommentByPostIdHandler 加载帖子的评论信息
func GetPostByCommunityIdHandler ¶
GetPostByCommunityIdHandler 通过社区id来返回帖子数据
func GetPostOrderHandler ¶
GetPostOrderHandler 根据分页参数和排列顺序返回对应的帖子数据
func ResponseSuccess ¶
Types ¶
type ResponseData ¶
type ResponseData struct { Code int `json:"code"` Msg interface{} `json:"msg"` Data interface{} `json:"data,omitempty"` }
Click to show internal directories.
Click to hide internal directories.