Initial cloud-services repo - gateway service + pkg modules
This commit is contained in:
29
pkg/db/queries/mocks/swversion_rxswin.go
Normal file
29
pkg/db/queries/mocks/swversion_rxswin.go
Normal file
@@ -0,0 +1,29 @@
|
||||
package mocks
|
||||
|
||||
import (
|
||||
"fiskerinc.com/modules/common"
|
||||
"fiskerinc.com/modules/db/queries"
|
||||
"github.com/go-pg/pg/v10/orm"
|
||||
)
|
||||
|
||||
type MockSwVersionRxSwin struct {
|
||||
queries.QueryBase
|
||||
SelectResponse []common.SwVersionRxSwin
|
||||
DBMockHelper
|
||||
}
|
||||
|
||||
func (m *MockSwVersionRxSwin) SelectByVersion(version string, options *queries.PageQueryOptions) ([]common.SwVersionRxSwin, error) {
|
||||
return m.SelectResponse, nil
|
||||
}
|
||||
|
||||
func (m *MockSwVersionRxSwin) SelectCountByVersion(version string) (int, error) {
|
||||
return len(m.SelectResponse), nil
|
||||
}
|
||||
|
||||
func (m *MockSwVersionRxSwin) Insert(swVersionRxSwin *common.SwVersionRxSwin) (orm.Result, error) {
|
||||
return m.ORMResponse, nil
|
||||
}
|
||||
|
||||
func (m *MockSwVersionRxSwin) Delete(model *common.SwVersionRxSwin) (orm.Result, error) {
|
||||
return m.ORMResponse, nil
|
||||
}
|
||||
Reference in New Issue
Block a user