From 02d436857ba948a18a88408213b107cf56f9a833 Mon Sep 17 00:00:00 2001 From: zhukai Date: Wed, 4 Dec 2019 14:51:22 +0800 Subject: [PATCH] =?UTF-8?q?[dolphinscheduler-=C2=A01219]=20[newfeature]=20?= =?UTF-8?q?Non=20compliant=20code=20(#1384)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changelog category : * New Feature Detailed description : change the camel-case with kebab --- .../dolphinscheduler/api/controller/ProjectController.java | 4 ++-- dolphinscheduler-ui/src/js/conf/home/store/dag/actions.js | 2 +- .../src/js/module/components/fileUpdate/definitionUpdate.vue | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/ProjectController.java b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/ProjectController.java index 484d00bf2c..66e065ee48 100644 --- a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/ProjectController.java +++ b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/ProjectController.java @@ -265,7 +265,7 @@ public class ProjectController extends BaseController { @ApiImplicitParams({ @ApiImplicitParam(name = "file", value = "RESOURCE_FILE", required = true, dataType = "MultipartFile") }) - @PostMapping(value="/importProcessDefinition") + @PostMapping(value="/import-definition") public Result importProcessDefinition(@ApiIgnore @RequestAttribute(value = Constants.SESSION_USER) User loginUser, @RequestParam("file") MultipartFile file){ try{ @@ -285,7 +285,7 @@ public class ProjectController extends BaseController { * @return all project list */ @ApiOperation(value = "queryAllProjectList", notes= "QUERY_ALL_PROJECT_LIST_NOTES") - @GetMapping(value = "/queryAllProjectList") + @GetMapping(value = "/query-project-list") @ResponseStatus(HttpStatus.OK) public Result queryAllProjectList(@ApiIgnore @RequestAttribute(value = Constants.SESSION_USER) User loginUser) { diff --git a/dolphinscheduler-ui/src/js/conf/home/store/dag/actions.js b/dolphinscheduler-ui/src/js/conf/home/store/dag/actions.js index 7ef6193d65..b854dc8ade 100644 --- a/dolphinscheduler-ui/src/js/conf/home/store/dag/actions.js +++ b/dolphinscheduler-ui/src/js/conf/home/store/dag/actions.js @@ -270,7 +270,7 @@ export default { resolve() return } - io.get(`projects/queryAllProjectList`, payload, res => { + io.get(`projects/query-project-list`, payload, res => { state.projectListS = res.data resolve(res.data) }).catch(res => { diff --git a/dolphinscheduler-ui/src/js/module/components/fileUpdate/definitionUpdate.vue b/dolphinscheduler-ui/src/js/module/components/fileUpdate/definitionUpdate.vue index 05381dbc85..997566abde 100644 --- a/dolphinscheduler-ui/src/js/module/components/fileUpdate/definitionUpdate.vue +++ b/dolphinscheduler-ui/src/js/module/components/fileUpdate/definitionUpdate.vue @@ -141,7 +141,7 @@ let self = this let formData = new FormData() formData.append('file', this.file) - io.post(`projects/importProcessDefinition`, res => { + io.post(`projects/import-definition`, res => { this.$message.success(res.msg) resolve() self.$emit('onUpdate')