Feat: user profile

This commit is contained in:
HFO4
2020-02-18 15:34:40 +08:00
parent f91792bc64
commit 33a917cc75
6 changed files with 67 additions and 7 deletions

View File

@@ -217,3 +217,14 @@ func ShareThumb(c *gin.Context) {
c.JSON(200, ErrorResponse(err))
}
}
// GetUserShare 查看给定用户的分享
func GetUserShare(c *gin.Context) {
var service share.ShareUserGetService
if err := c.ShouldBindQuery(&service); err == nil {
res := service.Get(c)
c.JSON(200, res)
} else {
c.JSON(200, ErrorResponse(err))
}
}