|
@@ -2,9 +2,7 @@ package com.qizhen.healsphere.web;
|
|
|
|
|
|
import com.qizhen.healsphere.service.EntityService;
|
|
import com.qizhen.healsphere.service.EntityService;
|
|
import com.qizhen.healsphere.web.dto.RespDTO;
|
|
import com.qizhen.healsphere.web.dto.RespDTO;
|
|
-import com.qizhen.healsphere.web.vo.CreateEntityVO;
|
|
|
|
-import com.qizhen.healsphere.web.vo.MergeEntityVO;
|
|
|
|
-import com.qizhen.healsphere.web.vo.UpdateEntityVO;
|
|
|
|
|
|
+import com.qizhen.healsphere.web.vo.*;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -39,7 +37,7 @@ public class EntityController {
|
|
notes = "")
|
|
notes = "")
|
|
@RequestMapping(value = "/deleteEntity",method = RequestMethod.POST)
|
|
@RequestMapping(value = "/deleteEntity",method = RequestMethod.POST)
|
|
@ResponseBody
|
|
@ResponseBody
|
|
- public RespDTO<Boolean> deleteEntity(@RequestBody List<Long> ids) {
|
|
|
|
|
|
+ public RespDTO<Boolean> deleteEntity(@RequestBody DeleteEntityVO ids) {
|
|
|
|
|
|
Boolean flag = entityService.deleteEntity(ids);
|
|
Boolean flag = entityService.deleteEntity(ids);
|
|
return RespDTO.onSuc(flag);
|
|
return RespDTO.onSuc(flag);
|
|
@@ -72,7 +70,7 @@ public class EntityController {
|
|
notes = "")
|
|
notes = "")
|
|
@RequestMapping(value = "/findEntity",method = RequestMethod.POST)
|
|
@RequestMapping(value = "/findEntity",method = RequestMethod.POST)
|
|
@ResponseBody
|
|
@ResponseBody
|
|
- public RespDTO<Map<String, Object>> findEntity(@RequestBody Long id) {
|
|
|
|
|
|
+ public RespDTO<Map<String, Object>> findEntity(@RequestBody FindEntityVO id) {
|
|
|
|
|
|
Map<String, Object> entity = entityService.findEntityById(id);
|
|
Map<String, Object> entity = entityService.findEntityById(id);
|
|
return RespDTO.onSuc(entity);
|
|
return RespDTO.onSuc(entity);
|