diff --git a/.gitignore b/.gitignore index 18e3b36d..6cef1340 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ paopao-ce* /release /data /custom +/.custom diff --git a/CHANGELOG.md b/CHANGELOG.md index 7ec26c32..29722fb9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to paopao-ce are documented in this file. ## 0.3.0+dev ([`dev`](https://github.com/rocboss/paopao-ce/tree/dev)) +## 0.2.2 + +### Fixed + +- fixed add star to tweet error [#222](https://github.com/rocboss/paopao-ce/pull/222) + ## 0.2.1 ### Changed diff --git a/auto/api/v1/priv.go b/auto/api/v1/priv.go index a29d2858..b02ee0ea 100644 --- a/auto/api/v1/priv.go +++ b/auto/api/v1/priv.go @@ -206,7 +206,7 @@ func RegisterPrivServant(e *gin.Engine, s Priv, b PrivBinding, r PrivRender) { r.RenderCollectionTweet(c, resp, err) }) - router.Handle("POST", "/post/start", func(c *gin.Context) { + router.Handle("POST", "/post/star", func(c *gin.Context) { select { case <-c.Request.Context().Done(): return diff --git a/mirc/web/v1/priv.go b/mirc/web/v1/priv.go index 9c8d2af3..132e56b0 100644 --- a/mirc/web/v1/priv.go +++ b/mirc/web/v1/priv.go @@ -31,7 +31,7 @@ type Priv struct { DeleteTweet func(Delete, web.DeleteTweetReq) `mir:"/post"` // StarTweet 动态点赞操作 - StarTweet func(Post, web.StarTweetReq) web.StarTweetResp `mir:"/post/start"` + StarTweet func(Post, web.StarTweetReq) web.StarTweetResp `mir:"/post/star"` // CollectionTweet 动态收藏操作 CollectionTweet func(Post, web.CollectionTweetReq) web.CollectionTweetResp `mir:"/post/collection"`