swagger支持json文档录入

This commit is contained in:
暮光:城中城
2019-08-12 20:44:17 +08:00
parent f9173925ab
commit 26b700fde3
10 changed files with 134 additions and 15 deletions

View File

@@ -24,7 +24,6 @@ import java.util.Optional;
* @author 暮光:城中城
* @since 2019年7月27日
*/
@AuthMan("ES_DATASOURCE_MANAGE")
@RestController
@RequestMapping("/zyplayer-doc-es/datasource")
public class EsDatasourceController {
@@ -39,7 +38,8 @@ public class EsDatasourceController {
List<EsDatasource> datasourceList = esDatasourceService.list(wrapper);
return DocResponseJson.ok(datasourceList);
}
@AuthMan("ES_DATASOURCE_MANAGE")
@PostMapping(value = "/update")
public ResponseJson update(EsDatasource esDatasource) {
if (StringUtils.isBlank(esDatasource.getName())) {