|
@@ -13,6 +13,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import java.util.Arrays;
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
@@ -39,4 +40,22 @@ public class IntroduceDetailController {
|
|
|
List<IntroduceDetail> data = introduceDetailFacade.getByIntroduceId(introduceId);
|
|
|
return RespDTO.onSuc(data);
|
|
|
}
|
|
|
+
|
|
|
+ @ApiOperation(value = "删除单条提示信息明细[by:zhaops]",
|
|
|
+ notes = "id: id,必填")
|
|
|
+ @PostMapping("/deleteRecord")
|
|
|
+ @SysLogger("deleteRecord")
|
|
|
+ public RespDTO<Boolean> deleteRecord(@RequestParam Long id) {
|
|
|
+ Boolean data = introduceDetailFacade.removeById(id);
|
|
|
+ return RespDTO.onSuc(data);
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value = "批量删除提示信息明细[by:zhaops]",
|
|
|
+ notes = "ids: ids,必填")
|
|
|
+ @PostMapping("/deleteRecords")
|
|
|
+ @SysLogger("deleteRecords")
|
|
|
+ public RespDTO<Boolean> deleteRecords(@RequestParam Long[] ids) {
|
|
|
+ Boolean data = introduceDetailFacade.removeByIds(Arrays.asList(ids));
|
|
|
+ return RespDTO.onSuc(data);
|
|
|
+ }
|
|
|
}
|