|
@@ -36,7 +36,7 @@ public class EntityController {
|
|
|
|
|
|
@ApiOperation(value = "批量删除实体",
|
|
|
notes = "")
|
|
|
- @RequestMapping(value = "/deleteEntity",method = RequestMethod.DELETE)
|
|
|
+ @RequestMapping(value = "/deleteEntity",method = RequestMethod.POST)
|
|
|
@ResponseBody
|
|
|
public RespDTO<Boolean> deleteEntity(@RequestBody List<Long> ids) {
|
|
|
|
|
@@ -47,7 +47,7 @@ public class EntityController {
|
|
|
|
|
|
@ApiOperation(value = "批量修改实体名称",
|
|
|
notes = "")
|
|
|
- @RequestMapping(value = "/updateEntityName",method = RequestMethod.PUT)
|
|
|
+ @RequestMapping(value = "/updateEntityName",method = RequestMethod.POST)
|
|
|
@ResponseBody
|
|
|
public RespDTO<List<Map<String, Object>>> updateEntityName(@RequestBody List<UpdateEntityVO> updateEntityList) {
|
|
|
|
|
@@ -58,9 +58,9 @@ public class EntityController {
|
|
|
|
|
|
@ApiOperation(value = "实体列表查询(根据标签和名字模糊查询实体)",
|
|
|
notes = "")
|
|
|
- @RequestMapping(value = "/findEntityListByName",method = RequestMethod.GET)
|
|
|
+ @RequestMapping(value = "/findEntityListByName",method = RequestMethod.POST)
|
|
|
@ResponseBody
|
|
|
- public RespDTO<List<Map<String, Object>>> findEntityListByName(String label, String name) {
|
|
|
+ public RespDTO<List<Map<String, Object>>> findEntityListByName(@RequestBody String label, @RequestBody String name) {
|
|
|
|
|
|
List<Map<String, Object>> list = entityService.findEntityListByName(label, name);
|
|
|
return RespDTO.onSuc(list);
|
|
@@ -69,9 +69,9 @@ public class EntityController {
|
|
|
|
|
|
@ApiOperation(value = "实体详情查询(根据id查询实体)",
|
|
|
notes = "")
|
|
|
- @RequestMapping(value = "/findEntity",method = RequestMethod.GET)
|
|
|
+ @RequestMapping(value = "/findEntity",method = RequestMethod.POST)
|
|
|
@ResponseBody
|
|
|
- public RespDTO<Map<String, Object>> findEntity(Long id) {
|
|
|
+ public RespDTO<Map<String, Object>> findEntity(@RequestBody Long id) {
|
|
|
|
|
|
Map<String, Object> entity = entityService.findEntityById(id);
|
|
|
return RespDTO.onSuc(entity);
|