package com.wx.application.core.controller;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.wx.application.base.BaseController;
import com.wx.application.base.ResponseData;
import com.wx.application.core.service.GraphTaskService;
/**
 *   @description : GraphTask 默认控制器,仅供生成器使用
 *   ---------------------------------
 *   @since 2022-08-02
 */
/*@Slf4j*/
@RestController("coreGraphTaskController")
@RequestMapping("/graph-task")
public class GraphTaskController extends BaseController {

    @Autowired
    private GraphTaskService graphTaskService;

    /**
     * 根据实例空间名查看现在是不是有任务在导入
     * @param space
     * @return
     */
    @GetMapping(value = "/query_list/{space}")
    public ResponseData queryList(@PathVariable("space") String space) {
    	Map mQ = new HashMap<>();
    	mQ.put("EQI_status", 0);
    	mQ.put("EQS_space", space);
        return success(graphTaskService.queryList(mQ));
    }
    
}
