mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-12-04 05:09:48 +08:00
[dolphinscheduler- 1219] [newfeature] Non compliant code (#1384)
Changelog category : * New Feature Detailed description : change the camel-case with kebab
This commit is contained in:
parent
5947fd526e
commit
02d436857b
@ -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) {
|
||||
|
||||
|
@ -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 => {
|
||||
|
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user