From 1d42efe4cbd6b1028a28ff7f3ef2b3d721051c2f Mon Sep 17 00:00:00 2001
From: kongdeqiang <123456>
Date: 星期四, 26 九月 2024 13:58:24 +0800
Subject: [PATCH] fix : 新增修改车数日志

---
 src/main/java/com/boying/controller/ViolationTypeController.java |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/boying/controller/ViolationTypeController.java b/src/main/java/com/boying/controller/ViolationTypeController.java
index 9db1efc..3d05cce 100644
--- a/src/main/java/com/boying/controller/ViolationTypeController.java
+++ b/src/main/java/com/boying/controller/ViolationTypeController.java
@@ -6,17 +6,21 @@
 import com.boying.entity.ViolationType;
 import com.boying.service.ViolationTypeService;
 import io.swagger.models.auth.In;
+import io.swagger.v3.oas.annotations.Operation;
+import io.swagger.v3.oas.annotations.tags.Tag;
 import lombok.RequiredArgsConstructor;
 import org.springframework.web.bind.annotation.*;
 
 @RestController
 @RequestMapping("ffzf/violationtype")
 @RequiredArgsConstructor
+@Tag(description = "ffzf/violationtype" , name = "杩濈珷绫诲瀷鎺ュ彛" )
 public class ViolationTypeController {
 
     private final ViolationTypeService violationTypeService;
 
     @PostMapping("/findPage")
+    @Operation(summary = "鍒嗛〉鏌ヨ" , description = "鍒嗛〉鏌ヨ" )
     public Object findPage(Page page) {
         QueryWrapper<ViolationType> wrapper = new QueryWrapper<>();
         wrapper.lambda()
@@ -25,23 +29,27 @@
     }
 
     @PostMapping("/save")
+    @Operation(summary = "鏂板杩濈珷绫诲瀷" , description = "鏂板杩濈珷绫诲瀷" )
     public Object save(ViolationType violationType) {
         violationTypeService.saveOrUpdate(violationType);
         return R.ok("淇濆瓨鎴愬姛");
     }
 
     @GetMapping("/{id}")
+    @Operation(summary = "鏍规嵁id鏌ヨ" , description = "鏍规嵁id鏌ヨ" )
     public Object getObj(@PathVariable Integer id) {
         return R.ok(violationTypeService.getById(id));
     }
 
     @PostMapping("/delete")
+    @Operation(summary = "鍒犻櫎杩濈珷绫诲瀷" , description = "鍒犻櫎杩濈珷绫诲瀷" )
     public Object delete(Long id) {
         violationTypeService.removeById(id);
         return R.ok("鍒犻櫎鎴愬姛");
     }
 
     @PostMapping("/findAll")
+    @Operation(summary = "鏌ヨ鎵�鏈�" , description = "鏌ヨ鎵�鏈�" )
     public Object findAll() {
         return R.ok(violationTypeService.list());
     }

--
Gitblit v1.9.1