add products
This commit is contained in:
@@ -32,3 +32,11 @@ func (s *Server) GetPositions(ctx context.Context, req *crm.GetPositionsReq) (*c
|
||||
}
|
||||
return &crm.PositionsRsp{Products: products}, nil
|
||||
}
|
||||
|
||||
func (s *Server) GetProduct(ctx context.Context, req *crm.GetProductReq) (*crm.ProductRsp, error) {
|
||||
product, err := s.storage.GetProduct(ctx, req.Id)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &crm.ProductRsp{Product: product}, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user