|
|
@ -57,7 +57,6 @@ func RegisterPrivServant(e *gin.Engine, s Priv) {
|
|
|
|
return
|
|
|
|
return
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
req := new(web.UnfollowTopicReq)
|
|
|
|
req := new(web.UnfollowTopicReq)
|
|
|
|
if err := s.Bind(c, req); err != nil {
|
|
|
|
if err := s.Bind(c, req); err != nil {
|
|
|
|
s.Render(c, nil, err)
|
|
|
|
s.Render(c, nil, err)
|
|
|
@ -71,7 +70,6 @@ func RegisterPrivServant(e *gin.Engine, s Priv) {
|
|
|
|
return
|
|
|
|
return
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
req := new(web.FollowTopicReq)
|
|
|
|
req := new(web.FollowTopicReq)
|
|
|
|
if err := s.Bind(c, req); err != nil {
|
|
|
|
if err := s.Bind(c, req); err != nil {
|
|
|
|
s.Render(c, nil, err)
|
|
|
|
s.Render(c, nil, err)
|
|
|
@ -85,7 +83,6 @@ func RegisterPrivServant(e *gin.Engine, s Priv) {
|
|
|
|
return
|
|
|
|
return
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
req := new(web.StickTopicReq)
|
|
|
|
req := new(web.StickTopicReq)
|
|
|
|
if err := s.Bind(c, req); err != nil {
|
|
|
|
if err := s.Bind(c, req); err != nil {
|
|
|
|
s.Render(c, nil, err)
|
|
|
|
s.Render(c, nil, err)
|
|
|
@ -100,7 +97,6 @@ func RegisterPrivServant(e *gin.Engine, s Priv) {
|
|
|
|
return
|
|
|
|
return
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
req := new(web.TweetReplyThumbsReq)
|
|
|
|
req := new(web.TweetReplyThumbsReq)
|
|
|
|
if err := s.Bind(c, req); err != nil {
|
|
|
|
if err := s.Bind(c, req); err != nil {
|
|
|
|
s.Render(c, nil, err)
|
|
|
|
s.Render(c, nil, err)
|
|
|
@ -114,7 +110,6 @@ func RegisterPrivServant(e *gin.Engine, s Priv) {
|
|
|
|
return
|
|
|
|
return
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
req := new(web.TweetReplyThumbsReq)
|
|
|
|
req := new(web.TweetReplyThumbsReq)
|
|
|
|
if err := s.Bind(c, req); err != nil {
|
|
|
|
if err := s.Bind(c, req); err != nil {
|
|
|
|
s.Render(c, nil, err)
|
|
|
|
s.Render(c, nil, err)
|
|
|
@ -128,7 +123,6 @@ func RegisterPrivServant(e *gin.Engine, s Priv) {
|
|
|
|
return
|
|
|
|
return
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
req := new(web.TweetCommentThumbsReq)
|
|
|
|
req := new(web.TweetCommentThumbsReq)
|
|
|
|
if err := s.Bind(c, req); err != nil {
|
|
|
|
if err := s.Bind(c, req); err != nil {
|
|
|
|
s.Render(c, nil, err)
|
|
|
|
s.Render(c, nil, err)
|
|
|
@ -142,7 +136,6 @@ func RegisterPrivServant(e *gin.Engine, s Priv) {
|
|
|
|
return
|
|
|
|
return
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
req := new(web.TweetCommentThumbsReq)
|
|
|
|
req := new(web.TweetCommentThumbsReq)
|
|
|
|
if err := s.Bind(c, req); err != nil {
|
|
|
|
if err := s.Bind(c, req); err != nil {
|
|
|
|
s.Render(c, nil, err)
|
|
|
|
s.Render(c, nil, err)
|
|
|
@ -156,7 +149,6 @@ func RegisterPrivServant(e *gin.Engine, s Priv) {
|
|
|
|
return
|
|
|
|
return
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
req := new(web.DeleteCommentReplyReq)
|
|
|
|
req := new(web.DeleteCommentReplyReq)
|
|
|
|
if err := s.Bind(c, req); err != nil {
|
|
|
|
if err := s.Bind(c, req); err != nil {
|
|
|
|
s.Render(c, nil, err)
|
|
|
|
s.Render(c, nil, err)
|
|
|
@ -170,7 +162,6 @@ func RegisterPrivServant(e *gin.Engine, s Priv) {
|
|
|
|
return
|
|
|
|
return
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
req := new(web.CreateCommentReplyReq)
|
|
|
|
req := new(web.CreateCommentReplyReq)
|
|
|
|
var bv _binding_ = req
|
|
|
|
var bv _binding_ = req
|
|
|
|
if err := bv.Bind(c); err != nil {
|
|
|
|
if err := bv.Bind(c); err != nil {
|
|
|
@ -186,7 +177,6 @@ func RegisterPrivServant(e *gin.Engine, s Priv) {
|
|
|
|
return
|
|
|
|
return
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
req := new(web.DeleteCommentReq)
|
|
|
|
req := new(web.DeleteCommentReq)
|
|
|
|
if err := s.Bind(c, req); err != nil {
|
|
|
|
if err := s.Bind(c, req); err != nil {
|
|
|
|
s.Render(c, nil, err)
|
|
|
|
s.Render(c, nil, err)
|
|
|
@ -200,7 +190,6 @@ func RegisterPrivServant(e *gin.Engine, s Priv) {
|
|
|
|
return
|
|
|
|
return
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
req := new(web.CreateCommentReq)
|
|
|
|
req := new(web.CreateCommentReq)
|
|
|
|
var bv _binding_ = req
|
|
|
|
var bv _binding_ = req
|
|
|
|
if err := bv.Bind(c); err != nil {
|
|
|
|
if err := bv.Bind(c); err != nil {
|
|
|
@ -216,7 +205,6 @@ func RegisterPrivServant(e *gin.Engine, s Priv) {
|
|
|
|
return
|
|
|
|
return
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
req := new(web.VisibleTweetReq)
|
|
|
|
req := new(web.VisibleTweetReq)
|
|
|
|
if err := s.Bind(c, req); err != nil {
|
|
|
|
if err := s.Bind(c, req); err != nil {
|
|
|
|
s.Render(c, nil, err)
|
|
|
|
s.Render(c, nil, err)
|
|
|
@ -231,7 +219,6 @@ func RegisterPrivServant(e *gin.Engine, s Priv) {
|
|
|
|
return
|
|
|
|
return
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
req := new(web.StickTweetReq)
|
|
|
|
req := new(web.StickTweetReq)
|
|
|
|
if err := s.Bind(c, req); err != nil {
|
|
|
|
if err := s.Bind(c, req); err != nil {
|
|
|
|
s.Render(c, nil, err)
|
|
|
|
s.Render(c, nil, err)
|
|
|
@ -246,7 +233,6 @@ func RegisterPrivServant(e *gin.Engine, s Priv) {
|
|
|
|
return
|
|
|
|
return
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
req := new(web.LockTweetReq)
|
|
|
|
req := new(web.LockTweetReq)
|
|
|
|
if err := s.Bind(c, req); err != nil {
|
|
|
|
if err := s.Bind(c, req); err != nil {
|
|
|
|
s.Render(c, nil, err)
|
|
|
|
s.Render(c, nil, err)
|
|
|
@ -261,7 +247,6 @@ func RegisterPrivServant(e *gin.Engine, s Priv) {
|
|
|
|
return
|
|
|
|
return
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
req := new(web.CollectionTweetReq)
|
|
|
|
req := new(web.CollectionTweetReq)
|
|
|
|
if err := s.Bind(c, req); err != nil {
|
|
|
|
if err := s.Bind(c, req); err != nil {
|
|
|
|
s.Render(c, nil, err)
|
|
|
|
s.Render(c, nil, err)
|
|
|
@ -276,7 +261,6 @@ func RegisterPrivServant(e *gin.Engine, s Priv) {
|
|
|
|
return
|
|
|
|
return
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
req := new(web.StarTweetReq)
|
|
|
|
req := new(web.StarTweetReq)
|
|
|
|
if err := s.Bind(c, req); err != nil {
|
|
|
|
if err := s.Bind(c, req); err != nil {
|
|
|
|
s.Render(c, nil, err)
|
|
|
|
s.Render(c, nil, err)
|
|
|
@ -291,7 +275,6 @@ func RegisterPrivServant(e *gin.Engine, s Priv) {
|
|
|
|
return
|
|
|
|
return
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
req := new(web.DeleteTweetReq)
|
|
|
|
req := new(web.DeleteTweetReq)
|
|
|
|
if err := s.Bind(c, req); err != nil {
|
|
|
|
if err := s.Bind(c, req); err != nil {
|
|
|
|
s.Render(c, nil, err)
|
|
|
|
s.Render(c, nil, err)
|
|
|
@ -305,7 +288,6 @@ func RegisterPrivServant(e *gin.Engine, s Priv) {
|
|
|
|
return
|
|
|
|
return
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
req := new(web.CreateTweetReq)
|
|
|
|
req := new(web.CreateTweetReq)
|
|
|
|
var bv _binding_ = req
|
|
|
|
var bv _binding_ = req
|
|
|
|
if err := bv.Bind(c); err != nil {
|
|
|
|
if err := bv.Bind(c); err != nil {
|
|
|
@ -321,7 +303,6 @@ func RegisterPrivServant(e *gin.Engine, s Priv) {
|
|
|
|
return
|
|
|
|
return
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
req := new(web.DownloadAttachmentReq)
|
|
|
|
req := new(web.DownloadAttachmentReq)
|
|
|
|
var bv _binding_ = req
|
|
|
|
var bv _binding_ = req
|
|
|
|
if err := bv.Bind(c); err != nil {
|
|
|
|
if err := bv.Bind(c); err != nil {
|
|
|
@ -337,7 +318,6 @@ func RegisterPrivServant(e *gin.Engine, s Priv) {
|
|
|
|
return
|
|
|
|
return
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
req := new(web.DownloadAttachmentPrecheckReq)
|
|
|
|
req := new(web.DownloadAttachmentPrecheckReq)
|
|
|
|
var bv _binding_ = req
|
|
|
|
var bv _binding_ = req
|
|
|
|
if err := bv.Bind(c); err != nil {
|
|
|
|
if err := bv.Bind(c); err != nil {
|
|
|
@ -353,7 +333,6 @@ func RegisterPrivServant(e *gin.Engine, s Priv) {
|
|
|
|
return
|
|
|
|
return
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
req := new(web.UploadAttachmentReq)
|
|
|
|
req := new(web.UploadAttachmentReq)
|
|
|
|
var bv _binding_ = req
|
|
|
|
var bv _binding_ = req
|
|
|
|
if err := bv.Bind(c); err != nil {
|
|
|
|
if err := bv.Bind(c); err != nil {
|
|
|
|