first commit
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
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"` // 已发送用户数
|
||||
}
|
||||
Reference in New Issue
Block a user