类 SourceController
- java.lang.Object
-
- io.edurt.datacap.server.controller.user.SourceController
-
@RestController @RequestMapping("/api/v1/source") public class SourceController extends Object
-
-
构造器概要
构造器 构造器 说明 SourceController(SourceService sourceService)
-
方法概要
所有方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 Response<Long>delete(Long id)Response<PageEntity<SourceEntity>>getAll(int start, int end)Response<SourceEntity>getInfo(Long id)Response<Map<String,List<PluginEntity>>>getPlugins()Response<SourceEntity>save(SourceEntity configure)已过时。Response<Object>shared(SharedSourceBody configure)Response<Object>testConnection(SourceEntity configure)Response<SourceEntity>update(SourceEntity configure)已过时。
-
-
-
构造器详细资料
-
SourceController
public SourceController(SourceService sourceService)
-
-
方法详细资料
-
save
@Deprecated @PostMapping(produces="application/json") public Response<SourceEntity> save(@RequestBody @Validated(Create.class) SourceEntity configure)
已过时。
-
update
@Deprecated @PutMapping(produces="application/json") public Response<SourceEntity> update(@RequestBody @Validated(Update.class) SourceEntity configure)
已过时。
-
getAll
@GetMapping public Response<PageEntity<SourceEntity>> getAll(@RequestParam(value="page",defaultValue="1") int start, @RequestParam(value="size",defaultValue="10") int end)
-
delete
@PreAuthorize("@userAuthorize.validateSource(#id)") @DeleteMapping("{id}") public Response<Long> delete(@PathVariable("id") Long id)
-
testConnection
@PostMapping(value="test", produces="application/json") public Response<Object> testConnection(@RequestBody @Validated(Create.class) SourceEntity configure)
-
getInfo
@GetMapping("{id}") public Response<SourceEntity> getInfo(@PathVariable("id") Long id)
-
getPlugins
@GetMapping("plugins") public Response<Map<String,List<PluginEntity>>> getPlugins()
-
shared
@PreAuthorize("@userAuthorize.validateUser(#configure)") @PutMapping("shared") public Response<Object> shared(@RequestBody SharedSourceBody configure)
-
-