feat: 实现平台抽成、提现审批、异步任务集成及安全审计功能
This commit is contained in:
22
backend/app/jobs/args/notification.go
Normal file
22
backend/app/jobs/args/notification.go
Normal file
@@ -0,0 +1,22 @@
|
||||
package args
|
||||
|
||||
import "github.com/riverqueue/river"
|
||||
|
||||
type NotificationArgs struct {
|
||||
UserID int64 `json:"user_id"`
|
||||
Type string `json:"type"`
|
||||
Title string `json:"title"`
|
||||
Content string `json:"content"`
|
||||
}
|
||||
|
||||
func (NotificationArgs) Kind() string {
|
||||
return "notification"
|
||||
}
|
||||
|
||||
func (NotificationArgs) InsertOpts() river.InsertOpts {
|
||||
return river.InsertOpts{}
|
||||
}
|
||||
|
||||
func (NotificationArgs) UniqueID() string {
|
||||
return "notification"
|
||||
}
|
||||
Reference in New Issue
Block a user