diff --git a/securitycontrol-model/securitycontrol-background/src/main/java/com/securitycontrol/background/controller/DeviceOfBdController.java b/securitycontrol-model/securitycontrol-background/src/main/java/com/securitycontrol/background/controller/DeviceOfBdController.java new file mode 100644 index 0000000..2401d25 --- /dev/null +++ b/securitycontrol-model/securitycontrol-background/src/main/java/com/securitycontrol/background/controller/DeviceOfBdController.java @@ -0,0 +1,21 @@ +package com.securitycontrol.background.controller; + +import com.securitycontrol.background.service.IDeviceOfBdService; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; + +/** + * @author:cwchen + * @date:2024-03-20-13:10 + * @version:1.0 + * @description:边带设备-web层 + */ +@RestController +@RequestMapping("/back/deviceBd/") +public class DeviceOfBdController { + + @Resource(name = "IDeviceOfBdService") + private IDeviceOfBdService service; +} diff --git a/securitycontrol-model/securitycontrol-background/src/main/java/com/securitycontrol/background/mapper/IDeviceOfBdMapper.java b/securitycontrol-model/securitycontrol-background/src/main/java/com/securitycontrol/background/mapper/IDeviceOfBdMapper.java new file mode 100644 index 0000000..6f1fd61 --- /dev/null +++ b/securitycontrol-model/securitycontrol-background/src/main/java/com/securitycontrol/background/mapper/IDeviceOfBdMapper.java @@ -0,0 +1,13 @@ +package com.securitycontrol.background.mapper; + +import org.springframework.stereotype.Repository; + +/** + * @author:cwchen + * @date:2024-03-20-13:12 + * @version:1.0 + * @description:边带设备-数据库访问层 + */ +@Repository(value = "IDeviceOfBdMapper") +public interface IDeviceOfBdMapper { +} diff --git a/securitycontrol-model/securitycontrol-background/src/main/java/com/securitycontrol/background/service/IDeviceOfBdService.java b/securitycontrol-model/securitycontrol-background/src/main/java/com/securitycontrol/background/service/IDeviceOfBdService.java new file mode 100644 index 0000000..a6375da --- /dev/null +++ b/securitycontrol-model/securitycontrol-background/src/main/java/com/securitycontrol/background/service/IDeviceOfBdService.java @@ -0,0 +1,10 @@ +package com.securitycontrol.background.service; + +/** + * @author:cwchen + * @date:2024-03-20-13:11 + * @version:1.0 + * @description:边带设备-业务层 + */ +public interface IDeviceOfBdService { +} diff --git a/securitycontrol-model/securitycontrol-background/src/main/java/com/securitycontrol/background/service/impl/DeviceOfBdServiceImpl.java b/securitycontrol-model/securitycontrol-background/src/main/java/com/securitycontrol/background/service/impl/DeviceOfBdServiceImpl.java new file mode 100644 index 0000000..0c8c7fd --- /dev/null +++ b/securitycontrol-model/securitycontrol-background/src/main/java/com/securitycontrol/background/service/impl/DeviceOfBdServiceImpl.java @@ -0,0 +1,20 @@ +package com.securitycontrol.background.service.impl; + +import com.securitycontrol.background.mapper.IDeviceOfBdMapper; +import com.securitycontrol.background.service.IDeviceOfBdService; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; + +/** + * @author:cwchen + * @date:2024-03-20-13:11 + * @version:1.0 + * @description:边带设备-业务逻辑层 + */ +@Service(value = "IDeviceOfBdService") +public class DeviceOfBdServiceImpl implements IDeviceOfBdService { + + @Resource(name = "IDeviceOfBdMapper") + private IDeviceOfBdMapper mapper; +} diff --git a/securitycontrol-model/securitycontrol-background/src/main/resources/mapper/DeviceBdMapper.xml b/securitycontrol-model/securitycontrol-background/src/main/resources/mapper/DeviceBdMapper.xml new file mode 100644 index 0000000..63902b4 --- /dev/null +++ b/securitycontrol-model/securitycontrol-background/src/main/resources/mapper/DeviceBdMapper.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file