This commit is contained in:
2026-08-31 10:17:42 +08:00
parent bf1dc1f209
commit bef91151a3
2 changed files with 11 additions and 4 deletions
@@ -7,6 +7,7 @@ import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;
import java.util.List;
import java.time.LocalDateTime;
/** Internal read contract for Firstleg co-load group aggregation. */
@FeignClient(name = "firstleg-service", contextId = "orderFirstlegColoadGroupClient",
@@ -18,6 +19,9 @@ public interface FirstlegColoadGroupClient {
record BatchQueryRequest(List<Long> orderIds) {}
record OrderGroupInfo(Long orderId, GroupSnapshot group) {}
record GroupSnapshot(String status, List<Member> members) {}
record Member(Long orderId) {}
record GroupSnapshot(Long groupId, String groupNo, String status, Long warehouseId,
String channelCode, Long lockedPlanId, Integer version,
List<Member> members, Integer fullPackageCount,
LocalDateTime createdAt, LocalDateTime updatedAt) {}
record Member(Long tenantId, Long orderId, Long inboundId, Integer fullPackageCount) {}
}