| | |
| | | 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; |
| | | |
| | | /** |
| | |
| | | * @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); |
| | | }*/ |
| | | |
| | | } |
| | | |