update
This commit is contained in:
@ -6,7 +6,6 @@ import (
|
||||
"strings"
|
||||
|
||||
"fashionapi/internal/dto"
|
||||
"fashionapi/internal/middleware"
|
||||
"fashionapi/internal/pkg/hashid"
|
||||
"fashionapi/internal/pkg/response"
|
||||
"fashionapi/internal/service"
|
||||
@ -31,7 +30,7 @@ func NewStreetSnapHandler(svc service.StreetSnapService) *StreetSnapHandler {
|
||||
// 查询参数:
|
||||
// - page 页码,默认 1(服务端固定每页 StreetSnapFixedSize=24 条)
|
||||
// - year 年份(整数),0 表示不过滤
|
||||
// - city 地区/城市(精确匹配 city 列),'' 表示不过滤
|
||||
// - city 地区/城市(精确匹配 city 列),” 表示不过滤
|
||||
// - sort image_count(默认,按图片数降序)/ year_desc / year_asc
|
||||
// - locale cn / en
|
||||
//
|
||||
@ -79,7 +78,7 @@ func (h *StreetSnapHandler) Detail(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
detail, err := h.svc.Detail(c.Request.Context(), strconv.FormatUint(uint64(numeric), 10), middleware.IsVIP(middleware.TierFrom(c)))
|
||||
detail, err := h.svc.Detail(c.Request.Context(), strconv.FormatUint(uint64(numeric), 10))
|
||||
if err != nil {
|
||||
fail(c, err)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user