feat: 实现平台抽成、提现审批、异步任务集成及安全审计功能
This commit is contained in:
@@ -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)
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user