masterResource

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 masterResource リソースEnum

Package masterResource リソース

Package masterResource リソース

Package masterResource is a generated GoMock package.

Index

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

Create mocks base method.

func (*MockMasterResourceMysqlRepository) CreateList

CreateList mocks base method.

func (*MockMasterResourceMysqlRepository) Delete

Delete mocks base method.

func (*MockMasterResourceMysqlRepository) DeleteList

DeleteList mocks base method.

func (*MockMasterResourceMysqlRepository) EXPECT

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

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

Update mocks base method.

func (*MockMasterResourceMysqlRepository) UpdateList

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.

Jump to

Keyboard shortcuts

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