diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2024-08-19 00:11:32 +0200 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2024-08-19 00:14:38 +0200 |
commit | 1aafb164f51992fad314e612afaff8b1b0367447 (patch) | |
tree | 9b1270a0fc18baf66f14da05b7d7c777cc0c7594 /src/rest-api/handler/mock_db.go | |
parent | Migrations: Add new restored_file table migration (diff) | |
download | fs-tracer-backend-1aafb164f51992fad314e612afaff8b1b0367447.tar.gz fs-tracer-backend-1aafb164f51992fad314e612afaff8b1b0367447.tar.bz2 fs-tracer-backend-1aafb164f51992fad314e612afaff8b1b0367447.zip |
rest-api: Add /api/v1/restored-files/ endpoint
Diffstat (limited to '')
-rw-r--r-- | src/rest-api/handler/mock_db.go | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/src/rest-api/handler/mock_db.go b/src/rest-api/handler/mock_db.go index 542fd62..bb613c6 100644 --- a/src/rest-api/handler/mock_db.go +++ b/src/rest-api/handler/mock_db.go @@ -1,9 +1,9 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: src/rest-api/handler/db.go +// Source: db.go // // Generated by this command: // -// mockgen -source src/rest-api/handler/db.go -package handler -destination=src/rest-api/handler/mock_db.go +// mockgen -source=db.go -package=handler -destination=mock_db.go // // Package handler is a generated GoMock package. @@ -40,6 +40,21 @@ func (m *MockDB) EXPECT() *MockDBMockRecorder { return m.recorder } +// GetAndDeleteRestoredFiles mocks base method. +func (m *MockDB) GetAndDeleteRestoredFiles(ctx context.Context, user_id string) (*[]lib.File, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetAndDeleteRestoredFiles", ctx, user_id) + ret0, _ := ret[0].(*[]lib.File) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetAndDeleteRestoredFiles indicates an expected call of GetAndDeleteRestoredFiles. +func (mr *MockDBMockRecorder) GetAndDeleteRestoredFiles(ctx, user_id any) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAndDeleteRestoredFiles", reflect.TypeOf((*MockDB)(nil).GetAndDeleteRestoredFiles), ctx, user_id) +} + // GetLatestFileByPath mocks base method. func (m *MockDB) GetLatestFileByPath(ctx context.Context, path, user_id string) (*lib.File, error) { m.ctrl.T.Helper() |