提交 506b53f5 authored 作者: yangqi's avatar yangqi

添加设备

上级 166b11ea
......@@ -2,7 +2,7 @@ package cn.lefull.api;
import cn.lefull.common.annotation.NoAuth;
import cn.lefull.common.response.ApiResponse;
import cn.lefull.service.lisa.FaceService;
import cn.lefull.service.lisa.EquipmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
......@@ -15,14 +15,13 @@ import org.springframework.web.bind.annotation.RestController;
@RequestMapping("/lisa")
public class LisaController {
@Autowired
private FaceService faceService;
private EquipmentService equipmentService;
@NoAuth
@GetMapping("/addEquipment")
public ApiResponse<Object> addEquipment(int apartmentId, String uuid, String name, String position, int employeeId) throws Exception {
faceService.addEquipment(apartmentId, uuid, name, position, employeeId);
equipmentService.addEquipment(apartmentId, uuid, name, position, employeeId);
return new ApiResponse<>();
}
}
......@@ -6,7 +6,7 @@ import org.springframework.stereotype.Service;
* @author 杨奇
*/
@Service
public interface FaceService {
public interface EquipmentService {
/**
* 添加设备
......
......@@ -10,7 +10,7 @@ import org.springframework.stereotype.Service;
* @author 杨奇
*/
@Service
public class FaceServiceImpl implements FaceService{
public class EquipmentServiceImpl implements EquipmentService {
@Autowired
private CameraEquipmentMapper equipmentMapper;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论