From 80b696d123cd39860dc1cc18be015c79c03a2f87 Mon Sep 17 00:00:00 2001 From: whyclxw <810412026@qq.com> Date: 星期二, 17 十二月 2024 14:55:13 +0800 Subject: [PATCH] 修改锁和钥匙 --- src/main/java/com/whyc/controller/LockCtlLogController.java | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/whyc/controller/LockCtlLogController.java b/src/main/java/com/whyc/controller/LockCtlLogController.java index b56148f..d3ef8b1 100644 --- a/src/main/java/com/whyc/controller/LockCtlLogController.java +++ b/src/main/java/com/whyc/controller/LockCtlLogController.java @@ -1,10 +1,12 @@ package com.whyc.controller; +import com.whyc.dto.Response; +import com.whyc.pojo.db_area.KeyInf; import com.whyc.service.LockCtlLogService; import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; +import org.springframework.web.bind.annotation.*; @RestController @Api(tags = "寮�閿佹棩蹇�") @@ -12,4 +14,10 @@ public class LockCtlLogController { @Autowired private LockCtlLogService service; + + @ApiOperation(value = "鏌ヨ鏈�杩戠殑寮�閿佹棩蹇�") + @GetMapping("getLockLog") + public Response getLockLog(@RequestParam Integer lockId){ + return service.getLockLog(lockId); + } } \ No newline at end of file -- Gitblit v1.9.1