exchange

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

Documentation

Overview

Package exchange 交換受け取りリクエスト

Package exchange 交換受け取りレスポンス

Package exchange is a generated GoMock package.

Package exchange 交換更新リクエスト

Package exchange 交換更新レスポンス

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExchangeReceiveRequest

type ExchangeReceiveRequest struct {
	UserId               string
	MasterExchangeItemId int64
	Count                int32
}

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

type ExchangeUpdateRequest struct {
	UserId           string
	MasterExchangeId int64
}

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

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

func (*MockExchangeService) Receive

Receive mocks base method.

func (*MockExchangeService) Update

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.

Directories

Path Synopsis
Package masterExchange 交換
Package masterExchange 交換
Package masterExchangeCost 交換コスト
Package masterExchangeCost 交換コスト
Package masterExchangeItem 交換アイテム
Package masterExchangeItem 交換アイテム
Package userExchange ユーザー交換
Package userExchange ユーザー交換
Package userExchangeItem ユーザー交換アイテム
Package userExchangeItem ユーザー交換アイテム

Jump to

Keyboard shortcuts

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