Documentation
¶
Overview ¶
Package masterItem アイテム
Package masterItem アイテム ¶
Package masterItem is a generated GoMock package.
Index ¶
- type MasterItem
- type MasterItemMysqlRepository
- type MasterItems
- type MockMasterItemMysqlRepository
- func (m_2 *MockMasterItemMysqlRepository) Create(ctx context.Context, tx *gorm.DB, m *MasterItem) (*MasterItem, error)
- func (m *MockMasterItemMysqlRepository) CreateList(ctx context.Context, tx *gorm.DB, ms MasterItems) (MasterItems, error)
- func (m_2 *MockMasterItemMysqlRepository) Delete(ctx context.Context, tx *gorm.DB, m *MasterItem) error
- func (m *MockMasterItemMysqlRepository) DeleteList(ctx context.Context, tx *gorm.DB, ms MasterItems) error
- func (m *MockMasterItemMysqlRepository) EXPECT() *MockMasterItemMysqlRepositoryMockRecorder
- func (m *MockMasterItemMysqlRepository) Find(ctx context.Context, masterItemId int64) (*MasterItem, error)
- func (m *MockMasterItemMysqlRepository) FindList(ctx context.Context) (MasterItems, error)
- func (m *MockMasterItemMysqlRepository) FindOrNil(ctx context.Context, masterItemId int64) (*MasterItem, error)
- func (m_2 *MockMasterItemMysqlRepository) Update(ctx context.Context, tx *gorm.DB, m *MasterItem) (*MasterItem, error)
- func (m *MockMasterItemMysqlRepository) UpdateList(ctx context.Context, tx *gorm.DB, ms MasterItems) (MasterItems, error)
- type MockMasterItemMysqlRepositoryMockRecorder
- func (mr *MockMasterItemMysqlRepositoryMockRecorder) Create(ctx, tx, m interface{}) *gomock.Call
- func (mr *MockMasterItemMysqlRepositoryMockRecorder) CreateList(ctx, tx, ms interface{}) *gomock.Call
- func (mr *MockMasterItemMysqlRepositoryMockRecorder) Delete(ctx, tx, m interface{}) *gomock.Call
- func (mr *MockMasterItemMysqlRepositoryMockRecorder) DeleteList(ctx, tx, ms interface{}) *gomock.Call
- func (mr *MockMasterItemMysqlRepositoryMockRecorder) Find(ctx, masterItemId interface{}) *gomock.Call
- func (mr *MockMasterItemMysqlRepositoryMockRecorder) FindList(ctx interface{}) *gomock.Call
- func (mr *MockMasterItemMysqlRepositoryMockRecorder) FindOrNil(ctx, masterItemId interface{}) *gomock.Call
- func (mr *MockMasterItemMysqlRepositoryMockRecorder) Update(ctx, tx, m interface{}) *gomock.Call
- func (mr *MockMasterItemMysqlRepositoryMockRecorder) UpdateList(ctx, tx, ms interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MasterItem ¶
type MasterItem struct { MasterItemId int64 Name string MasterResourceEnum masterResource.MasterResourceEnum MasterRarityEnum masterRarity.MasterRarityEnum Content string }
func NewMasterItem ¶
func NewMasterItem() *MasterItem
func SetMasterItem ¶
func SetMasterItem(masterItemId int64, name string, masterResourceEnum masterResource.MasterResourceEnum, masterRarityEnum masterRarity.MasterRarityEnum, content string) *MasterItem
type MasterItemMysqlRepository ¶
type MasterItemMysqlRepository interface { Find(ctx context.Context, masterItemId int64) (*MasterItem, error) FindOrNil(ctx context.Context, masterItemId int64) (*MasterItem, error) FindList(ctx context.Context) (MasterItems, error) Create(ctx context.Context, tx *gorm.DB, m *MasterItem) (*MasterItem, error) CreateList(ctx context.Context, tx *gorm.DB, ms MasterItems) (MasterItems, error) Update(ctx context.Context, tx *gorm.DB, m *MasterItem) (*MasterItem, error) UpdateList(ctx context.Context, tx *gorm.DB, ms MasterItems) (MasterItems, error) Delete(ctx context.Context, tx *gorm.DB, m *MasterItem) error DeleteList(ctx context.Context, tx *gorm.DB, ms MasterItems) error }
type MasterItems ¶
type MasterItems []*MasterItem
func NewMasterItems ¶
func NewMasterItems() MasterItems
type MockMasterItemMysqlRepository ¶
type MockMasterItemMysqlRepository struct {
// contains filtered or unexported fields
}
MockMasterItemMysqlRepository is a mock of MasterItemMysqlRepository interface.
func NewMockMasterItemMysqlRepository ¶
func NewMockMasterItemMysqlRepository(ctrl *gomock.Controller) *MockMasterItemMysqlRepository
NewMockMasterItemMysqlRepository creates a new mock instance.
func (*MockMasterItemMysqlRepository) Create ¶
func (m_2 *MockMasterItemMysqlRepository) Create(ctx context.Context, tx *gorm.DB, m *MasterItem) (*MasterItem, error)
Create mocks base method.
func (*MockMasterItemMysqlRepository) CreateList ¶
func (m *MockMasterItemMysqlRepository) CreateList(ctx context.Context, tx *gorm.DB, ms MasterItems) (MasterItems, error)
CreateList mocks base method.
func (*MockMasterItemMysqlRepository) Delete ¶
func (m_2 *MockMasterItemMysqlRepository) Delete(ctx context.Context, tx *gorm.DB, m *MasterItem) error
Delete mocks base method.
func (*MockMasterItemMysqlRepository) DeleteList ¶
func (m *MockMasterItemMysqlRepository) DeleteList(ctx context.Context, tx *gorm.DB, ms MasterItems) error
DeleteList mocks base method.
func (*MockMasterItemMysqlRepository) EXPECT ¶
func (m *MockMasterItemMysqlRepository) EXPECT() *MockMasterItemMysqlRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMasterItemMysqlRepository) Find ¶
func (m *MockMasterItemMysqlRepository) Find(ctx context.Context, masterItemId int64) (*MasterItem, error)
Find mocks base method.
func (*MockMasterItemMysqlRepository) FindList ¶
func (m *MockMasterItemMysqlRepository) FindList(ctx context.Context) (MasterItems, error)
FindList mocks base method.
func (*MockMasterItemMysqlRepository) FindOrNil ¶
func (m *MockMasterItemMysqlRepository) FindOrNil(ctx context.Context, masterItemId int64) (*MasterItem, error)
FindOrNil mocks base method.
func (*MockMasterItemMysqlRepository) Update ¶
func (m_2 *MockMasterItemMysqlRepository) Update(ctx context.Context, tx *gorm.DB, m *MasterItem) (*MasterItem, error)
Update mocks base method.
func (*MockMasterItemMysqlRepository) UpdateList ¶
func (m *MockMasterItemMysqlRepository) UpdateList(ctx context.Context, tx *gorm.DB, ms MasterItems) (MasterItems, error)
UpdateList mocks base method.
type MockMasterItemMysqlRepositoryMockRecorder ¶
type MockMasterItemMysqlRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockMasterItemMysqlRepositoryMockRecorder is the mock recorder for MockMasterItemMysqlRepository.
func (*MockMasterItemMysqlRepositoryMockRecorder) Create ¶
func (mr *MockMasterItemMysqlRepositoryMockRecorder) Create(ctx, tx, m interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockMasterItemMysqlRepositoryMockRecorder) CreateList ¶
func (mr *MockMasterItemMysqlRepositoryMockRecorder) CreateList(ctx, tx, ms interface{}) *gomock.Call
CreateList indicates an expected call of CreateList.
func (*MockMasterItemMysqlRepositoryMockRecorder) Delete ¶
func (mr *MockMasterItemMysqlRepositoryMockRecorder) Delete(ctx, tx, m interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockMasterItemMysqlRepositoryMockRecorder) DeleteList ¶
func (mr *MockMasterItemMysqlRepositoryMockRecorder) DeleteList(ctx, tx, ms interface{}) *gomock.Call
DeleteList indicates an expected call of DeleteList.
func (*MockMasterItemMysqlRepositoryMockRecorder) Find ¶
func (mr *MockMasterItemMysqlRepositoryMockRecorder) Find(ctx, masterItemId interface{}) *gomock.Call
Find indicates an expected call of Find.
func (*MockMasterItemMysqlRepositoryMockRecorder) FindList ¶
func (mr *MockMasterItemMysqlRepositoryMockRecorder) FindList(ctx interface{}) *gomock.Call
FindList indicates an expected call of FindList.
func (*MockMasterItemMysqlRepositoryMockRecorder) FindOrNil ¶
func (mr *MockMasterItemMysqlRepositoryMockRecorder) FindOrNil(ctx, masterItemId interface{}) *gomock.Call
FindOrNil indicates an expected call of FindOrNil.
func (*MockMasterItemMysqlRepositoryMockRecorder) Update ¶
func (mr *MockMasterItemMysqlRepositoryMockRecorder) Update(ctx, tx, m interface{}) *gomock.Call
Update indicates an expected call of Update.
func (*MockMasterItemMysqlRepositoryMockRecorder) UpdateList ¶
func (mr *MockMasterItemMysqlRepositoryMockRecorder) UpdateList(ctx, tx, ms interface{}) *gomock.Call
UpdateList indicates an expected call of UpdateList.