fix:分享

This commit is contained in:
2026-09-13 23:32:22 +08:00
parent 646fd99887
commit 77eec37af1
17 changed files with 903 additions and 28 deletions
+8
View File
@@ -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)