service

package
v0.0.0-...-a59e072 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddCartItemService

type AddCartItemService struct {
	RequestContext *app.RequestContext
	Context        context.Context
}

func NewAddCartItemService

func NewAddCartItemService(Context context.Context, RequestContext *app.RequestContext) *AddCartItemService

func (*AddCartItemService) Run

func (h *AddCartItemService) Run(req *cart.AddCartItemReq) (resp *common.Empty, err error)

type CategoryService

type CategoryService struct {
	RequestContext *app.RequestContext
	Context        context.Context
}

func NewCategoryService

func NewCategoryService(Context context.Context, RequestContext *app.RequestContext) *CategoryService

func (*CategoryService) Run

func (h *CategoryService) Run(req *category.CategoryReq) (resp map[string]any, err error)

type CheckoutResultService

type CheckoutResultService struct {
	RequestContext *app.RequestContext
	Context        context.Context
}

func NewCheckoutResultService

func NewCheckoutResultService(Context context.Context, RequestContext *app.RequestContext) *CheckoutResultService

func (*CheckoutResultService) Run

func (h *CheckoutResultService) Run(req *common.Empty) (resp map[string]any, err error)

type CheckoutService

type CheckoutService struct {
	RequestContext *app.RequestContext
	Context        context.Context
}

func NewCheckoutService

func NewCheckoutService(Context context.Context, RequestContext *app.RequestContext) *CheckoutService

func (*CheckoutService) Run

func (h *CheckoutService) Run(req *common.Empty) (resp map[string]any, err error)

type CheckoutWaitingService

type CheckoutWaitingService struct {
	RequestContext *app.RequestContext
	Context        context.Context
}

func NewCheckoutWaitingService

func NewCheckoutWaitingService(Context context.Context, RequestContext *app.RequestContext) *CheckoutWaitingService

func (*CheckoutWaitingService) Run

func (h *CheckoutWaitingService) Run(req *checkout.CheckoutReq) (resp map[string]any, err error)

type GetCartService

type GetCartService struct {
	RequestContext *app.RequestContext
	Context        context.Context
}

func NewGetCartService

func NewGetCartService(Context context.Context, RequestContext *app.RequestContext) *GetCartService

func (*GetCartService) Run

func (h *GetCartService) Run(req *common.Empty) (resp map[string]any, err error)

type GetProductService

type GetProductService struct {
	RequestContext *app.RequestContext
	Context        context.Context
}

func NewGetProductService

func NewGetProductService(Context context.Context, RequestContext *app.RequestContext) *GetProductService

func (*GetProductService) Run

func (h *GetProductService) Run(req *product.ProductReq) (resp map[string]any, err error)

type HomeService

type HomeService struct {
	RequestContext *app.RequestContext
	Context        context.Context
}

func NewHomeService

func NewHomeService(Context context.Context, RequestContext *app.RequestContext) *HomeService

func (*HomeService) Run

func (h *HomeService) Run(req *home.Empty) (map[string]any, error)

type LoginService

type LoginService struct {
	RequestContext *app.RequestContext
	Context        context.Context
}

func NewLoginService

func NewLoginService(Context context.Context, RequestContext *app.RequestContext) *LoginService

func (*LoginService) Run

func (h *LoginService) Run(req *auth.LoginReq) (redirect string, err error)

type LogoutService

type LogoutService struct {
	RequestContext *app.RequestContext
	Context        context.Context
}

func NewLogoutService

func NewLogoutService(Context context.Context, RequestContext *app.RequestContext) *LogoutService

func (*LogoutService) Run

func (h *LogoutService) Run(req *common.Empty) (resp *common.Empty, err error)

type OrderListService

type OrderListService struct {
	RequestContext *app.RequestContext
	Context        context.Context
}

func NewOrderListService

func NewOrderListService(Context context.Context, RequestContext *app.RequestContext) *OrderListService

func (*OrderListService) Run

func (h *OrderListService) Run(req *common.Empty) (resp map[string]any, err error)

type RegisterService

type RegisterService struct {
	RequestContext *app.RequestContext
	Context        context.Context
}

func NewRegisterService

func NewRegisterService(Context context.Context, RequestContext *app.RequestContext) *RegisterService

func (*RegisterService) Run

func (h *RegisterService) Run(req *auth.RegisterReq) (resp *common.Empty, err error)

type SearchProductsService

type SearchProductsService struct {
	RequestContext *app.RequestContext
	Context        context.Context
}

func NewSearchProductsService

func NewSearchProductsService(Context context.Context, RequestContext *app.RequestContext) *SearchProductsService

func (*SearchProductsService) Run

func (h *SearchProductsService) Run(req *product.SearchProductsReq) (resp map[string]any, err error)

Jump to

Keyboard shortcuts

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