fixed add star to tweet error

pull/222/head
Michael Li 2 years ago
parent 127731acfe
commit 972d0ab986
No known key found for this signature in database

1
.gitignore vendored

@ -8,3 +8,4 @@ paopao-ce*
/release
/data
/custom
/.custom

@ -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

@ -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

@ -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"`

Loading…
Cancel
Save