Commit 8306e66c authored by 18310373984@163.com's avatar 18310373984@163.com

白名单列表删除接口

parent 6b95339e
......@@ -103,4 +103,9 @@ public class FaceLocationWhiteListController {
return faceLocationWhiteListService.addOrUpdateFaceLocationWhiteList(faceLocationWhiteList);
}
@RequestMapping("/deleteFaceLocationWhiteListById")
public Result deleteFaceLocationWhiteListById(@RequestHeader("Authorization") String token, Long listId) {
return faceLocationWhiteListService.deleteFaceLocationWhiteListById(listId);
}
}
......@@ -31,4 +31,6 @@ public interface FaceLocationWhiteListService {
FaceLocationWhiteListVo getFaceLocationWhiteDetail(Long listId);
Result addOrUpdateFaceLocationWhiteList(FaceLocationWhiteList faceLocationWhiteList);
Result deleteFaceLocationWhiteListById(Long listId);
}
......@@ -89,4 +89,13 @@ public class FaceLocationWhiteListServiceImpl implements FaceLocationWhiteListSe
}
return Result.success();
}
public Result deleteFaceLocationWhiteListById(Long listId){
int count=faceLocationWhiteListMapper.deleteById(listId);
if(count>0){
return Result.success();
}else{
return Result.failed("删除0条数据");
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment