2023-09-12 17:08:17 +07:00
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
|
|
|
// Source: git.nochill.in/nochill/hiling_go/db/sqlc (interfaces: Store)
|
2024-02-06 11:55:25 +07:00
|
|
|
//
|
|
|
|
// Generated by this command:
|
|
|
|
//
|
|
|
|
// mockgen -package mockdb -destination db/mock/store.go git.nochill.in/nochill/hiling_go/db/sqlc Store
|
|
|
|
//
|
2023-09-12 17:08:17 +07:00
|
|
|
|
|
|
|
// Package mockdb is a generated GoMock package.
|
|
|
|
package mockdb
|
|
|
|
|
|
|
|
import (
|
|
|
|
context "context"
|
|
|
|
reflect "reflect"
|
|
|
|
|
|
|
|
db "git.nochill.in/nochill/hiling_go/db/sqlc"
|
2024-02-06 11:55:25 +07:00
|
|
|
pgtype "github.com/jackc/pgx/v5/pgtype"
|
2023-09-12 17:08:17 +07:00
|
|
|
gomock "go.uber.org/mock/gomock"
|
|
|
|
)
|
|
|
|
|
|
|
|
// MockStore is a mock of Store interface.
|
|
|
|
type MockStore struct {
|
|
|
|
ctrl *gomock.Controller
|
|
|
|
recorder *MockStoreMockRecorder
|
|
|
|
}
|
|
|
|
|
|
|
|
// MockStoreMockRecorder is the mock recorder for MockStore.
|
|
|
|
type MockStoreMockRecorder struct {
|
|
|
|
mock *MockStore
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewMockStore creates a new mock instance.
|
|
|
|
func NewMockStore(ctrl *gomock.Controller) *MockStore {
|
|
|
|
mock := &MockStore{ctrl: ctrl}
|
|
|
|
mock.recorder = &MockStoreMockRecorder{mock}
|
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
|
|
func (m *MockStore) EXPECT() *MockStoreMockRecorder {
|
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
2023-10-03 16:14:58 +07:00
|
|
|
// AddFollowUser mocks base method.
|
|
|
|
func (m *MockStore) AddFollowUser(arg0 context.Context, arg1 db.AddFollowUserParams) error {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "AddFollowUser", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// AddFollowUser indicates an expected call of AddFollowUser.
|
2024-02-06 11:55:25 +07:00
|
|
|
func (mr *MockStoreMockRecorder) AddFollowUser(arg0, arg1 any) *gomock.Call {
|
2023-10-03 16:14:58 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddFollowUser", reflect.TypeOf((*MockStore)(nil).AddFollowUser), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
2023-09-27 21:58:14 +07:00
|
|
|
// CheckIfReviewExists mocks base method.
|
|
|
|
func (m *MockStore) CheckIfReviewExists(arg0 context.Context, arg1 db.CheckIfReviewExistsParams) (int64, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "CheckIfReviewExists", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(int64)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// CheckIfReviewExists indicates an expected call of CheckIfReviewExists.
|
2024-02-06 11:55:25 +07:00
|
|
|
func (mr *MockStoreMockRecorder) CheckIfReviewExists(arg0, arg1 any) *gomock.Call {
|
2023-09-27 21:58:14 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CheckIfReviewExists", reflect.TypeOf((*MockStore)(nil).CheckIfReviewExists), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
2023-10-03 14:56:57 +07:00
|
|
|
// CreateImage mocks base method.
|
|
|
|
func (m *MockStore) CreateImage(arg0 context.Context, arg1 []db.CreateImageParams) error {
|
2023-09-13 21:42:04 +07:00
|
|
|
m.ctrl.T.Helper()
|
2023-10-03 14:56:57 +07:00
|
|
|
ret := m.ctrl.Call(m, "CreateImage", arg0, arg1)
|
2023-09-13 21:42:04 +07:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2023-10-03 14:56:57 +07:00
|
|
|
// CreateImage indicates an expected call of CreateImage.
|
2024-02-06 11:55:25 +07:00
|
|
|
func (mr *MockStoreMockRecorder) CreateImage(arg0, arg1 any) *gomock.Call {
|
2023-10-03 14:56:57 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateImage", reflect.TypeOf((*MockStore)(nil).CreateImage), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
|
|
|
// CreateLocation mocks base method.
|
|
|
|
func (m *MockStore) CreateLocation(arg0 context.Context, arg1 db.CreateLocationParams) (int32, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "CreateLocation", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(int32)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2023-09-13 21:42:04 +07:00
|
|
|
// CreateLocation indicates an expected call of CreateLocation.
|
2024-02-06 11:55:25 +07:00
|
|
|
func (mr *MockStoreMockRecorder) CreateLocation(arg0, arg1 any) *gomock.Call {
|
2023-09-13 21:42:04 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateLocation", reflect.TypeOf((*MockStore)(nil).CreateLocation), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
2023-10-03 19:44:31 +07:00
|
|
|
// CreateLocationTx mocks base method.
|
|
|
|
func (m *MockStore) CreateLocationTx(arg0 context.Context, arg1 db.CreateLocationTxParams) error {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "CreateLocationTx", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// CreateLocationTx indicates an expected call of CreateLocationTx.
|
2024-02-06 11:55:25 +07:00
|
|
|
func (mr *MockStoreMockRecorder) CreateLocationTx(arg0, arg1 any) *gomock.Call {
|
2023-10-03 19:44:31 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateLocationTx", reflect.TypeOf((*MockStore)(nil).CreateLocationTx), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
2023-10-11 16:31:52 +07:00
|
|
|
// CreateNewsEvents mocks base method.
|
|
|
|
func (m *MockStore) CreateNewsEvents(arg0 context.Context, arg1 db.CreateNewsEventsParams) error {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "CreateNewsEvents", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// CreateNewsEvents indicates an expected call of CreateNewsEvents.
|
2024-02-06 11:55:25 +07:00
|
|
|
func (mr *MockStoreMockRecorder) CreateNewsEvents(arg0, arg1 any) *gomock.Call {
|
2023-10-11 16:31:52 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateNewsEvents", reflect.TypeOf((*MockStore)(nil).CreateNewsEvents), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
2023-09-27 21:58:14 +07:00
|
|
|
// CreateReview mocks base method.
|
|
|
|
func (m *MockStore) CreateReview(arg0 context.Context, arg1 db.CreateReviewParams) (db.Review, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "CreateReview", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(db.Review)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// CreateReview indicates an expected call of CreateReview.
|
2024-02-06 11:55:25 +07:00
|
|
|
func (mr *MockStoreMockRecorder) CreateReview(arg0, arg1 any) *gomock.Call {
|
2023-09-27 21:58:14 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateReview", reflect.TypeOf((*MockStore)(nil).CreateReview), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
2023-09-21 21:38:41 +07:00
|
|
|
// CreateSession mocks base method.
|
|
|
|
func (m *MockStore) CreateSession(arg0 context.Context, arg1 db.CreateSessionParams) (db.UserSession, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "CreateSession", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(db.UserSession)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// CreateSession indicates an expected call of CreateSession.
|
2024-02-06 11:55:25 +07:00
|
|
|
func (mr *MockStoreMockRecorder) CreateSession(arg0, arg1 any) *gomock.Call {
|
2023-09-21 21:38:41 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateSession", reflect.TypeOf((*MockStore)(nil).CreateSession), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
2023-09-12 17:08:17 +07:00
|
|
|
// CreateUser mocks base method.
|
|
|
|
func (m *MockStore) CreateUser(arg0 context.Context, arg1 db.CreateUserParams) (db.User, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "CreateUser", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(db.User)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// CreateUser indicates an expected call of CreateUser.
|
2024-02-06 11:55:25 +07:00
|
|
|
func (mr *MockStoreMockRecorder) CreateUser(arg0, arg1 any) *gomock.Call {
|
2023-09-12 17:08:17 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateUser", reflect.TypeOf((*MockStore)(nil).CreateUser), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
2023-09-19 21:49:48 +07:00
|
|
|
// GetCountImageByLocation mocks base method.
|
|
|
|
func (m *MockStore) GetCountImageByLocation(arg0 context.Context, arg1 int32) (int64, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "GetCountImageByLocation", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(int64)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetCountImageByLocation indicates an expected call of GetCountImageByLocation.
|
2024-02-06 11:55:25 +07:00
|
|
|
func (mr *MockStoreMockRecorder) GetCountImageByLocation(arg0, arg1 any) *gomock.Call {
|
2023-09-19 21:49:48 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCountImageByLocation", reflect.TypeOf((*MockStore)(nil).GetCountImageByLocation), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
2024-08-19 07:40:01 +07:00
|
|
|
// GetCountLocations mocks base method.
|
|
|
|
func (m *MockStore) GetCountLocations(arg0 context.Context, arg1 db.GetCountLocationsParams) (int32, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "GetCountLocations", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(int32)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetCountLocations indicates an expected call of GetCountLocations.
|
|
|
|
func (mr *MockStoreMockRecorder) GetCountLocations(arg0, arg1 any) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCountLocations", reflect.TypeOf((*MockStore)(nil).GetCountLocations), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
2023-09-19 21:49:48 +07:00
|
|
|
// GetImagesByLocation mocks base method.
|
|
|
|
func (m *MockStore) GetImagesByLocation(arg0 context.Context, arg1 db.GetImagesByLocationParams) ([]db.GetImagesByLocationRow, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "GetImagesByLocation", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].([]db.GetImagesByLocationRow)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetImagesByLocation indicates an expected call of GetImagesByLocation.
|
2024-02-06 11:55:25 +07:00
|
|
|
func (mr *MockStoreMockRecorder) GetImagesByLocation(arg0, arg1 any) *gomock.Call {
|
2023-09-19 21:49:48 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetImagesByLocation", reflect.TypeOf((*MockStore)(nil).GetImagesByLocation), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
2023-09-27 21:58:14 +07:00
|
|
|
// GetListLocationReviews mocks base method.
|
|
|
|
func (m *MockStore) GetListLocationReviews(arg0 context.Context, arg1 db.GetListLocationReviewsParams) ([]db.GetListLocationReviewsRow, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "GetListLocationReviews", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].([]db.GetListLocationReviewsRow)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetListLocationReviews indicates an expected call of GetListLocationReviews.
|
2024-02-06 11:55:25 +07:00
|
|
|
func (mr *MockStoreMockRecorder) GetListLocationReviews(arg0, arg1 any) *gomock.Call {
|
2023-09-27 21:58:14 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetListLocationReviews", reflect.TypeOf((*MockStore)(nil).GetListLocationReviews), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
2023-09-13 21:42:04 +07:00
|
|
|
// GetListLocations mocks base method.
|
2023-09-14 13:49:03 +07:00
|
|
|
func (m *MockStore) GetListLocations(arg0 context.Context) ([]db.Location, error) {
|
2023-09-13 21:42:04 +07:00
|
|
|
m.ctrl.T.Helper()
|
2023-09-14 13:49:03 +07:00
|
|
|
ret := m.ctrl.Call(m, "GetListLocations", arg0)
|
2023-09-13 21:42:04 +07:00
|
|
|
ret0, _ := ret[0].([]db.Location)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetListLocations indicates an expected call of GetListLocations.
|
2024-02-06 11:55:25 +07:00
|
|
|
func (mr *MockStoreMockRecorder) GetListLocations(arg0 any) *gomock.Call {
|
2023-09-13 21:42:04 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2023-09-14 13:49:03 +07:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetListLocations", reflect.TypeOf((*MockStore)(nil).GetListLocations), arg0)
|
2023-09-13 21:42:04 +07:00
|
|
|
}
|
|
|
|
|
2023-10-02 08:49:41 +07:00
|
|
|
// GetListProvinces mocks base method.
|
|
|
|
func (m *MockStore) GetListProvinces(arg0 context.Context) ([]db.GetListProvincesRow, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "GetListProvinces", arg0)
|
|
|
|
ret0, _ := ret[0].([]db.GetListProvincesRow)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetListProvinces indicates an expected call of GetListProvinces.
|
2024-02-06 11:55:25 +07:00
|
|
|
func (mr *MockStoreMockRecorder) GetListProvinces(arg0 any) *gomock.Call {
|
2023-10-02 08:49:41 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetListProvinces", reflect.TypeOf((*MockStore)(nil).GetListProvinces), arg0)
|
|
|
|
}
|
|
|
|
|
2023-09-14 22:51:01 +07:00
|
|
|
// GetListRecentLocationsWithRatings mocks base method.
|
2024-03-16 19:23:15 +07:00
|
|
|
func (m *MockStore) GetListRecentLocationsWithRatings(arg0 context.Context, arg1 db.GetListRecentLocationsParams) ([]db.GetListRecentLocationsWithRatingsRow, error) {
|
2023-09-14 22:51:01 +07:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "GetListRecentLocationsWithRatings", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].([]db.GetListRecentLocationsWithRatingsRow)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetListRecentLocationsWithRatings indicates an expected call of GetListRecentLocationsWithRatings.
|
2024-02-06 11:55:25 +07:00
|
|
|
func (mr *MockStoreMockRecorder) GetListRecentLocationsWithRatings(arg0, arg1 any) *gomock.Call {
|
2023-09-14 22:51:01 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetListRecentLocationsWithRatings", reflect.TypeOf((*MockStore)(nil).GetListRecentLocationsWithRatings), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
2023-10-02 08:49:41 +07:00
|
|
|
// GetListRegencies mocks base method.
|
|
|
|
func (m *MockStore) GetListRegencies(arg0 context.Context) ([]db.GetListRegenciesRow, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "GetListRegencies", arg0)
|
|
|
|
ret0, _ := ret[0].([]db.GetListRegenciesRow)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetListRegencies indicates an expected call of GetListRegencies.
|
2024-02-06 11:55:25 +07:00
|
|
|
func (mr *MockStoreMockRecorder) GetListRegencies(arg0 any) *gomock.Call {
|
2023-10-02 08:49:41 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetListRegencies", reflect.TypeOf((*MockStore)(nil).GetListRegencies), arg0)
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetListRegions mocks base method.
|
|
|
|
func (m *MockStore) GetListRegions(arg0 context.Context) ([]db.GetListRegionsRow, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "GetListRegions", arg0)
|
|
|
|
ret0, _ := ret[0].([]db.GetListRegionsRow)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetListRegions indicates an expected call of GetListRegions.
|
2024-02-06 11:55:25 +07:00
|
|
|
func (mr *MockStoreMockRecorder) GetListRegions(arg0 any) *gomock.Call {
|
2023-10-02 08:49:41 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetListRegions", reflect.TypeOf((*MockStore)(nil).GetListRegions), arg0)
|
|
|
|
}
|
|
|
|
|
2023-09-13 21:42:04 +07:00
|
|
|
// GetLocation mocks base method.
|
2023-09-19 21:49:48 +07:00
|
|
|
func (m *MockStore) GetLocation(arg0 context.Context, arg1 int32) (db.GetLocationRow, error) {
|
2023-09-13 21:42:04 +07:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "GetLocation", arg0, arg1)
|
2023-09-19 21:49:48 +07:00
|
|
|
ret0, _ := ret[0].(db.GetLocationRow)
|
2023-09-13 21:42:04 +07:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetLocation indicates an expected call of GetLocation.
|
2024-02-06 11:55:25 +07:00
|
|
|
func (mr *MockStoreMockRecorder) GetLocation(arg0, arg1 any) *gomock.Call {
|
2023-09-13 21:42:04 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLocation", reflect.TypeOf((*MockStore)(nil).GetLocation), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
2023-09-20 13:37:14 +07:00
|
|
|
// GetLocationTag mocks base method.
|
|
|
|
func (m *MockStore) GetLocationTag(arg0 context.Context, arg1 int32) ([]string, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "GetLocationTag", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].([]string)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetLocationTag indicates an expected call of GetLocationTag.
|
2024-02-06 11:55:25 +07:00
|
|
|
func (mr *MockStoreMockRecorder) GetLocationTag(arg0, arg1 any) *gomock.Call {
|
2023-09-20 13:37:14 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLocationTag", reflect.TypeOf((*MockStore)(nil).GetLocationTag), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
2023-10-11 16:31:52 +07:00
|
|
|
// GetNewsEventsList mocks base method.
|
|
|
|
func (m *MockStore) GetNewsEventsList(arg0 context.Context, arg1 db.GetNewsEventsListParams) ([]db.NewsEventRow, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "GetNewsEventsList", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].([]db.NewsEventRow)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetNewsEventsList indicates an expected call of GetNewsEventsList.
|
2024-02-06 11:55:25 +07:00
|
|
|
func (mr *MockStoreMockRecorder) GetNewsEventsList(arg0, arg1 any) *gomock.Call {
|
2023-10-11 16:31:52 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNewsEventsList", reflect.TypeOf((*MockStore)(nil).GetNewsEventsList), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
2023-09-21 21:38:41 +07:00
|
|
|
// GetSession mocks base method.
|
|
|
|
func (m *MockStore) GetSession(arg0 context.Context, arg1 int32) (db.UserSession, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "GetSession", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(db.UserSession)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetSession indicates an expected call of GetSession.
|
2024-02-06 11:55:25 +07:00
|
|
|
func (mr *MockStoreMockRecorder) GetSession(arg0, arg1 any) *gomock.Call {
|
2023-09-21 21:38:41 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSession", reflect.TypeOf((*MockStore)(nil).GetSession), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
2023-09-17 16:32:48 +07:00
|
|
|
// GetTopListLocations mocks base method.
|
|
|
|
func (m *MockStore) GetTopListLocations(arg0 context.Context, arg1 db.GetTopListLocationsParams) ([]db.GetTopListLocationsRow, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "GetTopListLocations", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].([]db.GetTopListLocationsRow)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetTopListLocations indicates an expected call of GetTopListLocations.
|
2024-02-06 11:55:25 +07:00
|
|
|
func (mr *MockStoreMockRecorder) GetTopListLocations(arg0, arg1 any) *gomock.Call {
|
2023-09-17 16:32:48 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTopListLocations", reflect.TypeOf((*MockStore)(nil).GetTopListLocations), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
2023-09-21 21:38:41 +07:00
|
|
|
// GetUser mocks base method.
|
2023-09-23 15:24:21 +07:00
|
|
|
func (m *MockStore) GetUser(arg0 context.Context, arg1 string) (db.GetUserRow, error) {
|
2023-09-21 21:38:41 +07:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "GetUser", arg0, arg1)
|
2023-09-23 15:24:21 +07:00
|
|
|
ret0, _ := ret[0].(db.GetUserRow)
|
2023-09-21 21:38:41 +07:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetUser indicates an expected call of GetUser.
|
2024-02-06 11:55:25 +07:00
|
|
|
func (mr *MockStoreMockRecorder) GetUser(arg0, arg1 any) *gomock.Call {
|
2023-09-21 21:38:41 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUser", reflect.TypeOf((*MockStore)(nil).GetUser), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
2023-09-27 21:58:14 +07:00
|
|
|
// GetUserReviewByLocation mocks base method.
|
|
|
|
func (m *MockStore) GetUserReviewByLocation(arg0 context.Context, arg1 db.GetUserReviewByLocationParams) (db.GetUserReviewByLocationRow, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "GetUserReviewByLocation", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(db.GetUserReviewByLocationRow)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetUserReviewByLocation indicates an expected call of GetUserReviewByLocation.
|
2024-02-06 11:55:25 +07:00
|
|
|
func (mr *MockStoreMockRecorder) GetUserReviewByLocation(arg0, arg1 any) *gomock.Call {
|
2023-09-27 21:58:14 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUserReviewByLocation", reflect.TypeOf((*MockStore)(nil).GetUserReviewByLocation), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
2023-10-04 19:51:29 +07:00
|
|
|
// GetUserStats mocks base method.
|
|
|
|
func (m *MockStore) GetUserStats(arg0 context.Context, arg1 int32) (db.GetUserStatsRow, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "GetUserStats", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(db.GetUserStatsRow)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetUserStats indicates an expected call of GetUserStats.
|
2024-02-06 11:55:25 +07:00
|
|
|
func (mr *MockStoreMockRecorder) GetUserStats(arg0, arg1 any) *gomock.Call {
|
2023-10-04 19:51:29 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUserStats", reflect.TypeOf((*MockStore)(nil).GetUserStats), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
2023-10-03 16:14:58 +07:00
|
|
|
// RemoveFollowUser mocks base method.
|
|
|
|
func (m *MockStore) RemoveFollowUser(arg0 context.Context, arg1 db.RemoveFollowUserParams) error {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "RemoveFollowUser", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// RemoveFollowUser indicates an expected call of RemoveFollowUser.
|
2024-02-06 11:55:25 +07:00
|
|
|
func (mr *MockStoreMockRecorder) RemoveFollowUser(arg0, arg1 any) *gomock.Call {
|
2023-10-03 16:14:58 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveFollowUser", reflect.TypeOf((*MockStore)(nil).RemoveFollowUser), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
2023-10-09 16:25:39 +07:00
|
|
|
// UpdateAvatar mocks base method.
|
2024-02-06 11:55:25 +07:00
|
|
|
func (m *MockStore) UpdateAvatar(arg0 context.Context, arg1 db.UpdateAvatarParams) (pgtype.Text, error) {
|
2023-10-09 16:25:39 +07:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "UpdateAvatar", arg0, arg1)
|
2024-02-06 11:55:25 +07:00
|
|
|
ret0, _ := ret[0].(pgtype.Text)
|
2023-10-09 16:25:39 +07:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// UpdateAvatar indicates an expected call of UpdateAvatar.
|
2024-02-06 11:55:25 +07:00
|
|
|
func (mr *MockStoreMockRecorder) UpdateAvatar(arg0, arg1 any) *gomock.Call {
|
2023-10-09 16:25:39 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateAvatar", reflect.TypeOf((*MockStore)(nil).UpdateAvatar), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
2023-10-03 19:44:31 +07:00
|
|
|
// UpdateLocationThumbnail mocks base method.
|
|
|
|
func (m *MockStore) UpdateLocationThumbnail(arg0 context.Context, arg1 db.UpdateLocationThumbnailParams) error {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "UpdateLocationThumbnail", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// UpdateLocationThumbnail indicates an expected call of UpdateLocationThumbnail.
|
2024-02-06 11:55:25 +07:00
|
|
|
func (mr *MockStoreMockRecorder) UpdateLocationThumbnail(arg0, arg1 any) *gomock.Call {
|
2023-10-03 19:44:31 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateLocationThumbnail", reflect.TypeOf((*MockStore)(nil).UpdateLocationThumbnail), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
2023-09-12 17:08:17 +07:00
|
|
|
// UpdatePassword mocks base method.
|
|
|
|
func (m *MockStore) UpdatePassword(arg0 context.Context, arg1 db.UpdatePasswordParams) error {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "UpdatePassword", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// UpdatePassword indicates an expected call of UpdatePassword.
|
2024-02-06 11:55:25 +07:00
|
|
|
func (mr *MockStoreMockRecorder) UpdatePassword(arg0, arg1 any) *gomock.Call {
|
2023-09-12 17:08:17 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatePassword", reflect.TypeOf((*MockStore)(nil).UpdatePassword), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UpdateUser mocks base method.
|
2023-10-09 16:25:39 +07:00
|
|
|
func (m *MockStore) UpdateUser(arg0 context.Context, arg1 db.UpdateUserParams) (db.UpdateUserRow, error) {
|
2023-09-12 17:08:17 +07:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "UpdateUser", arg0, arg1)
|
2023-10-09 16:25:39 +07:00
|
|
|
ret0, _ := ret[0].(db.UpdateUserRow)
|
2023-09-12 17:08:17 +07:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// UpdateUser indicates an expected call of UpdateUser.
|
2024-02-06 11:55:25 +07:00
|
|
|
func (mr *MockStoreMockRecorder) UpdateUser(arg0, arg1 any) *gomock.Call {
|
2023-09-12 17:08:17 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateUser", reflect.TypeOf((*MockStore)(nil).UpdateUser), arg0, arg1)
|
|
|
|
}
|