style(street): gofmt 规范化街拍主副图相关文件
This commit is contained in:
@ -62,12 +62,12 @@ type PublicStreetSnap struct {
|
||||
|
||||
// PublicStreetSnapDetail 对外只读街拍详情:含完整图片集与主副图分组。
|
||||
type PublicStreetSnapDetail struct {
|
||||
UID string `json:"id"`
|
||||
Title string `json:"title"`
|
||||
Cover string `json:"cover"`
|
||||
Images []PublicArticleImage `json:"images"` // 扁平图片集(保持不变,向后兼容)
|
||||
Groups []PublicStreetSnapGroup `json:"groups,omitempty"` // 按主副图分组(主图→其副图),与 Images 同源同序
|
||||
Favorited bool `json:"favorited,omitempty"` // 已登录时该图集是否被当前用户收藏(gallery 级)
|
||||
UID string `json:"id"`
|
||||
Title string `json:"title"`
|
||||
Cover string `json:"cover"`
|
||||
Images []PublicArticleImage `json:"images"` // 扁平图片集(保持不变,向后兼容)
|
||||
Groups []PublicStreetSnapGroup `json:"groups,omitempty"` // 按主副图分组(主图→其副图),与 Images 同源同序
|
||||
Favorited bool `json:"favorited,omitempty"` // 已登录时该图集是否被当前用户收藏(gallery 级)
|
||||
}
|
||||
|
||||
// PublicStreetSnapGroup 一张主图及其副图,供前端按组折叠展示。
|
||||
|
||||
Reference in New Issue
Block a user