shangeyao opened a new issue, #4474:
URL: https://github.com/apache/streampark/issues/4474

   ## Summary
   
   Console REST controllers currently bind domain entities (e.g. 
`FlinkApplication`) directly from form parameters, which couples the HTTP 
contract to persistence models and makes API evolution harder.
   
   This issue tracks introducing explicit **Request** and **Response** DTOs 
aligned with the frontend API types, following common Spring Boot practice 
(similar to existing `AlertConfigParams`).
   
   ## Scope
   
   ### Phase 1
   - Add `request.flink` / `response.flink` packages
   - Add `FlinkApplicationAssembler` for entity ↔ DTO conversion
   - Refactor `FlinkApplicationController` to use typed request/response objects
   - Add unit tests for assembler mapping
   
   ### Follow-up
   - Apply the same pattern to remaining controllers 
(`SparkApplicationController`, `UserController`, etc.)
   - Add backup/opt-log request/response DTOs under `FlinkApplicationController`
   - Consider OpenAPI schema generation from response types
   
   ## Motivation
   
   - Decouple HTTP API contract from JPA/MyBatis entities
   - Match webapp-v2 TypeScript types (`CreateParams`, `AppListRecord`, 
`DashboardResponse`, etc.)
   - Improve validation boundaries and permission SpEL clarity


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to