Documentation ¶
Overview ¶
Package item アイテム消費リクエスト
Package item アイテム消費レスポンス ¶
Package item アイテム ¶
Package item アイテム受け取りリクエスト ¶
Package item アイテム受け取りレスポンス ¶
Package item is a generated GoMock package.
Index ¶
- type Item
- type ItemConsumeRequest
- type ItemConsumeRequests
- type ItemConsumeResponse
- type ItemConsumeResponses
- type ItemReceiveRequest
- type ItemReceiveRequests
- type ItemReceiveResponse
- type ItemReceiveResponses
- type ItemService
- type Items
- type MockItemService
- func (m *MockItemService) Consume(ctx context.Context, tx *gorm.DB, now time.Time, req *ItemConsumeRequest) (*ItemConsumeResponse, error)
- func (m *MockItemService) EXPECT() *MockItemServiceMockRecorder
- func (m *MockItemService) Receive(ctx context.Context, tx *gorm.DB, now time.Time, req *ItemReceiveRequest) (*ItemReceiveResponse, error)
- type MockItemServiceMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ItemConsumeRequest ¶
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 ¶
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 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 ¶
func (m *MockItemService) Consume(ctx context.Context, tx *gorm.DB, now time.Time, req *ItemConsumeRequest) (*ItemConsumeResponse, error)
Consume mocks base method.
func (*MockItemService) EXPECT ¶
func (m *MockItemService) EXPECT() *MockItemServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockItemService) Receive ¶
func (m *MockItemService) Receive(ctx context.Context, tx *gorm.DB, now time.Time, req *ItemReceiveRequest) (*ItemReceiveResponse, error)
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.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package masterItem アイテム
|
Package masterItem アイテム |
Package userItemBox ユーザーアイテムボックス
|
Package userItemBox ユーザーアイテムボックス |
Click to show internal directories.
Click to hide internal directories.