feat: 帖子收藏与用户关注
- 新增收藏功能:favorite 服务与 handler、FavoriteButton 组件 - 新增关注功能:follow 服务与 handler、FollowButton 组件 - 用户主页适配关注/粉丝与收藏展示 - flash 消息工具、广告与侧边栏组件微调
This commit is contained in:
@@ -91,13 +91,14 @@ type OverviewData struct {
|
||||
|
||||
// PublicAdItem 侧栏广告条目
|
||||
type PublicAdItem struct {
|
||||
ID uint `json:"id"`
|
||||
Kind string `json:"kind"`
|
||||
LinkURL string `json:"link_url"`
|
||||
ImageURL string `json:"image_url,omitempty"`
|
||||
Title string `json:"title,omitempty"`
|
||||
TextColor string `json:"text_color,omitempty"`
|
||||
BgColor string `json:"bg_color,omitempty"`
|
||||
ID uint `json:"id"`
|
||||
Kind string `json:"kind"`
|
||||
LinkURL string `json:"link_url"`
|
||||
ImageURL string `json:"image_url,omitempty"`
|
||||
Title string `json:"title,omitempty"`
|
||||
TextColor string `json:"text_color,omitempty"`
|
||||
BgColor string `json:"bg_color,omitempty"`
|
||||
EndsAt *time.Time `json:"ends_at,omitempty"`
|
||||
}
|
||||
|
||||
// PublicSponsorItem 侧栏赞助商
|
||||
@@ -332,6 +333,7 @@ LIMIT 5`
|
||||
ID: a.ID, Kind: a.Kind, LinkURL: a.LinkURL,
|
||||
ImageURL: a.ImageURL, Title: a.Title,
|
||||
TextColor: a.TextColor, BgColor: a.BgColor,
|
||||
EndsAt: a.EndsAt,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user