Documentation ¶
Overview ¶
Package exchange 交換受け取りリクエスト
Package exchange 交換受け取りレスポンス ¶
Package exchange is a generated GoMock package.
Package exchange 交換更新リクエスト ¶
Package exchange 交換更新レスポンス
Index ¶
- type ExchangeReceiveRequest
- type ExchangeReceiveRequests
- type ExchangeReceiveResponse
- type ExchangeReceiveResponses
- type ExchangeService
- type ExchangeUpdateRequest
- type ExchangeUpdateRequests
- type ExchangeUpdateResponse
- type ExchangeUpdateResponses
- type MockExchangeService
- func (m *MockExchangeService) EXPECT() *MockExchangeServiceMockRecorder
- func (m *MockExchangeService) Receive(ctx context.Context, tx *gorm.DB, now time.Time, req *ExchangeReceiveRequest) (*ExchangeReceiveResponse, error)
- func (m *MockExchangeService) Update(ctx context.Context, tx *gorm.DB, now time.Time, req *ExchangeUpdateRequest) (*ExchangeUpdateResponse, error)
- type MockExchangeServiceMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExchangeReceiveRequest ¶
func NewExchangeReceiveRequest ¶
func NewExchangeReceiveRequest() *ExchangeReceiveRequest
func SetExchangeReceiveRequest ¶
func SetExchangeReceiveRequest(userId string, masterExchangeItemId int64, count int32) *ExchangeReceiveRequest
type ExchangeReceiveRequests ¶
type ExchangeReceiveRequests []*ExchangeReceiveRequest
func NewExchangeReceiveRequests ¶
func NewExchangeReceiveRequests() ExchangeReceiveRequests
type ExchangeReceiveResponse ¶
type ExchangeReceiveResponse struct { UserExchange *userExchange.UserExchange UserExchangeItem *userExchangeItem.UserExchangeItem }
func NewExchangeReceiveResponse ¶
func NewExchangeReceiveResponse() *ExchangeReceiveResponse
func SetExchangeReceiveResponse ¶
func SetExchangeReceiveResponse(userExchange *userExchange.UserExchange, userExchangeItem *userExchangeItem.UserExchangeItem) *ExchangeReceiveResponse
type ExchangeReceiveResponses ¶
type ExchangeReceiveResponses []*ExchangeReceiveResponse
func NewExchangeReceiveResponses ¶
func NewExchangeReceiveResponses() ExchangeReceiveResponses
type ExchangeService ¶
type ExchangeService interface { Update(ctx context.Context, tx *gorm.DB, now time.Time, req *ExchangeUpdateRequest) (*ExchangeUpdateResponse, error) Receive(ctx context.Context, tx *gorm.DB, now time.Time, req *ExchangeReceiveRequest) (*ExchangeReceiveResponse, error) }
func NewExchangeService ¶
func NewExchangeService( itemService item.ItemService, eventService event.EventService, masterExchangeMysqlRepository masterExchange.MasterExchangeMysqlRepository, masterExchangeCostMysqlRepository masterExchangeCost.MasterExchangeCostMysqlRepository, masterExchangeItemMysqlRepository masterExchangeItem.MasterExchangeItemMysqlRepository, userExchangeMysqlRepository userExchange.UserExchangeMysqlRepository, userExchangeItemMysqlRepository userExchangeItem.UserExchangeItemMysqlRepository, ) ExchangeService
type ExchangeUpdateRequest ¶
func NewExchangeUpdateRequest ¶
func NewExchangeUpdateRequest() *ExchangeUpdateRequest
func SetExchangeUpdateRequest ¶
func SetExchangeUpdateRequest(userId string, masterExchangeId int64) *ExchangeUpdateRequest
type ExchangeUpdateRequests ¶
type ExchangeUpdateRequests []*ExchangeUpdateRequest
func NewExchangeUpdateRequests ¶
func NewExchangeUpdateRequests() ExchangeUpdateRequests
type ExchangeUpdateResponse ¶
type ExchangeUpdateResponse struct { UserExchange *userExchange.UserExchange UserExchangeItems userExchangeItem.UserExchangeItems }
func NewExchangeUpdateResponse ¶
func NewExchangeUpdateResponse() *ExchangeUpdateResponse
func SetExchangeUpdateResponse ¶
func SetExchangeUpdateResponse(userExchange *userExchange.UserExchange, userExchangeItems userExchangeItem.UserExchangeItems) *ExchangeUpdateResponse
type ExchangeUpdateResponses ¶
type ExchangeUpdateResponses []*ExchangeUpdateResponse
func NewExchangeUpdateResponses ¶
func NewExchangeUpdateResponses() ExchangeUpdateResponses
type MockExchangeService ¶
type MockExchangeService struct {
// contains filtered or unexported fields
}
MockExchangeService is a mock of ExchangeService interface.
func NewMockExchangeService ¶
func NewMockExchangeService(ctrl *gomock.Controller) *MockExchangeService
NewMockExchangeService creates a new mock instance.
func (*MockExchangeService) EXPECT ¶
func (m *MockExchangeService) EXPECT() *MockExchangeServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockExchangeService) Receive ¶
func (m *MockExchangeService) Receive(ctx context.Context, tx *gorm.DB, now time.Time, req *ExchangeReceiveRequest) (*ExchangeReceiveResponse, error)
Receive mocks base method.
func (*MockExchangeService) Update ¶
func (m *MockExchangeService) Update(ctx context.Context, tx *gorm.DB, now time.Time, req *ExchangeUpdateRequest) (*ExchangeUpdateResponse, error)
Update mocks base method.
type MockExchangeServiceMockRecorder ¶
type MockExchangeServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockExchangeServiceMockRecorder is the mock recorder for MockExchangeService.
func (*MockExchangeServiceMockRecorder) Receive ¶
func (mr *MockExchangeServiceMockRecorder) Receive(ctx, tx, now, req interface{}) *gomock.Call
Receive indicates an expected call of Receive.
func (*MockExchangeServiceMockRecorder) Update ¶
func (mr *MockExchangeServiceMockRecorder) Update(ctx, tx, now, req interface{}) *gomock.Call
Update indicates an expected call of Update.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package masterExchange 交換
|
Package masterExchange 交換 |
Package masterExchangeCost 交換コスト
|
Package masterExchangeCost 交換コスト |
Package masterExchangeItem 交換アイテム
|
Package masterExchangeItem 交換アイテム |
Package userExchange ユーザー交換
|
Package userExchange ユーザー交換 |
Package userExchangeItem ユーザー交換アイテム
|
Package userExchangeItem ユーザー交換アイテム |
Click to show internal directories.
Click to hide internal directories.