userExchangeItem

package
v0.0.0-...-4834045 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package userExchangeItem ユーザー交換アイテム

Package userExchangeItem ユーザー交換アイテム

Package userExchangeItem is a generated GoMock package.

Index

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

Create mocks base method.

func (*MockUserExchangeItemMysqlRepository) CreateList

CreateList mocks base method.

func (*MockUserExchangeItemMysqlRepository) Delete

Delete mocks base method.

func (*MockUserExchangeItemMysqlRepository) DeleteList

DeleteList mocks base method.

func (*MockUserExchangeItemMysqlRepository) EXPECT

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

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

Update mocks base method.

func (*MockUserExchangeItemMysqlRepository) UpdateList

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL