20 lines
652 B
Go
20 lines
652 B
Go
package dto
|
|
|
|
// NotificationSendRequest 单用户通知请求。
|
|
type NotificationSendRequest struct {
|
|
UserID int64 `json:"user_id" binding:"required,min=1"`
|
|
Title string `json:"title" binding:"required,max=64"`
|
|
Content string `json:"content" binding:"required,max=500"`
|
|
}
|
|
|
|
// NotificationBroadcastRequest 全量广播请求。
|
|
type NotificationBroadcastRequest struct {
|
|
Title string `json:"title" binding:"required,max=64"`
|
|
Content string `json:"content" binding:"required,max=500"`
|
|
}
|
|
|
|
// NotificationBroadcastResponse 广播结果。
|
|
type NotificationBroadcastResponse struct {
|
|
SentCount int64 `json:"sent_count"` // 已发送用户数
|
|
}
|