Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Inport ¶
type Inport interface {
Execute(ctx context.Context, req InportRequest) (*InportResponse, error)
}
Inport of ShowRoom
func NewUsecase ¶
NewUsecase is constructor for create default implementation of usecase ShowRoom
type InportRequest ¶
type InportRequest struct { }
InportRequest is request payload to run the usecase ShowRoom
type InportResponse ¶
type InportResponse struct {
Rooms []RoomResponse `json:"room"`
}
InportResponse is response payload after running the usecase ShowRoom
type InventoryResponse ¶
type Outport ¶
type Outport interface { repository.FetchRoomRepo repository.WithoutTransactionDB }
Outport of ShowRoom
type RoomResponse ¶
type RoomResponse struct { ID uint `json:"room_id"` // Name string `json:"name"` // Inventories []InventoryResponse `json:"inventory"` // }
Click to show internal directories.
Click to hide internal directories.