service

package
v0.0.0-...-ce547d9 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AboutService

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

func NewAboutService

func NewAboutService(Context context.Context, RequestContext *app.RequestContext) *AboutService

func (*AboutService) Run

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

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.AddCartReq) (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 *checkout.CheckoutReq) (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 *common.Empty) (res map[string]any, err 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) (resp 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 SearchProducsService

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

func NewSearchProducsService

func NewSearchProducsService(Context context.Context, RequestContext *app.RequestContext) *SearchProducsService

func (*SearchProducsService) Run

func (h *SearchProducsService) 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