showinventoriesinauditroom

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2021 License: MIT Imports: 3 Imported by: 0

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 ShowAuditRoomItem

func NewUsecase

func NewUsecase(outputPort Outport) Inport

NewUsecase is constructor for create default implementation of usecase ShowAuditRoomItem

type InportRequest

type InportRequest struct {
	AuditID uint `uri:"audit_id" binding:"required"` //
	RoomID  uint `uri:"room_id" binding:"required"`  //
}

InportRequest is request payload to run the usecase ShowAuditRoomItem

type InportResponse

type InportResponse struct {
	Inventory []InventoryResponse `` //
}

InportResponse is response payload after running the usecase ShowAuditRoomItem

type InventoryResponse

type InventoryResponse struct {
	InventoryID uint   `json:"inventory_id"` //
	Name        string `json:"name"`         //
	Quantity    int    `json:"quantity"`     //
}

type Outport

Outport of ShowAuditRoomItem

Jump to

Keyboard shortcuts

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