Open lvshaokang opened 1 year ago
Great proposal, some resturls, we need to discuss
@lvshaokang @wolfboys We should change post data with json instead of form. With this issue merged ,I will carry on replace enum
type issue.
Like this front end pass only one param,but back end receive with Application
entity is too heavy and make us confused. So we should discuss use DTO
instead of entity
to pass params.
Backend controller add param validation , most of endpionts are missing param validation.
@lvshaokang @wolfboys We should change post data with json instead of form. With this issue merged ,I will carry on replace
enum
type issue.
@GOODBOY008 Right. Some controller methods is redundant, but for one or two fields of the method whether to also use json entity, may need to consider it. Some times we can use path variable or query variable to pass parameters, like, [DELETE] /alert-configs/{config-id} [GET] /alert-configs?a=b&c=d
Like this front end pass only one param,but back end receive with
Application
entity is too heavy and make us confused. So we should discuss useDTO
instead ofentity
to pass params.
@lvshaokang According to the specific conditions , we should think different :)
Code of Conduct
Search before asking
Describe the proposal
AlertController
ApplicationBuildPipelineController
ApplicationController
ApplicationHistoryController
ConfigController
ExternalLinkController
FlinkClusterController
FlinkEnvController
FlinkPodTemplateController
FlinkSqlController
ProjectController
SavePointController
SettingController
VariableController
AccessTokenController
MemberController
MenuController
/users/current/menu-routes?team-id=?
PassportController
RoleController
TeamController
UserController
Task list
TODO
Are you willing to submit PR?