userItemBox

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 userItemBox ユーザーアイテムボックス

Package userItemBox is a generated GoMock package.

Package userItemBox ユーザーアイテムボックス

Package userItemBox ユーザーアイテムボックス

Package userItemBox is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockUserItemBoxCloudWatchRepository

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

MockUserItemBoxCloudWatchRepository is a mock of UserItemBoxCloudWatchRepository interface.

func NewMockUserItemBoxCloudWatchRepository

func NewMockUserItemBoxCloudWatchRepository(ctrl *gomock.Controller) *MockUserItemBoxCloudWatchRepository

NewMockUserItemBoxCloudWatchRepository creates a new mock instance.

func (*MockUserItemBoxCloudWatchRepository) Create

Create mocks base method.

func (*MockUserItemBoxCloudWatchRepository) CreateList

CreateList mocks base method.

func (*MockUserItemBoxCloudWatchRepository) EXPECT

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

type MockUserItemBoxCloudWatchRepositoryMockRecorder

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

MockUserItemBoxCloudWatchRepositoryMockRecorder is the mock recorder for MockUserItemBoxCloudWatchRepository.

func (*MockUserItemBoxCloudWatchRepositoryMockRecorder) Create

func (mr *MockUserItemBoxCloudWatchRepositoryMockRecorder) Create(ctx, now, level, m interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockUserItemBoxCloudWatchRepositoryMockRecorder) CreateList

func (mr *MockUserItemBoxCloudWatchRepositoryMockRecorder) CreateList(ctx, now, level, ms interface{}) *gomock.Call

CreateList indicates an expected call of CreateList.

type MockUserItemBoxMysqlRepository

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

MockUserItemBoxMysqlRepository is a mock of UserItemBoxMysqlRepository interface.

func NewMockUserItemBoxMysqlRepository

func NewMockUserItemBoxMysqlRepository(ctrl *gomock.Controller) *MockUserItemBoxMysqlRepository

NewMockUserItemBoxMysqlRepository creates a new mock instance.

func (*MockUserItemBoxMysqlRepository) Create

Create mocks base method.

func (*MockUserItemBoxMysqlRepository) CreateList

CreateList mocks base method.

func (*MockUserItemBoxMysqlRepository) Delete

Delete mocks base method.

func (*MockUserItemBoxMysqlRepository) DeleteList

DeleteList mocks base method.

func (*MockUserItemBoxMysqlRepository) EXPECT

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

func (*MockUserItemBoxMysqlRepository) Find

func (m *MockUserItemBoxMysqlRepository) Find(ctx context.Context, userId string, masterItemId int64) (*UserItemBox, error)

Find mocks base method.

func (*MockUserItemBoxMysqlRepository) FindList

FindList mocks base method.

func (*MockUserItemBoxMysqlRepository) FindOrNil

func (m *MockUserItemBoxMysqlRepository) FindOrNil(ctx context.Context, userId string, masterItemId int64) (*UserItemBox, error)

FindOrNil mocks base method.

func (*MockUserItemBoxMysqlRepository) Update

Update mocks base method.

func (*MockUserItemBoxMysqlRepository) UpdateList

UpdateList mocks base method.

type MockUserItemBoxMysqlRepositoryMockRecorder

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

MockUserItemBoxMysqlRepositoryMockRecorder is the mock recorder for MockUserItemBoxMysqlRepository.

func (*MockUserItemBoxMysqlRepositoryMockRecorder) Create

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

Create indicates an expected call of Create.

func (*MockUserItemBoxMysqlRepositoryMockRecorder) CreateList

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

CreateList indicates an expected call of CreateList.

func (*MockUserItemBoxMysqlRepositoryMockRecorder) Delete

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

Delete indicates an expected call of Delete.

func (*MockUserItemBoxMysqlRepositoryMockRecorder) DeleteList

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

DeleteList indicates an expected call of DeleteList.

func (*MockUserItemBoxMysqlRepositoryMockRecorder) Find

func (mr *MockUserItemBoxMysqlRepositoryMockRecorder) Find(ctx, userId, masterItemId interface{}) *gomock.Call

Find indicates an expected call of Find.

func (*MockUserItemBoxMysqlRepositoryMockRecorder) FindList

func (mr *MockUserItemBoxMysqlRepositoryMockRecorder) FindList(ctx, userId interface{}) *gomock.Call

FindList indicates an expected call of FindList.

func (*MockUserItemBoxMysqlRepositoryMockRecorder) FindOrNil

func (mr *MockUserItemBoxMysqlRepositoryMockRecorder) FindOrNil(ctx, userId, masterItemId interface{}) *gomock.Call

FindOrNil indicates an expected call of FindOrNil.

func (*MockUserItemBoxMysqlRepositoryMockRecorder) Update

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

Update indicates an expected call of Update.

func (*MockUserItemBoxMysqlRepositoryMockRecorder) UpdateList

func (mr *MockUserItemBoxMysqlRepositoryMockRecorder) UpdateList(ctx, tx, ms interface{}) *gomock.Call

UpdateList indicates an expected call of UpdateList.

type UserItemBox

type UserItemBox struct {
	UserId       string
	MasterItemId int64
	Count        int32
}

func NewUserItemBox

func NewUserItemBox() *UserItemBox

func SetUserItemBox

func SetUserItemBox(userId string, masterItemId int64, count int32) *UserItemBox

type UserItemBoxCloudWatchRepository

type UserItemBoxCloudWatchRepository interface {
	Create(ctx context.Context, now time.Time, level cloudwatch.LogLevel, m *UserItemBox)
	CreateList(ctx context.Context, now time.Time, level cloudwatch.LogLevel, ms UserItemBoxes)
}

type UserItemBoxMysqlRepository

type UserItemBoxMysqlRepository interface {
	Find(ctx context.Context, userId string, masterItemId int64) (*UserItemBox, error)
	FindOrNil(ctx context.Context, userId string, masterItemId int64) (*UserItemBox, error)
	FindList(ctx context.Context, userId string) (UserItemBoxes, error)
	Create(ctx context.Context, tx *gorm.DB, m *UserItemBox) (*UserItemBox, error)
	CreateList(ctx context.Context, tx *gorm.DB, ms UserItemBoxes) (UserItemBoxes, error)
	Update(ctx context.Context, tx *gorm.DB, m *UserItemBox) (*UserItemBox, error)
	UpdateList(ctx context.Context, tx *gorm.DB, ms UserItemBoxes) (UserItemBoxes, error)
	Delete(ctx context.Context, tx *gorm.DB, m *UserItemBox) error
	DeleteList(ctx context.Context, tx *gorm.DB, ms UserItemBoxes) error
}

type UserItemBoxes

type UserItemBoxes []*UserItemBox

func NewUserItemBoxes

func NewUserItemBoxes() UserItemBoxes

func (UserItemBoxes) SetUserItemBoxExistingMaps

func (s UserItemBoxes) SetUserItemBoxExistingMaps() map[int64]bool

SetUserItemBoxExistingMaps 過去に受け取ったことがあるアイテムをboolにする(key=masterItemId, value=過去に受け取ったことがある)

func (UserItemBoxes) SetUserItemBoxMaps

func (s UserItemBoxes) SetUserItemBoxMaps() map[int64]*UserItemBox

SetUserItemBoxMaps Mapにする(key=masterItemId, value=UserItemBox)

Jump to

Keyboard shortcuts

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