Documentation ¶
Index ¶
- Variables
- type ShopAdmin
- func (s *ShopAdmin) CreateBook(ctx context.Context, req *v1.CreateBookReq) (*v1.CreateBookReply, error)
- func (s *ShopAdmin) DeleteBook(ctx context.Context, req *v1.DeleteBookReq) (*v1.DeleteBookReply, error)
- func (s *ShopAdmin) GetBook(ctx context.Context, req *v1.GetBookReq) (*v1.GetBookReply, error)
- func (s *ShopAdmin) GetOrder(ctx context.Context, req *v1.GetOrderReq) (*v1.GetOrderReply, error)
- func (s *ShopAdmin) GetUser(ctx context.Context, req *v1.GetUserReq) (*v1.GetUserReply, error)
- func (s *ShopAdmin) ListBook(ctx context.Context, req *v1.ListBookReq) (*v1.ListBookReply, error)
- func (s *ShopAdmin) ListOrder(ctx context.Context, req *v1.ListOrderReq) (*v1.ListOrderReply, error)
- func (s *ShopAdmin) ListUser(ctx context.Context, req *v1.ListUserReq) (*v1.ListUserReply, error)
- func (s *ShopAdmin) Login(ctx context.Context, req *v1.LoginReq) (*v1.LoginReply, error)
- func (s *ShopAdmin) Logout(ctx context.Context, req *v1.LogoutReq) (*v1.LogoutReply, error)
- func (s *ShopAdmin) UpdateBook(ctx context.Context, req *v1.UpdateBookReq) (*v1.UpdateBookReply, error)
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) UpdateBook ¶
func (s *ShopAdmin) UpdateBook(ctx context.Context, req *v1.UpdateBookReq) (*v1.UpdateBookReply, error)
Click to show internal directories.
Click to hide internal directories.