productpcl

package
v0.0.0-...-ff3b671 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Handler ...

func New

func New(is IproductpclSvc) *Handler

New for bridging product handler initialization

func (*Handler) CustomProductpclHandler

func (h *Handler) CustomProductpclHandler(w http.ResponseWriter, r *http.Request)

productpclHandler will receive request and return response

func (*Handler) ProductpclHandler

func (h *Handler) ProductpclHandler(w http.ResponseWriter, r *http.Request)

productpclHandler will receive request and return response

type IproductpclSvc

type IproductpclSvc interface {
	GetDataProductByProcode(ctx context.Context, procode string) (mhProductEntity.MH_Product, error)
	CariProdukDgnBanyakKode(ctx context.Context, procode []string) ([]mhProductEntity.MH_Product, error)
	GetAllProduct(ctx context.Context, page int, length int) ([]mhProductEntity.MH_Product, interface{}, error)
}

IproductpclSvc is an interface to productpcl Service Masukkan function dari service ke dalam interface ini

Jump to

Keyboard shortcuts

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