service

package
v0.0.0-...-4241208 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: MIT, MIT Imports: 5 Imported by: 0

README

Service

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(NewShopAdmin)

ProviderSet is service providers.

Functions

This section is empty.

Types

type ShopAdmin

type ShopAdmin struct {
	v1.UnimplementedShopAdminServer
	// contains filtered or unexported fields
}

func NewShopAdmin

func NewShopAdmin(uc *biz.UserUseCase, cc *biz.CatalogUseCase, logger log.Logger) *ShopAdmin

func (*ShopAdmin) CreateBook

func (s *ShopAdmin) CreateBook(ctx context.Context, req *v1.CreateBookReq) (*v1.CreateBookReply, error)

func (*ShopAdmin) DeleteBook

func (s *ShopAdmin) DeleteBook(ctx context.Context, req *v1.DeleteBookReq) (*v1.DeleteBookReply, error)

func (*ShopAdmin) GetBook

func (s *ShopAdmin) GetBook(ctx context.Context, req *v1.GetBookReq) (*v1.GetBookReply, error)

func (*ShopAdmin) GetOrder

func (s *ShopAdmin) GetOrder(ctx context.Context, req *v1.GetOrderReq) (*v1.GetOrderReply, error)

func (*ShopAdmin) GetUser

func (s *ShopAdmin) GetUser(ctx context.Context, req *v1.GetUserReq) (*v1.GetUserReply, error)

func (*ShopAdmin) ListBook

func (s *ShopAdmin) ListBook(ctx context.Context, req *v1.ListBookReq) (*v1.ListBookReply, error)

func (*ShopAdmin) ListOrder

func (s *ShopAdmin) ListOrder(ctx context.Context, req *v1.ListOrderReq) (*v1.ListOrderReply, error)

func (*ShopAdmin) ListUser

func (s *ShopAdmin) ListUser(ctx context.Context, req *v1.ListUserReq) (*v1.ListUserReply, error)

func (*ShopAdmin) Login

func (s *ShopAdmin) Login(ctx context.Context, req *v1.LoginReq) (*v1.LoginReply, error)

func (*ShopAdmin) Logout

func (s *ShopAdmin) Logout(ctx context.Context, req *v1.LogoutReq) (*v1.LogoutReply, error)

func (*ShopAdmin) UpdateBook

func (s *ShopAdmin) UpdateBook(ctx context.Context, req *v1.UpdateBookReq) (*v1.UpdateBookReply, error)

Jump to

Keyboard shortcuts

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