handler

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2021 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(s micro.Service, c *dig.Container) error

Types

type ActionHandler

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

CityHandler ...

func NewActionHandler

func NewActionHandler(
	action service.ActionService,
) *ActionHandler

NewCityHandler ...

func (*ActionHandler) Create

Create ...

func (*ActionHandler) Delete

func (h *ActionHandler) Delete(ctx context.Context, req *pb_action.DeleteRequest, rsp *empty.Empty) error

Delete ...

func (*ActionHandler) Get

Get ...

func (*ActionHandler) Paginate

Paginate ...

func (*ActionHandler) Update

Update ...

type BrandHandler

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

CityHandler ...

func NewBrandHandler

func NewBrandHandler(
	brand service.BrandService,
) *BrandHandler

NewCityHandler ...

func (*BrandHandler) Create

func (h *BrandHandler) Create(ctx context.Context, req *pb_brand.Request, rsp *pb_brand.Response) error

Create ...

func (*BrandHandler) Delete

func (h *BrandHandler) Delete(ctx context.Context, req *pb_brand.DeleteRequest, rsp *empty.Empty) error

Delete ...

func (*BrandHandler) Get

Get ...

func (*BrandHandler) Paginate

Paginate ...

func (*BrandHandler) Update

func (h *BrandHandler) Update(ctx context.Context, req *pb_brand.Request, rsp *pb_brand.Response) error

Update ...

type CareerCategoryHandler added in v0.4.0

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

CityHandler ...

func NewCareerCategoryHandler added in v0.4.0

func NewCareerCategoryHandler(
	careercategory service.CareerCategoryService,
) *CareerCategoryHandler

NewCityHandler ...

func (*CareerCategoryHandler) Create added in v0.4.0

Create ...

func (*CareerCategoryHandler) Delete added in v0.4.0

Delete ...

func (*CareerCategoryHandler) Get added in v0.4.0

Get ...

func (*CareerCategoryHandler) Paginate added in v0.4.0

Paginate ...

func (*CareerCategoryHandler) Update added in v0.4.0

Update ...

type CareerHandler added in v0.4.0

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

CityHandler ...

func NewCareerHandler added in v0.4.0

func NewCareerHandler(
	career service.CareerService,
) *CareerHandler

NewCityHandler ...

func (*CareerHandler) Create added in v0.4.0

Create ...

func (*CareerHandler) Delete added in v0.4.0

func (h *CareerHandler) Delete(ctx context.Context, req *pb_career.Request, rsp *empty.Empty) error

Delete ...

func (*CareerHandler) Get added in v0.4.0

Get ...

func (*CareerHandler) Paginate added in v0.4.0

Paginate ...

func (*CareerHandler) Update added in v0.4.0

Update ...

type CollectionHandler

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

CityHandler ...

func NewCollectionHandler

func NewCollectionHandler(
	collection service.CollectionService,
) *CollectionHandler

NewCityHandler ...

func (*CollectionHandler) Create

Create ...

func (*CollectionHandler) Delete

Delete ...

func (*CollectionHandler) Get

Get ...

func (*CollectionHandler) Paginate

Paginate ...

func (*CollectionHandler) Update

Update ...

type FaqHandler

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

CityHandler ...

func NewFaqHandler

func NewFaqHandler(
	faq service.FaqService,
) *FaqHandler

NewCityHandler ...

func (*FaqHandler) Create

func (h *FaqHandler) Create(ctx context.Context, req *pb_faq.Request, rsp *pb_faq.Response) error

Create ...

func (*FaqHandler) Delete

func (h *FaqHandler) Delete(ctx context.Context, req *pb_faq.DeleteRequest, rsp *empty.Empty) error

Delete ...

func (*FaqHandler) Get

func (h *FaqHandler) Get(ctx context.Context, req *pb_faq.GetRequest, rsp *pb_faq.Response) error

Get ...

func (*FaqHandler) Paginate

Paginate ...

func (*FaqHandler) Update

func (h *FaqHandler) Update(ctx context.Context, req *pb_faq.Request, rsp *pb_faq.Response) error

Update ...

type GalleryHandler

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

CityHandler ...

func NewGalleryHandler

func NewGalleryHandler(
	gallery service.GalleryService,
) *GalleryHandler

NewCityHandler ...

func (*GalleryHandler) BulkCreate added in v0.3.0

Create ...

func (*GalleryHandler) Create

Create ...

func (*GalleryHandler) Delete

Delete ...

func (*GalleryHandler) Get

Get ...

func (*GalleryHandler) Paginate

Paginate ...

func (*GalleryHandler) Update

Update ...

type InfoHandler added in v0.2.0

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

CityHandler ...

func NewInfoHandler added in v0.2.0

func NewInfoHandler(
	info service.InfoService,
) *InfoHandler

NewCityHandler ...

func (*InfoHandler) Create added in v0.2.0

func (h *InfoHandler) Create(ctx context.Context, req *pb_info.Request, rsp *pb_info.Response) error

Create ...

func (*InfoHandler) Delete added in v0.2.0

func (h *InfoHandler) Delete(ctx context.Context, req *pb_info.DeleteRequest, rsp *empty.Empty) error

Delete ...

func (*InfoHandler) Get added in v0.2.0

Get ...

func (*InfoHandler) GetBy added in v0.2.0

Paginate ...

func (*InfoHandler) Paginate added in v0.2.0

Paginate ...

func (*InfoHandler) Update added in v0.2.0

func (h *InfoHandler) Update(ctx context.Context, req *pb_info.Request, rsp *pb_info.Response) error

Update ...

type NewsHandler

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

CityHandler ...

func NewNewsHandler

func NewNewsHandler(
	news service.NewsService,
) *NewsHandler

NewCityHandler ...

func (*NewsHandler) Create

func (h *NewsHandler) Create(ctx context.Context, req *pb_news.Request, rsp *pb_news.Response) error

Create ...

func (*NewsHandler) Delete

func (h *NewsHandler) Delete(ctx context.Context, req *pb_news.DeleteRequest, rsp *empty.Empty) error

Delete ...

func (*NewsHandler) Get

Get ...

func (*NewsHandler) Paginate

Paginate ...

func (*NewsHandler) Update

func (h *NewsHandler) Update(ctx context.Context, req *pb_news.Request, rsp *pb_news.Response) error

Update ...

type PromotionHandler

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

CityHandler ...

func NewPromotionHandler

func NewPromotionHandler(
	promotion service.PromotionService,
) *PromotionHandler

NewCityHandler ...

func (*PromotionHandler) Create

Create ...

func (*PromotionHandler) Delete

Delete ...

func (*PromotionHandler) Get

Get ...

func (*PromotionHandler) Paginate

Paginate ...

func (*PromotionHandler) Update

Update ...

type SliderHandler

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

CityHandler ...

func NewSliderHandler

func NewSliderHandler(
	slider service.SliderService,
) *SliderHandler

NewCityHandler ...

func (*SliderHandler) Create

Create ...

func (*SliderHandler) Delete

func (h *SliderHandler) Delete(ctx context.Context, req *pb_slider.DeleteRequest, rsp *empty.Empty) error

Delete ...

func (*SliderHandler) Get

Get ...

func (*SliderHandler) Paginate

Paginate ...

func (*SliderHandler) Update

Update ...

Jump to

Keyboard shortcuts

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