masterItem

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: 6 Imported by: 0

Documentation

Overview

Package masterItem アイテム

Package masterItem アイテム

Package masterItem is a generated GoMock package.

Index

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

Create mocks base method.

func (*MockMasterItemMysqlRepository) CreateList

CreateList mocks base method.

func (*MockMasterItemMysqlRepository) Delete

Delete mocks base method.

func (*MockMasterItemMysqlRepository) DeleteList

DeleteList mocks base method.

func (*MockMasterItemMysqlRepository) EXPECT

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

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

Update mocks base method.

func (*MockMasterItemMysqlRepository) UpdateList

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.

Jump to

Keyboard shortcuts

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