Documentation ¶
Overview ¶
Package userExchangeItem ユーザー交換アイテム
Package userExchangeItem ユーザー交換アイテム ¶
Package userExchangeItem is a generated GoMock package.
Index ¶
- type MockUserExchangeItemMysqlRepository
- func (m_2 *MockUserExchangeItemMysqlRepository) Create(ctx context.Context, tx *gorm.DB, m *UserExchangeItem) (*UserExchangeItem, error)
- func (m *MockUserExchangeItemMysqlRepository) CreateList(ctx context.Context, tx *gorm.DB, ms UserExchangeItems) (UserExchangeItems, error)
- func (m_2 *MockUserExchangeItemMysqlRepository) Delete(ctx context.Context, tx *gorm.DB, m *UserExchangeItem) error
- func (m *MockUserExchangeItemMysqlRepository) DeleteList(ctx context.Context, tx *gorm.DB, ms UserExchangeItems) error
- func (m *MockUserExchangeItemMysqlRepository) EXPECT() *MockUserExchangeItemMysqlRepositoryMockRecorder
- func (m *MockUserExchangeItemMysqlRepository) Find(ctx context.Context, userId string, masterExchangeItemId int64) (*UserExchangeItem, error)
- func (m *MockUserExchangeItemMysqlRepository) FindByUserIdAndMasterExchangeId(ctx context.Context, userId string, masterExchangeId int64) (*UserExchangeItem, error)
- func (m *MockUserExchangeItemMysqlRepository) FindByUserIdAndMasterExchangeItemId(ctx context.Context, userId string, masterExchangeItemId int64) (*UserExchangeItem, error)
- func (m *MockUserExchangeItemMysqlRepository) FindList(ctx context.Context, userId string) (UserExchangeItems, error)
- func (m *MockUserExchangeItemMysqlRepository) FindListByUserIdAndMasterExchangeId(ctx context.Context, userId string, masterExchangeId int64) (UserExchangeItems, error)
- func (m *MockUserExchangeItemMysqlRepository) FindListByUserIdAndMasterExchangeItemId(ctx context.Context, userId string, masterExchangeItemId int64) (UserExchangeItems, error)
- func (m *MockUserExchangeItemMysqlRepository) FindOrNil(ctx context.Context, userId string, masterExchangeItemId int64) (*UserExchangeItem, error)
- func (m *MockUserExchangeItemMysqlRepository) FindOrNilByUserIdAndMasterExchangeId(ctx context.Context, userId string, masterExchangeId int64) (*UserExchangeItem, error)
- func (m *MockUserExchangeItemMysqlRepository) FindOrNilByUserIdAndMasterExchangeItemId(ctx context.Context, userId string, masterExchangeItemId int64) (*UserExchangeItem, error)
- func (m_2 *MockUserExchangeItemMysqlRepository) Update(ctx context.Context, tx *gorm.DB, m *UserExchangeItem) (*UserExchangeItem, error)
- func (m *MockUserExchangeItemMysqlRepository) UpdateList(ctx context.Context, tx *gorm.DB, ms UserExchangeItems) (UserExchangeItems, error)
- type MockUserExchangeItemMysqlRepositoryMockRecorder
- func (mr *MockUserExchangeItemMysqlRepositoryMockRecorder) Create(ctx, tx, m interface{}) *gomock.Call
- func (mr *MockUserExchangeItemMysqlRepositoryMockRecorder) CreateList(ctx, tx, ms interface{}) *gomock.Call
- func (mr *MockUserExchangeItemMysqlRepositoryMockRecorder) Delete(ctx, tx, m interface{}) *gomock.Call
- func (mr *MockUserExchangeItemMysqlRepositoryMockRecorder) DeleteList(ctx, tx, ms interface{}) *gomock.Call
- func (mr *MockUserExchangeItemMysqlRepositoryMockRecorder) Find(ctx, userId, masterExchangeItemId interface{}) *gomock.Call
- func (mr *MockUserExchangeItemMysqlRepositoryMockRecorder) FindByUserIdAndMasterExchangeId(ctx, userId, masterExchangeId interface{}) *gomock.Call
- func (mr *MockUserExchangeItemMysqlRepositoryMockRecorder) FindByUserIdAndMasterExchangeItemId(ctx, userId, masterExchangeItemId interface{}) *gomock.Call
- func (mr *MockUserExchangeItemMysqlRepositoryMockRecorder) FindList(ctx, userId interface{}) *gomock.Call
- func (mr *MockUserExchangeItemMysqlRepositoryMockRecorder) FindListByUserIdAndMasterExchangeId(ctx, userId, masterExchangeId interface{}) *gomock.Call
- func (mr *MockUserExchangeItemMysqlRepositoryMockRecorder) FindListByUserIdAndMasterExchangeItemId(ctx, userId, masterExchangeItemId interface{}) *gomock.Call
- func (mr *MockUserExchangeItemMysqlRepositoryMockRecorder) FindOrNil(ctx, userId, masterExchangeItemId interface{}) *gomock.Call
- func (mr *MockUserExchangeItemMysqlRepositoryMockRecorder) FindOrNilByUserIdAndMasterExchangeId(ctx, userId, masterExchangeId interface{}) *gomock.Call
- func (mr *MockUserExchangeItemMysqlRepositoryMockRecorder) FindOrNilByUserIdAndMasterExchangeItemId(ctx, userId, masterExchangeItemId interface{}) *gomock.Call
- func (mr *MockUserExchangeItemMysqlRepositoryMockRecorder) Update(ctx, tx, m interface{}) *gomock.Call
- func (mr *MockUserExchangeItemMysqlRepositoryMockRecorder) UpdateList(ctx, tx, ms interface{}) *gomock.Call
- type UserExchangeItem
- type UserExchangeItemMysqlRepository
- type UserExchangeItems
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockUserExchangeItemMysqlRepository ¶
type MockUserExchangeItemMysqlRepository struct {
// contains filtered or unexported fields
}
MockUserExchangeItemMysqlRepository is a mock of UserExchangeItemMysqlRepository interface.
func NewMockUserExchangeItemMysqlRepository ¶
func NewMockUserExchangeItemMysqlRepository(ctrl *gomock.Controller) *MockUserExchangeItemMysqlRepository
NewMockUserExchangeItemMysqlRepository creates a new mock instance.
func (*MockUserExchangeItemMysqlRepository) Create ¶
func (m_2 *MockUserExchangeItemMysqlRepository) Create(ctx context.Context, tx *gorm.DB, m *UserExchangeItem) (*UserExchangeItem, error)
Create mocks base method.
func (*MockUserExchangeItemMysqlRepository) CreateList ¶
func (m *MockUserExchangeItemMysqlRepository) CreateList(ctx context.Context, tx *gorm.DB, ms UserExchangeItems) (UserExchangeItems, error)
CreateList mocks base method.
func (*MockUserExchangeItemMysqlRepository) Delete ¶
func (m_2 *MockUserExchangeItemMysqlRepository) Delete(ctx context.Context, tx *gorm.DB, m *UserExchangeItem) error
Delete mocks base method.
func (*MockUserExchangeItemMysqlRepository) DeleteList ¶
func (m *MockUserExchangeItemMysqlRepository) DeleteList(ctx context.Context, tx *gorm.DB, ms UserExchangeItems) error
DeleteList mocks base method.
func (*MockUserExchangeItemMysqlRepository) EXPECT ¶
func (m *MockUserExchangeItemMysqlRepository) EXPECT() *MockUserExchangeItemMysqlRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUserExchangeItemMysqlRepository) Find ¶
func (m *MockUserExchangeItemMysqlRepository) Find(ctx context.Context, userId string, masterExchangeItemId int64) (*UserExchangeItem, error)
Find mocks base method.
func (*MockUserExchangeItemMysqlRepository) FindByUserIdAndMasterExchangeId ¶
func (m *MockUserExchangeItemMysqlRepository) FindByUserIdAndMasterExchangeId(ctx context.Context, userId string, masterExchangeId int64) (*UserExchangeItem, error)
FindByUserIdAndMasterExchangeId mocks base method.
func (*MockUserExchangeItemMysqlRepository) FindByUserIdAndMasterExchangeItemId ¶
func (m *MockUserExchangeItemMysqlRepository) FindByUserIdAndMasterExchangeItemId(ctx context.Context, userId string, masterExchangeItemId int64) (*UserExchangeItem, error)
FindByUserIdAndMasterExchangeItemId mocks base method.
func (*MockUserExchangeItemMysqlRepository) FindList ¶
func (m *MockUserExchangeItemMysqlRepository) FindList(ctx context.Context, userId string) (UserExchangeItems, error)
FindList mocks base method.
func (*MockUserExchangeItemMysqlRepository) FindListByUserIdAndMasterExchangeId ¶
func (m *MockUserExchangeItemMysqlRepository) FindListByUserIdAndMasterExchangeId(ctx context.Context, userId string, masterExchangeId int64) (UserExchangeItems, error)
FindListByUserIdAndMasterExchangeId mocks base method.
func (*MockUserExchangeItemMysqlRepository) FindListByUserIdAndMasterExchangeItemId ¶
func (m *MockUserExchangeItemMysqlRepository) FindListByUserIdAndMasterExchangeItemId(ctx context.Context, userId string, masterExchangeItemId int64) (UserExchangeItems, error)
FindListByUserIdAndMasterExchangeItemId mocks base method.
func (*MockUserExchangeItemMysqlRepository) FindOrNil ¶
func (m *MockUserExchangeItemMysqlRepository) FindOrNil(ctx context.Context, userId string, masterExchangeItemId int64) (*UserExchangeItem, error)
FindOrNil mocks base method.
func (*MockUserExchangeItemMysqlRepository) FindOrNilByUserIdAndMasterExchangeId ¶
func (m *MockUserExchangeItemMysqlRepository) FindOrNilByUserIdAndMasterExchangeId(ctx context.Context, userId string, masterExchangeId int64) (*UserExchangeItem, error)
FindOrNilByUserIdAndMasterExchangeId mocks base method.
func (*MockUserExchangeItemMysqlRepository) FindOrNilByUserIdAndMasterExchangeItemId ¶
func (m *MockUserExchangeItemMysqlRepository) FindOrNilByUserIdAndMasterExchangeItemId(ctx context.Context, userId string, masterExchangeItemId int64) (*UserExchangeItem, error)
FindOrNilByUserIdAndMasterExchangeItemId mocks base method.
func (*MockUserExchangeItemMysqlRepository) Update ¶
func (m_2 *MockUserExchangeItemMysqlRepository) Update(ctx context.Context, tx *gorm.DB, m *UserExchangeItem) (*UserExchangeItem, error)
Update mocks base method.
func (*MockUserExchangeItemMysqlRepository) UpdateList ¶
func (m *MockUserExchangeItemMysqlRepository) UpdateList(ctx context.Context, tx *gorm.DB, ms UserExchangeItems) (UserExchangeItems, error)
UpdateList mocks base method.
type MockUserExchangeItemMysqlRepositoryMockRecorder ¶
type MockUserExchangeItemMysqlRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockUserExchangeItemMysqlRepositoryMockRecorder is the mock recorder for MockUserExchangeItemMysqlRepository.
func (*MockUserExchangeItemMysqlRepositoryMockRecorder) Create ¶
func (mr *MockUserExchangeItemMysqlRepositoryMockRecorder) Create(ctx, tx, m interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockUserExchangeItemMysqlRepositoryMockRecorder) CreateList ¶
func (mr *MockUserExchangeItemMysqlRepositoryMockRecorder) CreateList(ctx, tx, ms interface{}) *gomock.Call
CreateList indicates an expected call of CreateList.
func (*MockUserExchangeItemMysqlRepositoryMockRecorder) Delete ¶
func (mr *MockUserExchangeItemMysqlRepositoryMockRecorder) Delete(ctx, tx, m interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockUserExchangeItemMysqlRepositoryMockRecorder) DeleteList ¶
func (mr *MockUserExchangeItemMysqlRepositoryMockRecorder) DeleteList(ctx, tx, ms interface{}) *gomock.Call
DeleteList indicates an expected call of DeleteList.
func (*MockUserExchangeItemMysqlRepositoryMockRecorder) Find ¶
func (mr *MockUserExchangeItemMysqlRepositoryMockRecorder) Find(ctx, userId, masterExchangeItemId interface{}) *gomock.Call
Find indicates an expected call of Find.
func (*MockUserExchangeItemMysqlRepositoryMockRecorder) FindByUserIdAndMasterExchangeId ¶
func (mr *MockUserExchangeItemMysqlRepositoryMockRecorder) FindByUserIdAndMasterExchangeId(ctx, userId, masterExchangeId interface{}) *gomock.Call
FindByUserIdAndMasterExchangeId indicates an expected call of FindByUserIdAndMasterExchangeId.
func (*MockUserExchangeItemMysqlRepositoryMockRecorder) FindByUserIdAndMasterExchangeItemId ¶
func (mr *MockUserExchangeItemMysqlRepositoryMockRecorder) FindByUserIdAndMasterExchangeItemId(ctx, userId, masterExchangeItemId interface{}) *gomock.Call
FindByUserIdAndMasterExchangeItemId indicates an expected call of FindByUserIdAndMasterExchangeItemId.
func (*MockUserExchangeItemMysqlRepositoryMockRecorder) FindList ¶
func (mr *MockUserExchangeItemMysqlRepositoryMockRecorder) FindList(ctx, userId interface{}) *gomock.Call
FindList indicates an expected call of FindList.
func (*MockUserExchangeItemMysqlRepositoryMockRecorder) FindListByUserIdAndMasterExchangeId ¶
func (mr *MockUserExchangeItemMysqlRepositoryMockRecorder) FindListByUserIdAndMasterExchangeId(ctx, userId, masterExchangeId interface{}) *gomock.Call
FindListByUserIdAndMasterExchangeId indicates an expected call of FindListByUserIdAndMasterExchangeId.
func (*MockUserExchangeItemMysqlRepositoryMockRecorder) FindListByUserIdAndMasterExchangeItemId ¶
func (mr *MockUserExchangeItemMysqlRepositoryMockRecorder) FindListByUserIdAndMasterExchangeItemId(ctx, userId, masterExchangeItemId interface{}) *gomock.Call
FindListByUserIdAndMasterExchangeItemId indicates an expected call of FindListByUserIdAndMasterExchangeItemId.
func (*MockUserExchangeItemMysqlRepositoryMockRecorder) FindOrNil ¶
func (mr *MockUserExchangeItemMysqlRepositoryMockRecorder) FindOrNil(ctx, userId, masterExchangeItemId interface{}) *gomock.Call
FindOrNil indicates an expected call of FindOrNil.
func (*MockUserExchangeItemMysqlRepositoryMockRecorder) FindOrNilByUserIdAndMasterExchangeId ¶
func (mr *MockUserExchangeItemMysqlRepositoryMockRecorder) FindOrNilByUserIdAndMasterExchangeId(ctx, userId, masterExchangeId interface{}) *gomock.Call
FindOrNilByUserIdAndMasterExchangeId indicates an expected call of FindOrNilByUserIdAndMasterExchangeId.
func (*MockUserExchangeItemMysqlRepositoryMockRecorder) FindOrNilByUserIdAndMasterExchangeItemId ¶
func (mr *MockUserExchangeItemMysqlRepositoryMockRecorder) FindOrNilByUserIdAndMasterExchangeItemId(ctx, userId, masterExchangeItemId interface{}) *gomock.Call
FindOrNilByUserIdAndMasterExchangeItemId indicates an expected call of FindOrNilByUserIdAndMasterExchangeItemId.
func (*MockUserExchangeItemMysqlRepositoryMockRecorder) Update ¶
func (mr *MockUserExchangeItemMysqlRepositoryMockRecorder) Update(ctx, tx, m interface{}) *gomock.Call
Update indicates an expected call of Update.
func (*MockUserExchangeItemMysqlRepositoryMockRecorder) UpdateList ¶
func (mr *MockUserExchangeItemMysqlRepositoryMockRecorder) UpdateList(ctx, tx, ms interface{}) *gomock.Call
UpdateList indicates an expected call of UpdateList.
type UserExchangeItem ¶
type UserExchangeItem struct { UserId string MasterExchangeId int64 MasterExchangeItemId int64 Count int32 }
func NewUserExchangeItem ¶
func NewUserExchangeItem() *UserExchangeItem
func SetUserExchangeItem ¶
func SetUserExchangeItem(userId string, masterExchangeId int64, masterExchangeItemId int64, count int32) *UserExchangeItem
type UserExchangeItemMysqlRepository ¶
type UserExchangeItemMysqlRepository interface { Find(ctx context.Context, userId string, masterExchangeItemId int64) (*UserExchangeItem, error) FindOrNil(ctx context.Context, userId string, masterExchangeItemId int64) (*UserExchangeItem, error) FindByUserIdAndMasterExchangeId(ctx context.Context, userId string, masterExchangeId int64) (*UserExchangeItem, error) FindByUserIdAndMasterExchangeItemId(ctx context.Context, userId string, masterExchangeItemId int64) (*UserExchangeItem, error) FindOrNilByUserIdAndMasterExchangeId(ctx context.Context, userId string, masterExchangeId int64) (*UserExchangeItem, error) FindOrNilByUserIdAndMasterExchangeItemId(ctx context.Context, userId string, masterExchangeItemId int64) (*UserExchangeItem, error) FindList(ctx context.Context, userId string) (UserExchangeItems, error) FindListByUserIdAndMasterExchangeId(ctx context.Context, userId string, masterExchangeId int64) (UserExchangeItems, error) FindListByUserIdAndMasterExchangeItemId(ctx context.Context, userId string, masterExchangeItemId int64) (UserExchangeItems, error) Create(ctx context.Context, tx *gorm.DB, m *UserExchangeItem) (*UserExchangeItem, error) CreateList(ctx context.Context, tx *gorm.DB, ms UserExchangeItems) (UserExchangeItems, error) Update(ctx context.Context, tx *gorm.DB, m *UserExchangeItem) (*UserExchangeItem, error) UpdateList(ctx context.Context, tx *gorm.DB, ms UserExchangeItems) (UserExchangeItems, error) Delete(ctx context.Context, tx *gorm.DB, m *UserExchangeItem) error DeleteList(ctx context.Context, tx *gorm.DB, ms UserExchangeItems) error }
type UserExchangeItems ¶
type UserExchangeItems []*UserExchangeItem
func NewUserExchangeItems ¶
func NewUserExchangeItems() UserExchangeItems