goodscenterserver.go 780 B

1234567891011121314151617181920212223242526272829
  1. // Code generated by goctl. DO NOT EDIT!
  2. // Source: goodsCenter.proto
  3. package server
  4. import (
  5. "context"
  6. "bp.jydev.jianyu360.cn/BaseService/goodsCenter/rpc/internal/logic"
  7. "bp.jydev.jianyu360.cn/BaseService/goodsCenter/rpc/internal/svc"
  8. "bp.jydev.jianyu360.cn/BaseService/goodsCenter/rpc/pb"
  9. )
  10. type GoodsCenterServer struct {
  11. svcCtx *svc.ServiceContext
  12. pb.UnimplementedGoodsCenterServer
  13. }
  14. func NewGoodsCenterServer(svcCtx *svc.ServiceContext) *GoodsCenterServer {
  15. return &GoodsCenterServer{
  16. svcCtx: svcCtx,
  17. }
  18. }
  19. // 查看标准商品分类
  20. func (s *GoodsCenterServer) GetBaseGoodsStandClassify(ctx context.Context, in *pb.ClassifyReq) (*pb.ClassifyResp, error) {
  21. l := logic.NewGetBaseGoodsStandClassifyLogic(ctx, s.svcCtx)
  22. return l.GetBaseGoodsStandClassify(in)
  23. }