feat: update

This commit is contained in:
yanghao05
2025-04-11 16:09:06 +08:00
parent 79972e963c
commit 58f1e78054
5 changed files with 95 additions and 32 deletions

View File

@@ -74,3 +74,16 @@ func (s *PostsTestSuite) Test_BatchInsert() {
}
})
}
func (s *PostsTestSuite) Test_BatchInsertUserPosts() {
Convey("Test_Demo", s.T(), func() {
database.Truncate(context.Background(), db, table.UserPosts.TableName())
count := 10
for i := 0; i < count; i++ {
if err := Users.Own(context.Background(), 1, int64(i)+1); err != nil {
s.T().Fatal(err)
}
}
})
}