first commit

This commit is contained in:
2026-09-11 01:47:20 +08:00
commit 303207d3cc
74 changed files with 8348 additions and 0 deletions
+19
View File
@@ -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"` // 已发送用户数
}