2026-04-28 19:20:38 +08:00
|
|
|
package response
|
|
|
|
|
|
|
|
|
|
type NotificationResponse struct {
|
|
|
|
|
ID int64 `json:"id"`
|
2026-08-28 22:23:13 +08:00
|
|
|
RecipientUserID int64 `json:"recipient_user_id"`
|
2026-04-28 19:20:38 +08:00
|
|
|
Title string `json:"title"`
|
|
|
|
|
Content string `json:"content"`
|
2026-08-28 22:23:13 +08:00
|
|
|
NotificationType string `json:"notification_type"`
|
|
|
|
|
BizType string `json:"biz_type"`
|
|
|
|
|
BizID int64 `json:"biz_id"`
|
|
|
|
|
ActionURL string `json:"action_url"`
|
|
|
|
|
ReadAt string `json:"read_at,omitempty"`
|
|
|
|
|
CreatedAt string `json:"created_at,omitempty"`
|
2026-04-28 19:20:38 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type NotificationUnreadCountResponse struct {
|
2026-08-28 22:23:13 +08:00
|
|
|
UnreadCount int64 `json:"unread_count"`
|
2026-04-28 19:20:38 +08:00
|
|
|
}
|