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

Changelog category :
* New Feature

Detailed description :
change the camel-case with kebab
This commit is contained in:
zhukai 2019-12-04 14:51:22 +08:00 committed by bao liang
parent 5947fd526e
commit 02d436857b
3 changed files with 4 additions and 4 deletions

View File

@ -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) {

View File

@ -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 => {

View File

@ -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')