|
@@ -1,18 +1,10 @@
|
|
|
package com.uas.kanban.controller;
|
|
package com.uas.kanban.controller;
|
|
|
|
|
|
|
|
-import java.util.List;
|
|
|
|
|
-
|
|
|
|
|
-import javax.servlet.http.HttpServletRequest;
|
|
|
|
|
-
|
|
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.stereotype.Controller;
|
|
import org.springframework.stereotype.Controller;
|
|
|
-import org.springframework.web.bind.annotation.PathVariable;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
|
|
|
|
|
|
import com.uas.kanban.base.BaseController;
|
|
import com.uas.kanban.base.BaseController;
|
|
|
import com.uas.kanban.model.DataSource;
|
|
import com.uas.kanban.model.DataSource;
|
|
|
-import com.uas.kanban.service.DataSourceService;
|
|
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 数据源
|
|
* 数据源
|
|
@@ -24,13 +16,4 @@ import com.uas.kanban.service.DataSourceService;
|
|
|
@RequestMapping("/datasource")
|
|
@RequestMapping("/datasource")
|
|
|
public class DataSourceController extends BaseController<DataSource> {
|
|
public class DataSourceController extends BaseController<DataSource> {
|
|
|
|
|
|
|
|
- @Autowired
|
|
|
|
|
- private DataSourceService dataSourceService;
|
|
|
|
|
-
|
|
|
|
|
- @RequestMapping("/get/un/{username}")
|
|
|
|
|
- @ResponseBody
|
|
|
|
|
- public List<DataSource> getByUsername(@PathVariable("username") String un, HttpServletRequest request) {
|
|
|
|
|
- return dataSourceService.getByUsername(un);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
}
|
|
}
|