Documentation ¶
Overview ¶
Package masterResource リソースEnum
Package masterResource リソース ¶
Package masterResource リソース ¶
Package masterResource is a generated GoMock package.
Index ¶
- type MasterResource
- type MasterResourceEnum
- type MasterResourceMysqlRepository
- type MasterResources
- type MockMasterResourceMysqlRepository
- func (m_2 *MockMasterResourceMysqlRepository) Create(ctx context.Context, tx *gorm.DB, m *MasterResource) (*MasterResource, error)
- func (m *MockMasterResourceMysqlRepository) CreateList(ctx context.Context, tx *gorm.DB, ms MasterResources) (MasterResources, error)
- func (m_2 *MockMasterResourceMysqlRepository) Delete(ctx context.Context, tx *gorm.DB, m *MasterResource) error
- func (m *MockMasterResourceMysqlRepository) DeleteList(ctx context.Context, tx *gorm.DB, ms MasterResources) error
- func (m *MockMasterResourceMysqlRepository) EXPECT() *MockMasterResourceMysqlRepositoryMockRecorder
- func (m *MockMasterResourceMysqlRepository) Find(ctx context.Context, masterResourceId int64) (*MasterResource, error)
- func (m *MockMasterResourceMysqlRepository) FindByMasterResourceEnum(ctx context.Context, masterResourceEnum MasterResourceEnum) (*MasterResource, error)
- func (m *MockMasterResourceMysqlRepository) FindList(ctx context.Context) (MasterResources, error)
- func (m *MockMasterResourceMysqlRepository) FindListByMasterResourceEnum(ctx context.Context, masterResourceEnum MasterResourceEnum) (MasterResources, error)
- func (m *MockMasterResourceMysqlRepository) FindOrNil(ctx context.Context, masterResourceId int64) (*MasterResource, error)
- func (m *MockMasterResourceMysqlRepository) FindOrNilByMasterResourceEnum(ctx context.Context, masterResourceEnum MasterResourceEnum) (*MasterResource, error)
- func (m_2 *MockMasterResourceMysqlRepository) Update(ctx context.Context, tx *gorm.DB, m *MasterResource) (*MasterResource, error)
- func (m *MockMasterResourceMysqlRepository) UpdateList(ctx context.Context, tx *gorm.DB, ms MasterResources) (MasterResources, error)
- type MockMasterResourceMysqlRepositoryMockRecorder
- func (mr *MockMasterResourceMysqlRepositoryMockRecorder) Create(ctx, tx, m interface{}) *gomock.Call
- func (mr *MockMasterResourceMysqlRepositoryMockRecorder) CreateList(ctx, tx, ms interface{}) *gomock.Call
- func (mr *MockMasterResourceMysqlRepositoryMockRecorder) Delete(ctx, tx, m interface{}) *gomock.Call
- func (mr *MockMasterResourceMysqlRepositoryMockRecorder) DeleteList(ctx, tx, ms interface{}) *gomock.Call
- func (mr *MockMasterResourceMysqlRepositoryMockRecorder) Find(ctx, masterResourceId interface{}) *gomock.Call
- func (mr *MockMasterResourceMysqlRepositoryMockRecorder) FindByMasterResourceEnum(ctx, masterResourceEnum interface{}) *gomock.Call
- func (mr *MockMasterResourceMysqlRepositoryMockRecorder) FindList(ctx interface{}) *gomock.Call
- func (mr *MockMasterResourceMysqlRepositoryMockRecorder) FindListByMasterResourceEnum(ctx, masterResourceEnum interface{}) *gomock.Call
- func (mr *MockMasterResourceMysqlRepositoryMockRecorder) FindOrNil(ctx, masterResourceId interface{}) *gomock.Call
- func (mr *MockMasterResourceMysqlRepositoryMockRecorder) FindOrNilByMasterResourceEnum(ctx, masterResourceEnum interface{}) *gomock.Call
- func (mr *MockMasterResourceMysqlRepositoryMockRecorder) Update(ctx, tx, m interface{}) *gomock.Call
- func (mr *MockMasterResourceMysqlRepositoryMockRecorder) UpdateList(ctx, tx, ms interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MasterResource ¶
type MasterResource struct { MasterResourceId int64 Name string MasterResourceEnum MasterResourceEnum }
func NewMasterResource ¶
func NewMasterResource() *MasterResource
func SetMasterResource ¶
func SetMasterResource(masterResourceId int64, name string, masterResourceEnum MasterResourceEnum) *MasterResource
type MasterResourceEnum ¶
type MasterResourceEnum int32
const ( MasterResourceEnum_None MasterResourceEnum = 0 MasterResourceEnum_Normal MasterResourceEnum = 1 MasterResourceEnum_Card MasterResourceEnum = 2 MasterResourceEnum_Ticket MasterResourceEnum = 3 MasterResourceEnum_Coin MasterResourceEnum = 4 MasterResourceEnum_Crystal MasterResourceEnum = 5 )
type MasterResourceMysqlRepository ¶
type MasterResourceMysqlRepository interface { Find(ctx context.Context, masterResourceId int64) (*MasterResource, error) FindOrNil(ctx context.Context, masterResourceId int64) (*MasterResource, error) FindByMasterResourceEnum(ctx context.Context, masterResourceEnum MasterResourceEnum) (*MasterResource, error) FindOrNilByMasterResourceEnum(ctx context.Context, masterResourceEnum MasterResourceEnum) (*MasterResource, error) FindList(ctx context.Context) (MasterResources, error) FindListByMasterResourceEnum(ctx context.Context, masterResourceEnum MasterResourceEnum) (MasterResources, error) Create(ctx context.Context, tx *gorm.DB, m *MasterResource) (*MasterResource, error) CreateList(ctx context.Context, tx *gorm.DB, ms MasterResources) (MasterResources, error) Update(ctx context.Context, tx *gorm.DB, m *MasterResource) (*MasterResource, error) UpdateList(ctx context.Context, tx *gorm.DB, ms MasterResources) (MasterResources, error) Delete(ctx context.Context, tx *gorm.DB, m *MasterResource) error DeleteList(ctx context.Context, tx *gorm.DB, ms MasterResources) error }
type MasterResources ¶
type MasterResources []*MasterResource
func NewMasterResources ¶
func NewMasterResources() MasterResources
type MockMasterResourceMysqlRepository ¶
type MockMasterResourceMysqlRepository struct {
// contains filtered or unexported fields
}
MockMasterResourceMysqlRepository is a mock of MasterResourceMysqlRepository interface.
func NewMockMasterResourceMysqlRepository ¶
func NewMockMasterResourceMysqlRepository(ctrl *gomock.Controller) *MockMasterResourceMysqlRepository
NewMockMasterResourceMysqlRepository creates a new mock instance.
func (*MockMasterResourceMysqlRepository) Create ¶
func (m_2 *MockMasterResourceMysqlRepository) Create(ctx context.Context, tx *gorm.DB, m *MasterResource) (*MasterResource, error)
Create mocks base method.
func (*MockMasterResourceMysqlRepository) CreateList ¶
func (m *MockMasterResourceMysqlRepository) CreateList(ctx context.Context, tx *gorm.DB, ms MasterResources) (MasterResources, error)
CreateList mocks base method.
func (*MockMasterResourceMysqlRepository) Delete ¶
func (m_2 *MockMasterResourceMysqlRepository) Delete(ctx context.Context, tx *gorm.DB, m *MasterResource) error
Delete mocks base method.
func (*MockMasterResourceMysqlRepository) DeleteList ¶
func (m *MockMasterResourceMysqlRepository) DeleteList(ctx context.Context, tx *gorm.DB, ms MasterResources) error
DeleteList mocks base method.
func (*MockMasterResourceMysqlRepository) EXPECT ¶
func (m *MockMasterResourceMysqlRepository) EXPECT() *MockMasterResourceMysqlRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMasterResourceMysqlRepository) Find ¶
func (m *MockMasterResourceMysqlRepository) Find(ctx context.Context, masterResourceId int64) (*MasterResource, error)
Find mocks base method.
func (*MockMasterResourceMysqlRepository) FindByMasterResourceEnum ¶
func (m *MockMasterResourceMysqlRepository) FindByMasterResourceEnum(ctx context.Context, masterResourceEnum MasterResourceEnum) (*MasterResource, error)
FindByMasterResourceEnum mocks base method.
func (*MockMasterResourceMysqlRepository) FindList ¶
func (m *MockMasterResourceMysqlRepository) FindList(ctx context.Context) (MasterResources, error)
FindList mocks base method.
func (*MockMasterResourceMysqlRepository) FindListByMasterResourceEnum ¶
func (m *MockMasterResourceMysqlRepository) FindListByMasterResourceEnum(ctx context.Context, masterResourceEnum MasterResourceEnum) (MasterResources, error)
FindListByMasterResourceEnum mocks base method.
func (*MockMasterResourceMysqlRepository) FindOrNil ¶
func (m *MockMasterResourceMysqlRepository) FindOrNil(ctx context.Context, masterResourceId int64) (*MasterResource, error)
FindOrNil mocks base method.
func (*MockMasterResourceMysqlRepository) FindOrNilByMasterResourceEnum ¶
func (m *MockMasterResourceMysqlRepository) FindOrNilByMasterResourceEnum(ctx context.Context, masterResourceEnum MasterResourceEnum) (*MasterResource, error)
FindOrNilByMasterResourceEnum mocks base method.
func (*MockMasterResourceMysqlRepository) Update ¶
func (m_2 *MockMasterResourceMysqlRepository) Update(ctx context.Context, tx *gorm.DB, m *MasterResource) (*MasterResource, error)
Update mocks base method.
func (*MockMasterResourceMysqlRepository) UpdateList ¶
func (m *MockMasterResourceMysqlRepository) UpdateList(ctx context.Context, tx *gorm.DB, ms MasterResources) (MasterResources, error)
UpdateList mocks base method.
type MockMasterResourceMysqlRepositoryMockRecorder ¶
type MockMasterResourceMysqlRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockMasterResourceMysqlRepositoryMockRecorder is the mock recorder for MockMasterResourceMysqlRepository.
func (*MockMasterResourceMysqlRepositoryMockRecorder) Create ¶
func (mr *MockMasterResourceMysqlRepositoryMockRecorder) Create(ctx, tx, m interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockMasterResourceMysqlRepositoryMockRecorder) CreateList ¶
func (mr *MockMasterResourceMysqlRepositoryMockRecorder) CreateList(ctx, tx, ms interface{}) *gomock.Call
CreateList indicates an expected call of CreateList.
func (*MockMasterResourceMysqlRepositoryMockRecorder) Delete ¶
func (mr *MockMasterResourceMysqlRepositoryMockRecorder) Delete(ctx, tx, m interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockMasterResourceMysqlRepositoryMockRecorder) DeleteList ¶
func (mr *MockMasterResourceMysqlRepositoryMockRecorder) DeleteList(ctx, tx, ms interface{}) *gomock.Call
DeleteList indicates an expected call of DeleteList.
func (*MockMasterResourceMysqlRepositoryMockRecorder) Find ¶
func (mr *MockMasterResourceMysqlRepositoryMockRecorder) Find(ctx, masterResourceId interface{}) *gomock.Call
Find indicates an expected call of Find.
func (*MockMasterResourceMysqlRepositoryMockRecorder) FindByMasterResourceEnum ¶
func (mr *MockMasterResourceMysqlRepositoryMockRecorder) FindByMasterResourceEnum(ctx, masterResourceEnum interface{}) *gomock.Call
FindByMasterResourceEnum indicates an expected call of FindByMasterResourceEnum.
func (*MockMasterResourceMysqlRepositoryMockRecorder) FindList ¶
func (mr *MockMasterResourceMysqlRepositoryMockRecorder) FindList(ctx interface{}) *gomock.Call
FindList indicates an expected call of FindList.
func (*MockMasterResourceMysqlRepositoryMockRecorder) FindListByMasterResourceEnum ¶
func (mr *MockMasterResourceMysqlRepositoryMockRecorder) FindListByMasterResourceEnum(ctx, masterResourceEnum interface{}) *gomock.Call
FindListByMasterResourceEnum indicates an expected call of FindListByMasterResourceEnum.
func (*MockMasterResourceMysqlRepositoryMockRecorder) FindOrNil ¶
func (mr *MockMasterResourceMysqlRepositoryMockRecorder) FindOrNil(ctx, masterResourceId interface{}) *gomock.Call
FindOrNil indicates an expected call of FindOrNil.
func (*MockMasterResourceMysqlRepositoryMockRecorder) FindOrNilByMasterResourceEnum ¶
func (mr *MockMasterResourceMysqlRepositoryMockRecorder) FindOrNilByMasterResourceEnum(ctx, masterResourceEnum interface{}) *gomock.Call
FindOrNilByMasterResourceEnum indicates an expected call of FindOrNilByMasterResourceEnum.
func (*MockMasterResourceMysqlRepositoryMockRecorder) Update ¶
func (mr *MockMasterResourceMysqlRepositoryMockRecorder) Update(ctx, tx, m interface{}) *gomock.Call
Update indicates an expected call of Update.
func (*MockMasterResourceMysqlRepositoryMockRecorder) UpdateList ¶
func (mr *MockMasterResourceMysqlRepositoryMockRecorder) UpdateList(ctx, tx, ms interface{}) *gomock.Call
UpdateList indicates an expected call of UpdateList.