коммит произвёл
GitHub
родитель
98d72e51fe
Коммит
0118db9d23
@@ -15,7 +15,7 @@ type AuditStore struct {
|
||||
}
|
||||
|
||||
// Get provides a mock function with given fields: user_id, offset, limit
|
||||
func (_m *AuditStore) Get(user_id string, offset int, limit int) (model.Audits, *model.AppError) {
|
||||
func (_m *AuditStore) Get(user_id string, offset int, limit int) (model.Audits, error) {
|
||||
ret := _m.Called(user_id, offset, limit)
|
||||
|
||||
var r0 model.Audits
|
||||
@@ -27,45 +27,39 @@ func (_m *AuditStore) Get(user_id string, offset int, limit int) (model.Audits,
|
||||
}
|
||||
}
|
||||
|
||||
var r1 *model.AppError
|
||||
if rf, ok := ret.Get(1).(func(string, int, int) *model.AppError); ok {
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(1).(func(string, int, int) error); ok {
|
||||
r1 = rf(user_id, offset, limit)
|
||||
} else {
|
||||
if ret.Get(1) != nil {
|
||||
r1 = ret.Get(1).(*model.AppError)
|
||||
}
|
||||
r1 = ret.Error(1)
|
||||
}
|
||||
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// PermanentDeleteByUser provides a mock function with given fields: userId
|
||||
func (_m *AuditStore) PermanentDeleteByUser(userId string) *model.AppError {
|
||||
func (_m *AuditStore) PermanentDeleteByUser(userId string) error {
|
||||
ret := _m.Called(userId)
|
||||
|
||||
var r0 *model.AppError
|
||||
if rf, ok := ret.Get(0).(func(string) *model.AppError); ok {
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string) error); ok {
|
||||
r0 = rf(userId)
|
||||
} else {
|
||||
if ret.Get(0) != nil {
|
||||
r0 = ret.Get(0).(*model.AppError)
|
||||
}
|
||||
r0 = ret.Error(0)
|
||||
}
|
||||
|
||||
return r0
|
||||
}
|
||||
|
||||
// Save provides a mock function with given fields: audit
|
||||
func (_m *AuditStore) Save(audit *model.Audit) *model.AppError {
|
||||
func (_m *AuditStore) Save(audit *model.Audit) error {
|
||||
ret := _m.Called(audit)
|
||||
|
||||
var r0 *model.AppError
|
||||
if rf, ok := ret.Get(0).(func(*model.Audit) *model.AppError); ok {
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(*model.Audit) error); ok {
|
||||
r0 = rf(audit)
|
||||
} else {
|
||||
if ret.Get(0) != nil {
|
||||
r0 = ret.Get(0).(*model.AppError)
|
||||
}
|
||||
r0 = ret.Error(0)
|
||||
}
|
||||
|
||||
return r0
|
||||
|
||||
Ссылка в новой задаче
Block a user