Documentation ¶
Overview ¶
Package userItemBox ユーザーアイテムボックス
Package userItemBox is a generated GoMock package.
Package userItemBox ユーザーアイテムボックス ¶
Package userItemBox ユーザーアイテムボックス ¶
Package userItemBox is a generated GoMock package.
Index ¶
- type MockUserItemBoxCloudWatchRepository
- func (m_2 *MockUserItemBoxCloudWatchRepository) Create(ctx context.Context, now time.Time, level cloudwatch.LogLevel, m *UserItemBox)
- func (m *MockUserItemBoxCloudWatchRepository) CreateList(ctx context.Context, now time.Time, level cloudwatch.LogLevel, ...)
- func (m *MockUserItemBoxCloudWatchRepository) EXPECT() *MockUserItemBoxCloudWatchRepositoryMockRecorder
- type MockUserItemBoxCloudWatchRepositoryMockRecorder
- type MockUserItemBoxMysqlRepository
- func (m_2 *MockUserItemBoxMysqlRepository) Create(ctx context.Context, tx *gorm.DB, m *UserItemBox) (*UserItemBox, error)
- func (m *MockUserItemBoxMysqlRepository) CreateList(ctx context.Context, tx *gorm.DB, ms UserItemBoxes) (UserItemBoxes, error)
- func (m_2 *MockUserItemBoxMysqlRepository) Delete(ctx context.Context, tx *gorm.DB, m *UserItemBox) error
- func (m *MockUserItemBoxMysqlRepository) DeleteList(ctx context.Context, tx *gorm.DB, ms UserItemBoxes) error
- func (m *MockUserItemBoxMysqlRepository) EXPECT() *MockUserItemBoxMysqlRepositoryMockRecorder
- func (m *MockUserItemBoxMysqlRepository) Find(ctx context.Context, userId string, masterItemId int64) (*UserItemBox, error)
- func (m *MockUserItemBoxMysqlRepository) FindList(ctx context.Context, userId string) (UserItemBoxes, error)
- func (m *MockUserItemBoxMysqlRepository) FindOrNil(ctx context.Context, userId string, masterItemId int64) (*UserItemBox, error)
- func (m_2 *MockUserItemBoxMysqlRepository) Update(ctx context.Context, tx *gorm.DB, m *UserItemBox) (*UserItemBox, error)
- func (m *MockUserItemBoxMysqlRepository) UpdateList(ctx context.Context, tx *gorm.DB, ms UserItemBoxes) (UserItemBoxes, error)
- type MockUserItemBoxMysqlRepositoryMockRecorder
- func (mr *MockUserItemBoxMysqlRepositoryMockRecorder) Create(ctx, tx, m interface{}) *gomock.Call
- func (mr *MockUserItemBoxMysqlRepositoryMockRecorder) CreateList(ctx, tx, ms interface{}) *gomock.Call
- func (mr *MockUserItemBoxMysqlRepositoryMockRecorder) Delete(ctx, tx, m interface{}) *gomock.Call
- func (mr *MockUserItemBoxMysqlRepositoryMockRecorder) DeleteList(ctx, tx, ms interface{}) *gomock.Call
- func (mr *MockUserItemBoxMysqlRepositoryMockRecorder) Find(ctx, userId, masterItemId interface{}) *gomock.Call
- func (mr *MockUserItemBoxMysqlRepositoryMockRecorder) FindList(ctx, userId interface{}) *gomock.Call
- func (mr *MockUserItemBoxMysqlRepositoryMockRecorder) FindOrNil(ctx, userId, masterItemId interface{}) *gomock.Call
- func (mr *MockUserItemBoxMysqlRepositoryMockRecorder) Update(ctx, tx, m interface{}) *gomock.Call
- func (mr *MockUserItemBoxMysqlRepositoryMockRecorder) UpdateList(ctx, tx, ms interface{}) *gomock.Call
- type UserItemBox
- type UserItemBoxCloudWatchRepository
- type UserItemBoxMysqlRepository
- type UserItemBoxes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockUserItemBoxCloudWatchRepository ¶
type MockUserItemBoxCloudWatchRepository struct {
// contains filtered or unexported fields
}
MockUserItemBoxCloudWatchRepository is a mock of UserItemBoxCloudWatchRepository interface.
func NewMockUserItemBoxCloudWatchRepository ¶
func NewMockUserItemBoxCloudWatchRepository(ctrl *gomock.Controller) *MockUserItemBoxCloudWatchRepository
NewMockUserItemBoxCloudWatchRepository creates a new mock instance.
func (*MockUserItemBoxCloudWatchRepository) Create ¶
func (m_2 *MockUserItemBoxCloudWatchRepository) Create(ctx context.Context, now time.Time, level cloudwatch.LogLevel, m *UserItemBox)
Create mocks base method.
func (*MockUserItemBoxCloudWatchRepository) CreateList ¶
func (m *MockUserItemBoxCloudWatchRepository) CreateList(ctx context.Context, now time.Time, level cloudwatch.LogLevel, ms UserItemBoxes)
CreateList mocks base method.
func (*MockUserItemBoxCloudWatchRepository) EXPECT ¶
func (m *MockUserItemBoxCloudWatchRepository) EXPECT() *MockUserItemBoxCloudWatchRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockUserItemBoxCloudWatchRepositoryMockRecorder ¶
type MockUserItemBoxCloudWatchRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockUserItemBoxCloudWatchRepositoryMockRecorder is the mock recorder for MockUserItemBoxCloudWatchRepository.
func (*MockUserItemBoxCloudWatchRepositoryMockRecorder) Create ¶
func (mr *MockUserItemBoxCloudWatchRepositoryMockRecorder) Create(ctx, now, level, m interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockUserItemBoxCloudWatchRepositoryMockRecorder) CreateList ¶
func (mr *MockUserItemBoxCloudWatchRepositoryMockRecorder) CreateList(ctx, now, level, ms interface{}) *gomock.Call
CreateList indicates an expected call of CreateList.
type MockUserItemBoxMysqlRepository ¶
type MockUserItemBoxMysqlRepository struct {
// contains filtered or unexported fields
}
MockUserItemBoxMysqlRepository is a mock of UserItemBoxMysqlRepository interface.
func NewMockUserItemBoxMysqlRepository ¶
func NewMockUserItemBoxMysqlRepository(ctrl *gomock.Controller) *MockUserItemBoxMysqlRepository
NewMockUserItemBoxMysqlRepository creates a new mock instance.
func (*MockUserItemBoxMysqlRepository) Create ¶
func (m_2 *MockUserItemBoxMysqlRepository) Create(ctx context.Context, tx *gorm.DB, m *UserItemBox) (*UserItemBox, error)
Create mocks base method.
func (*MockUserItemBoxMysqlRepository) CreateList ¶
func (m *MockUserItemBoxMysqlRepository) CreateList(ctx context.Context, tx *gorm.DB, ms UserItemBoxes) (UserItemBoxes, error)
CreateList mocks base method.
func (*MockUserItemBoxMysqlRepository) Delete ¶
func (m_2 *MockUserItemBoxMysqlRepository) Delete(ctx context.Context, tx *gorm.DB, m *UserItemBox) error
Delete mocks base method.
func (*MockUserItemBoxMysqlRepository) DeleteList ¶
func (m *MockUserItemBoxMysqlRepository) DeleteList(ctx context.Context, tx *gorm.DB, ms UserItemBoxes) error
DeleteList mocks base method.
func (*MockUserItemBoxMysqlRepository) EXPECT ¶
func (m *MockUserItemBoxMysqlRepository) EXPECT() *MockUserItemBoxMysqlRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUserItemBoxMysqlRepository) Find ¶
func (m *MockUserItemBoxMysqlRepository) Find(ctx context.Context, userId string, masterItemId int64) (*UserItemBox, error)
Find mocks base method.
func (*MockUserItemBoxMysqlRepository) FindList ¶
func (m *MockUserItemBoxMysqlRepository) FindList(ctx context.Context, userId string) (UserItemBoxes, error)
FindList mocks base method.
func (*MockUserItemBoxMysqlRepository) FindOrNil ¶
func (m *MockUserItemBoxMysqlRepository) FindOrNil(ctx context.Context, userId string, masterItemId int64) (*UserItemBox, error)
FindOrNil mocks base method.
func (*MockUserItemBoxMysqlRepository) Update ¶
func (m_2 *MockUserItemBoxMysqlRepository) Update(ctx context.Context, tx *gorm.DB, m *UserItemBox) (*UserItemBox, error)
Update mocks base method.
func (*MockUserItemBoxMysqlRepository) UpdateList ¶
func (m *MockUserItemBoxMysqlRepository) UpdateList(ctx context.Context, tx *gorm.DB, ms UserItemBoxes) (UserItemBoxes, error)
UpdateList mocks base method.
type MockUserItemBoxMysqlRepositoryMockRecorder ¶
type MockUserItemBoxMysqlRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockUserItemBoxMysqlRepositoryMockRecorder is the mock recorder for MockUserItemBoxMysqlRepository.
func (*MockUserItemBoxMysqlRepositoryMockRecorder) Create ¶
func (mr *MockUserItemBoxMysqlRepositoryMockRecorder) Create(ctx, tx, m interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockUserItemBoxMysqlRepositoryMockRecorder) CreateList ¶
func (mr *MockUserItemBoxMysqlRepositoryMockRecorder) CreateList(ctx, tx, ms interface{}) *gomock.Call
CreateList indicates an expected call of CreateList.
func (*MockUserItemBoxMysqlRepositoryMockRecorder) Delete ¶
func (mr *MockUserItemBoxMysqlRepositoryMockRecorder) Delete(ctx, tx, m interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockUserItemBoxMysqlRepositoryMockRecorder) DeleteList ¶
func (mr *MockUserItemBoxMysqlRepositoryMockRecorder) DeleteList(ctx, tx, ms interface{}) *gomock.Call
DeleteList indicates an expected call of DeleteList.
func (*MockUserItemBoxMysqlRepositoryMockRecorder) Find ¶
func (mr *MockUserItemBoxMysqlRepositoryMockRecorder) Find(ctx, userId, masterItemId interface{}) *gomock.Call
Find indicates an expected call of Find.
func (*MockUserItemBoxMysqlRepositoryMockRecorder) FindList ¶
func (mr *MockUserItemBoxMysqlRepositoryMockRecorder) FindList(ctx, userId interface{}) *gomock.Call
FindList indicates an expected call of FindList.
func (*MockUserItemBoxMysqlRepositoryMockRecorder) FindOrNil ¶
func (mr *MockUserItemBoxMysqlRepositoryMockRecorder) FindOrNil(ctx, userId, masterItemId interface{}) *gomock.Call
FindOrNil indicates an expected call of FindOrNil.
func (*MockUserItemBoxMysqlRepositoryMockRecorder) Update ¶
func (mr *MockUserItemBoxMysqlRepositoryMockRecorder) Update(ctx, tx, m interface{}) *gomock.Call
Update indicates an expected call of Update.
func (*MockUserItemBoxMysqlRepositoryMockRecorder) UpdateList ¶
func (mr *MockUserItemBoxMysqlRepositoryMockRecorder) UpdateList(ctx, tx, ms interface{}) *gomock.Call
UpdateList indicates an expected call of UpdateList.
type UserItemBox ¶
func NewUserItemBox ¶
func NewUserItemBox() *UserItemBox
func SetUserItemBox ¶
func SetUserItemBox(userId string, masterItemId int64, count int32) *UserItemBox
type UserItemBoxCloudWatchRepository ¶
type UserItemBoxCloudWatchRepository interface { Create(ctx context.Context, now time.Time, level cloudwatch.LogLevel, m *UserItemBox) CreateList(ctx context.Context, now time.Time, level cloudwatch.LogLevel, ms UserItemBoxes) }
type UserItemBoxMysqlRepository ¶
type UserItemBoxMysqlRepository interface { Find(ctx context.Context, userId string, masterItemId int64) (*UserItemBox, error) FindOrNil(ctx context.Context, userId string, masterItemId int64) (*UserItemBox, error) FindList(ctx context.Context, userId string) (UserItemBoxes, error) Create(ctx context.Context, tx *gorm.DB, m *UserItemBox) (*UserItemBox, error) CreateList(ctx context.Context, tx *gorm.DB, ms UserItemBoxes) (UserItemBoxes, error) Update(ctx context.Context, tx *gorm.DB, m *UserItemBox) (*UserItemBox, error) UpdateList(ctx context.Context, tx *gorm.DB, ms UserItemBoxes) (UserItemBoxes, error) Delete(ctx context.Context, tx *gorm.DB, m *UserItemBox) error DeleteList(ctx context.Context, tx *gorm.DB, ms UserItemBoxes) error }
type UserItemBoxes ¶
type UserItemBoxes []*UserItemBox
func NewUserItemBoxes ¶
func NewUserItemBoxes() UserItemBoxes
func (UserItemBoxes) SetUserItemBoxExistingMaps ¶
func (s UserItemBoxes) SetUserItemBoxExistingMaps() map[int64]bool
SetUserItemBoxExistingMaps 過去に受け取ったことがあるアイテムをboolにする(key=masterItemId, value=過去に受け取ったことがある)
func (UserItemBoxes) SetUserItemBoxMaps ¶
func (s UserItemBoxes) SetUserItemBoxMaps() map[int64]*UserItemBox
SetUserItemBoxMaps Mapにする(key=masterItemId, value=UserItemBox)