Browse Source

[dolphinscheduler- 1219] [newfeature] Non compliant code (#1384)

Changelog category :
* New Feature

Detailed description :
change the camel-case with kebab
pull/2/head
zhukai 5 years ago committed by bao liang
parent
commit
02d436857b
  1. 4
      dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/ProjectController.java
  2. 2
      dolphinscheduler-ui/src/js/conf/home/store/dag/actions.js
  3. 2
      dolphinscheduler-ui/src/js/module/components/fileUpdate/definitionUpdate.vue

4
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/ProjectController.java

@ -265,7 +265,7 @@ public class ProjectController extends BaseController {
@ApiImplicitParams({ @ApiImplicitParams({
@ApiImplicitParam(name = "file", value = "RESOURCE_FILE", required = true, dataType = "MultipartFile") @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, public Result importProcessDefinition(@ApiIgnore @RequestAttribute(value = Constants.SESSION_USER) User loginUser,
@RequestParam("file") MultipartFile file){ @RequestParam("file") MultipartFile file){
try{ try{
@ -285,7 +285,7 @@ public class ProjectController extends BaseController {
* @return all project list * @return all project list
*/ */
@ApiOperation(value = "queryAllProjectList", notes= "QUERY_ALL_PROJECT_LIST_NOTES") @ApiOperation(value = "queryAllProjectList", notes= "QUERY_ALL_PROJECT_LIST_NOTES")
@GetMapping(value = "/queryAllProjectList") @GetMapping(value = "/query-project-list")
@ResponseStatus(HttpStatus.OK) @ResponseStatus(HttpStatus.OK)
public Result queryAllProjectList(@ApiIgnore @RequestAttribute(value = Constants.SESSION_USER) User loginUser) { public Result queryAllProjectList(@ApiIgnore @RequestAttribute(value = Constants.SESSION_USER) User loginUser) {

2
dolphinscheduler-ui/src/js/conf/home/store/dag/actions.js

@ -270,7 +270,7 @@ export default {
resolve() resolve()
return return
} }
io.get(`projects/queryAllProjectList`, payload, res => { io.get(`projects/query-project-list`, payload, res => {
state.projectListS = res.data state.projectListS = res.data
resolve(res.data) resolve(res.data)
}).catch(res => { }).catch(res => {

2
dolphinscheduler-ui/src/js/module/components/fileUpdate/definitionUpdate.vue

@ -141,7 +141,7 @@
let self = this let self = this
let formData = new FormData() let formData = new FormData()
formData.append('file', this.file) formData.append('file', this.file)
io.post(`projects/importProcessDefinition`, res => { io.post(`projects/import-definition`, res => {
this.$message.success(res.msg) this.$message.success(res.msg)
resolve() resolve()
self.$emit('onUpdate') self.$emit('onUpdate')

Loading…
Cancel
Save