feat(clothes): 支持通过社区公开穿搭只读查看衣物
新增 outfit_uuid 查询参数,非属主可通过社区公开穿搭查看衣物详情。 同时调整点赞通知逻辑,仅在首次点赞时发送通知。
This commit is contained in:
@@ -76,7 +76,12 @@ func (h *ClothesHandler) Get(c *gin.Context) {
|
||||
response.ToErrorResponse(errcode.Unauthorized)
|
||||
return
|
||||
}
|
||||
request := dto.ClothesGetByUUIDRequest{ClothesUUID: c.Param("uuid"), ShareUUID: c.Query("share_uuid")}
|
||||
request := dto.ClothesGetByUUIDRequest{
|
||||
ClothesUUID: c.Param("uuid"),
|
||||
// 非属主只读查看的两个入口:穿搭分享(share_uuid)与社区公开穿搭(outfit_uuid)
|
||||
ShareUUID: c.Query("share_uuid"),
|
||||
OutfitUUID: c.Query("outfit_uuid"),
|
||||
}
|
||||
if request.ClothesUUID == "" {
|
||||
response.ToErrorResponse(errcode.InvalidParams)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user