fix:分享
This commit is contained in:
@@ -33,6 +33,7 @@ func NewRouter() *gin.Engine {
|
||||
clothesHandler := v1.NewClothesHandler()
|
||||
outfitHandler := v1.NewOutfitHandler()
|
||||
closetHandler := v1.NewClosetShareHandler()
|
||||
outfitShareHandler := v1.NewOutfitShareHandler()
|
||||
collectHandler := v1.NewCollectHandler()
|
||||
likeHandler := v1.NewLikeHandler()
|
||||
notificationHandler := v1.NewNotificationHandler()
|
||||
@@ -99,6 +100,13 @@ func NewRouter() *gin.Engine {
|
||||
auth.GET("/closet-share/:uuid", closetHandler.Detail)
|
||||
auth.POST("/closet-share/:uuid/cancel", closetHandler.Cancel)
|
||||
|
||||
// 穿搭分享
|
||||
auth.POST("/outfit-share", outfitShareHandler.Create)
|
||||
auth.GET("/outfit-share", outfitShareHandler.List)
|
||||
auth.GET("/outfit-share/received", outfitShareHandler.ReceivedList)
|
||||
auth.GET("/outfit-share/:uuid", outfitShareHandler.Detail)
|
||||
auth.POST("/outfit-share/:uuid/cancel", outfitShareHandler.Cancel)
|
||||
|
||||
// 收藏
|
||||
auth.POST("/collect", collectHandler.Collect)
|
||||
auth.GET("/collect", collectHandler.List)
|
||||
|
||||
Reference in New Issue
Block a user