From 9e5d3f634b52333c076eb443a64de873c5ddceed Mon Sep 17 00:00:00 2001
From: xuhy <3313886187@qq.com>
Date: 星期六, 09 十一月 2024 14:39:46 +0800
Subject: [PATCH] 代码提交
---
xinquan-modules/xinquan-user/src/main/java/com/xinquan/user/controller/management/MgtTagController.java | 27 ++++++++++++++++++++++++---
1 files changed, 24 insertions(+), 3 deletions(-)
diff --git a/xinquan-modules/xinquan-user/src/main/java/com/xinquan/user/controller/management/MgtTagController.java b/xinquan-modules/xinquan-user/src/main/java/com/xinquan/user/controller/management/MgtTagController.java
index 7cb5cd0..27e3cbb 100644
--- a/xinquan-modules/xinquan-user/src/main/java/com/xinquan/user/controller/management/MgtTagController.java
+++ b/xinquan-modules/xinquan-user/src/main/java/com/xinquan/user/controller/management/MgtTagController.java
@@ -1,8 +1,9 @@
-package com.xinquan.controller;
+package com.xinquan.user.controller.management;
-
+import com.xinquan.user.service.TagService;
+import io.swagger.annotations.Api;
+import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RequestMapping;
-
import org.springframework.web.bind.annotation.RestController;
/**
@@ -13,9 +14,29 @@
* @author mitao
* @since 2024-08-21
*/
+@Api(value = "管理后台接口", tags = "管理后台接口")
@RestController
@RequestMapping("/mgt/tag")
+@RequiredArgsConstructor
public class MgtTagController {
+ private final TagService tagService;
+
+/* @ApiOperation(value = "添加用户标签")
+ @PostMapping("save")
+ public AjaxResult save(@RequestBody Tag tag) {
+ tagService.save(tag);
+ return AjaxResult.success();
+ }
+
+ @ApiOperation(value = "获取用户标签")
+ @GetMapping("/{id}")
+ @ApiParam(value = "标签id")
+ public AjaxResult save(@PathVariable("id") Long id) {
+
+ Tag byId = tagService.getById(id);
+ return AjaxResult.success(byId);
+ }*/
+
}
--
Gitblit v1.7.1