feat: 实现平台抽成、提现审批、异步任务集成及安全审计功能

This commit is contained in:
2025-12-30 14:54:19 +08:00
parent 5e8dbec806
commit ee1acae3ed
25 changed files with 985 additions and 60 deletions

View File

@@ -50,14 +50,14 @@ func (s *NotificationTestSuite) Test_CRUD() {
err := Notification.Send(ctx, uID, "system", "Welcome", "Hello World")
So(err, ShouldBeNil)
list, err := Notification.List(ctx, 1)
list, err := Notification.List(ctx, 1, "")
So(err, ShouldBeNil)
So(list.Total, ShouldEqual, 1)
items := list.Items.([]app_dto.Notification)
So(len(items), ShouldEqual, 1)
So(items[0].Title, ShouldEqual, "Welcome")
// Mark Read
// Need ID
n, _ := models.NotificationQuery.WithContext(ctx).Where(models.NotificationQuery.UserID.Eq(uID)).First()
@@ -68,4 +68,4 @@ func (s *NotificationTestSuite) Test_CRUD() {
So(nReload.IsRead, ShouldBeTrue)
})
})
}
}