item

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

Documentation

Overview

Package item アイテム消費リクエスト

Package item アイテム消費レスポンス

Package item アイテム

Package item アイテム受け取りリクエスト

Package item アイテム受け取りレスポンス

Package item is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item struct {
	MasterItemId int64
	Count        int32
}

func NewItem

func NewItem() *Item

func SetItem

func SetItem(masterItemId int64, count int32) *Item

type ItemConsumeRequest

type ItemConsumeRequest struct {
	UserId string
	Items  Items
}

func NewItemConsumeRequest

func NewItemConsumeRequest() *ItemConsumeRequest

func SetItemConsumeRequest

func SetItemConsumeRequest(userId string, items Items) *ItemConsumeRequest

type ItemConsumeRequests

type ItemConsumeRequests []*ItemConsumeRequest

func NewItemConsumeRequests

func NewItemConsumeRequests() ItemConsumeRequests

type ItemConsumeResponse

type ItemConsumeResponse struct {
	UserItemBoxes userItemBox.UserItemBoxes
}

func NewItemConsumeResponse

func NewItemConsumeResponse() *ItemConsumeResponse

func SetItemConsumeResponse

func SetItemConsumeResponse(userItemBoxes userItemBox.UserItemBoxes) *ItemConsumeResponse

type ItemConsumeResponses

type ItemConsumeResponses []*ItemConsumeResponse

func NewItemConsumeResponses

func NewItemConsumeResponses() ItemConsumeResponses

type ItemReceiveRequest

type ItemReceiveRequest struct {
	UserId string
	Items  Items
}

func NewItemReceiveRequest

func NewItemReceiveRequest() *ItemReceiveRequest

func SetItemReceiveRequest

func SetItemReceiveRequest(userId string, items Items) *ItemReceiveRequest

type ItemReceiveRequests

type ItemReceiveRequests []*ItemReceiveRequest

func NewItemReceiveRequests

func NewItemReceiveRequests() ItemReceiveRequests

type ItemReceiveResponse

type ItemReceiveResponse struct {
	UserItemBoxes userItemBox.UserItemBoxes
}

func NewItemReceiveResponse

func NewItemReceiveResponse() *ItemReceiveResponse

func SetItemReceiveResponse

func SetItemReceiveResponse(userItemBoxes userItemBox.UserItemBoxes) *ItemReceiveResponse

type ItemReceiveResponses

type ItemReceiveResponses []*ItemReceiveResponse

func NewItemReceiveResponses

func NewItemReceiveResponses() ItemReceiveResponses

type ItemService

type ItemService interface {
	Receive(ctx context.Context, tx *gorm.DB, now time.Time, req *ItemReceiveRequest) (*ItemReceiveResponse, error)
	Consume(ctx context.Context, tx *gorm.DB, now time.Time, req *ItemConsumeRequest) (*ItemConsumeResponse, error)
}

func NewItemService

func NewItemService(
	userItemBoxMysqlRepository userItemBox.UserItemBoxMysqlRepository,
	userItemBoxCloudWatchRepository userItemBox.UserItemBoxCloudWatchRepository,
	masterItemMysqlRepository masterItem.MasterItemMysqlRepository,
) ItemService

type Items

type Items []*Item

func NewItems

func NewItems() Items

type MockItemService

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

MockItemService is a mock of ItemService interface.

func NewMockItemService

func NewMockItemService(ctrl *gomock.Controller) *MockItemService

NewMockItemService creates a new mock instance.

func (*MockItemService) Consume

Consume mocks base method.

func (*MockItemService) EXPECT

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

func (*MockItemService) Receive

Receive mocks base method.

type MockItemServiceMockRecorder

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

MockItemServiceMockRecorder is the mock recorder for MockItemService.

func (*MockItemServiceMockRecorder) Consume

func (mr *MockItemServiceMockRecorder) Consume(ctx, tx, now, req interface{}) *gomock.Call

Consume indicates an expected call of Consume.

func (*MockItemServiceMockRecorder) Receive

func (mr *MockItemServiceMockRecorder) Receive(ctx, tx, now, req interface{}) *gomock.Call

Receive indicates an expected call of Receive.

Directories

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

Jump to

Keyboard shortcuts

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