|
@@ -23,9 +23,11 @@ func InitCommunity(r *gin.Engine) {
|
|
|
noAuthGroup := r.Group("api/community").Use(middleware.Token())
|
|
|
noAuthGroup.GET("/video/list", community.VideoList)
|
|
|
noAuthGroup.POST("/video/play_log", community.VideoPlayLog)
|
|
|
+
|
|
|
+ //点赞、吐槽、评论
|
|
|
rGroup.POST("/set_like_or_roast", community.SetLikeOrRoast)
|
|
|
rGroup.POST("/comment", community.Comment)
|
|
|
rGroup.POST("/comment/delete", community.DeleteComment)
|
|
|
- rGroup.GET("/need_anonymousUser_tips", community.GetNeedCommentAnonymousUserTips)
|
|
|
- rGroup.POST("/set_anonymousUser_tips", community.SetCommentAnonymousUserTips)
|
|
|
-}
|
|
|
+ rGroup.GET("/need_anonymous_user_tips", community.GetNeedCommentAnonymousUserTips)
|
|
|
+ rGroup.POST("/set_anonymous_user_tips", community.SetCommentAnonymousUserTips)
|
|
|
+}
|