masterExchange

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 masterExchange 交換

Package masterExchange 交換

Package masterExchange is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MasterExchange

type MasterExchange struct {
	MasterExchangeId int64
	MasterEventId    int64
	Name             string
}

func NewMasterExchange

func NewMasterExchange() *MasterExchange

func SetMasterExchange

func SetMasterExchange(masterExchangeId int64, masterEventId int64, name string) *MasterExchange

type MasterExchangeMysqlRepository

type MasterExchangeMysqlRepository interface {
	Find(ctx context.Context, masterExchangeId int64) (*MasterExchange, error)
	FindOrNil(ctx context.Context, masterExchangeId int64) (*MasterExchange, error)
	FindByMasterEventId(ctx context.Context, masterEventId int64) (*MasterExchange, error)
	FindOrNilByMasterEventId(ctx context.Context, masterEventId int64) (*MasterExchange, error)
	FindList(ctx context.Context) (MasterExchanges, error)
	FindListByMasterEventId(ctx context.Context, masterEventId int64) (MasterExchanges, error)
	Create(ctx context.Context, tx *gorm.DB, m *MasterExchange) (*MasterExchange, error)
	CreateList(ctx context.Context, tx *gorm.DB, ms MasterExchanges) (MasterExchanges, error)
	Update(ctx context.Context, tx *gorm.DB, m *MasterExchange) (*MasterExchange, error)
	UpdateList(ctx context.Context, tx *gorm.DB, ms MasterExchanges) (MasterExchanges, error)
	Delete(ctx context.Context, tx *gorm.DB, m *MasterExchange) error
	DeleteList(ctx context.Context, tx *gorm.DB, ms MasterExchanges) error
}

type MasterExchanges

type MasterExchanges []*MasterExchange

func NewMasterExchanges

func NewMasterExchanges() MasterExchanges

type MockMasterExchangeMysqlRepository

type MockMasterExchangeMysqlRepository struct {
	// contains filtered or unexported fields
}

MockMasterExchangeMysqlRepository is a mock of MasterExchangeMysqlRepository interface.

func NewMockMasterExchangeMysqlRepository

func NewMockMasterExchangeMysqlRepository(ctrl *gomock.Controller) *MockMasterExchangeMysqlRepository

NewMockMasterExchangeMysqlRepository creates a new mock instance.

func (*MockMasterExchangeMysqlRepository) Create

Create mocks base method.

func (*MockMasterExchangeMysqlRepository) CreateList

CreateList mocks base method.

func (*MockMasterExchangeMysqlRepository) Delete

Delete mocks base method.

func (*MockMasterExchangeMysqlRepository) DeleteList

DeleteList mocks base method.

func (*MockMasterExchangeMysqlRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockMasterExchangeMysqlRepository) Find

func (m *MockMasterExchangeMysqlRepository) Find(ctx context.Context, masterExchangeId int64) (*MasterExchange, error)

Find mocks base method.

func (*MockMasterExchangeMysqlRepository) FindByMasterEventId

func (m *MockMasterExchangeMysqlRepository) FindByMasterEventId(ctx context.Context, masterEventId int64) (*MasterExchange, error)

FindByMasterEventId mocks base method.

func (*MockMasterExchangeMysqlRepository) FindList

FindList mocks base method.

func (*MockMasterExchangeMysqlRepository) FindListByMasterEventId

func (m *MockMasterExchangeMysqlRepository) FindListByMasterEventId(ctx context.Context, masterEventId int64) (MasterExchanges, error)

FindListByMasterEventId mocks base method.

func (*MockMasterExchangeMysqlRepository) FindOrNil

func (m *MockMasterExchangeMysqlRepository) FindOrNil(ctx context.Context, masterExchangeId int64) (*MasterExchange, error)

FindOrNil mocks base method.

func (*MockMasterExchangeMysqlRepository) FindOrNilByMasterEventId

func (m *MockMasterExchangeMysqlRepository) FindOrNilByMasterEventId(ctx context.Context, masterEventId int64) (*MasterExchange, error)

FindOrNilByMasterEventId mocks base method.

func (*MockMasterExchangeMysqlRepository) Update

Update mocks base method.

func (*MockMasterExchangeMysqlRepository) UpdateList

UpdateList mocks base method.

type MockMasterExchangeMysqlRepositoryMockRecorder

type MockMasterExchangeMysqlRepositoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockMasterExchangeMysqlRepositoryMockRecorder is the mock recorder for MockMasterExchangeMysqlRepository.

func (*MockMasterExchangeMysqlRepositoryMockRecorder) Create

func (mr *MockMasterExchangeMysqlRepositoryMockRecorder) Create(ctx, tx, m interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockMasterExchangeMysqlRepositoryMockRecorder) CreateList

func (mr *MockMasterExchangeMysqlRepositoryMockRecorder) CreateList(ctx, tx, ms interface{}) *gomock.Call

CreateList indicates an expected call of CreateList.

func (*MockMasterExchangeMysqlRepositoryMockRecorder) Delete

func (mr *MockMasterExchangeMysqlRepositoryMockRecorder) Delete(ctx, tx, m interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockMasterExchangeMysqlRepositoryMockRecorder) DeleteList

func (mr *MockMasterExchangeMysqlRepositoryMockRecorder) DeleteList(ctx, tx, ms interface{}) *gomock.Call

DeleteList indicates an expected call of DeleteList.

func (*MockMasterExchangeMysqlRepositoryMockRecorder) Find

func (mr *MockMasterExchangeMysqlRepositoryMockRecorder) Find(ctx, masterExchangeId interface{}) *gomock.Call

Find indicates an expected call of Find.

func (*MockMasterExchangeMysqlRepositoryMockRecorder) FindByMasterEventId

func (mr *MockMasterExchangeMysqlRepositoryMockRecorder) FindByMasterEventId(ctx, masterEventId interface{}) *gomock.Call

FindByMasterEventId indicates an expected call of FindByMasterEventId.

func (*MockMasterExchangeMysqlRepositoryMockRecorder) FindList

func (mr *MockMasterExchangeMysqlRepositoryMockRecorder) FindList(ctx interface{}) *gomock.Call

FindList indicates an expected call of FindList.

func (*MockMasterExchangeMysqlRepositoryMockRecorder) FindListByMasterEventId

func (mr *MockMasterExchangeMysqlRepositoryMockRecorder) FindListByMasterEventId(ctx, masterEventId interface{}) *gomock.Call

FindListByMasterEventId indicates an expected call of FindListByMasterEventId.

func (*MockMasterExchangeMysqlRepositoryMockRecorder) FindOrNil

func (mr *MockMasterExchangeMysqlRepositoryMockRecorder) FindOrNil(ctx, masterExchangeId interface{}) *gomock.Call

FindOrNil indicates an expected call of FindOrNil.

func (*MockMasterExchangeMysqlRepositoryMockRecorder) FindOrNilByMasterEventId

func (mr *MockMasterExchangeMysqlRepositoryMockRecorder) FindOrNilByMasterEventId(ctx, masterEventId interface{}) *gomock.Call

FindOrNilByMasterEventId indicates an expected call of FindOrNilByMasterEventId.

func (*MockMasterExchangeMysqlRepositoryMockRecorder) Update

func (mr *MockMasterExchangeMysqlRepositoryMockRecorder) Update(ctx, tx, m interface{}) *gomock.Call

Update indicates an expected call of Update.

func (*MockMasterExchangeMysqlRepositoryMockRecorder) UpdateList

func (mr *MockMasterExchangeMysqlRepositoryMockRecorder) 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