feat: update

This commit is contained in:
Rogee
2025-05-23 21:43:49 +08:00
parent f13ef4388e
commit 409a2e8304
9 changed files with 21 additions and 126 deletions

View File

@@ -132,7 +132,7 @@ func (s *MediasTestSuite) Test_Create() {
Path: "path/to/media.pdf",
}
err := MediasModel().Create(context.Background(), model)
err := model.Create(context.Background())
Convey("Create should not return an error", func() {
So(err, ShouldBeNil)
})
@@ -165,7 +165,7 @@ func (s *MediasTestSuite) Test_Page() {
Path: "path/to/media.pdf",
}
err := MediasModel().Create(context.Background(), model)
err := model.Create(context.Background())
So(err, ShouldBeNil)
}
@@ -208,7 +208,7 @@ func (s *MediasTestSuite) Test_CreateGetID() {
Path: "path/to/media.pdf",
}
err := MediasModel().Create(context.Background(), model)
err := model.Create(context.Background())
So(err, ShouldBeNil)
So(model.ID, ShouldNotBeEmpty)