Documentation ¶
Index ¶
- type BidInputDTO
- type BidOutputDTO
- type BidUseCase
- func (bu *BidUseCase) CreateBid(ctx context.Context, bidInputDTO BidInputDTO) (*BidOutputDTO, *internal_error.InternalError)
- func (bu *BidUseCase) FindBidByAuctionId(ctx context.Context, auctionId string) ([]BidOutputDTO, *internal_error.InternalError)
- func (bu *BidUseCase) FindWinningBidByAuctionId(ctx context.Context, auctionId string) (*BidOutputDTO, *internal_error.InternalError)
- type BidUseCaseInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BidInputDTO ¶
type BidOutputDTO ¶
type BidUseCase ¶
type BidUseCase struct { BidRepository bid_entity.BidRepositoryInterface // contains filtered or unexported fields }
func (*BidUseCase) CreateBid ¶
func (bu *BidUseCase) CreateBid( ctx context.Context, bidInputDTO BidInputDTO) (*BidOutputDTO, *internal_error.InternalError)
func (*BidUseCase) FindBidByAuctionId ¶
func (bu *BidUseCase) FindBidByAuctionId( ctx context.Context, auctionId string) ([]BidOutputDTO, *internal_error.InternalError)
func (*BidUseCase) FindWinningBidByAuctionId ¶
func (bu *BidUseCase) FindWinningBidByAuctionId( ctx context.Context, auctionId string) (*BidOutputDTO, *internal_error.InternalError)
type BidUseCaseInterface ¶
type BidUseCaseInterface interface { CreateBid( ctx context.Context, bidInputDTO BidInputDTO) (*BidOutputDTO, *internal_error.InternalError) FindWinningBidByAuctionId( ctx context.Context, auctionId string) (*BidOutputDTO, *internal_error.InternalError) FindBidByAuctionId( ctx context.Context, auctionId string) ([]BidOutputDTO, *internal_error.InternalError) }
func NewBidUseCase ¶
func NewBidUseCase(bidRepository bid_entity.BidRepositoryInterface) BidUseCaseInterface
Click to show internal directories.
Click to hide internal directories.