Files
pnokerandClaude Fable 5 24cfe977f4 fix(api): set size (not pages) when defaulting a null GrpcPage
buildPagesByGrpcPage built its fallback GrpcPage with setPages(PAGE_SIZE),
writing the per-page size into the total-pages field, while the code
below reads getSize(). The <1 guard masked any functional impact, but it
was a misleading no-op. Set the correct field: setSize(PAGE_SIZE).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-14 14:45:09 +08:00
..
2026-05-26 00:30:11 +08:00

DC3 Common API

Overview

dc3-common-api provides shared gRPC utility classes used across all services in the IoT DC3 platform. It contains builder utilities for constructing gRPC request/response objects from domain model entities.

Module Information

  • Group ID: io.github.pnoker
  • Artifact ID: dc3-common-api
  • Version: 2026.5.22

Key Components

  • GrpcBuilderUtil — Utility class for building common gRPC DTOs from BO/DO entities (e.g., setting pagination, building result wrappers)

Dependencies

This module is included in any service that imports a dc3-api-* module. It bridges domain model objects with generated protobuf classes.

Build Instructions

mvn -s ../../.mvn/settings.xml clean package
  • dc3-api-auth / dc3-api-data / dc3-api-driver / dc3-api-manager — gRPC API contracts that use these utilities

License

Copyright 2016-present the IoT DC3 original author or authors.

Licensed under the GNU Affero General Public License v3.0 (AGPL 3.0)