Add Print Detail
This commit is contained in:
@@ -540,3 +540,13 @@ func (s *OrderService) GetByID(ctx mycontext.Context, id int64, referenceID stri
|
||||
|
||||
return order, nil
|
||||
}
|
||||
|
||||
func (s *OrderService) GetPrintDetail(ctx mycontext.Context, id int64) (*entity.OrderPrintDetail, error) {
|
||||
order, err := s.repo.FindPrintDetailByID(ctx, id)
|
||||
if err != nil {
|
||||
logger.ContextLogger(ctx).Error("error when getting products by IDs", zap.Error(err))
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return order, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user