New file |
| | |
| | | package com.panzhihua.grid_backstage.api; |
| | | |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.user.ComMngUserTagVO; |
| | | import com.panzhihua.common.service.user.UserService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | /** |
| | | * @author xyh |
| | | * @date 2021/6/29 14:45 |
| | | */ |
| | | @Api(tags = {"系统管理"}) |
| | | @Slf4j |
| | | @RequestMapping("/system") |
| | | @RestController |
| | | public class SystemApi extends BaseController { |
| | | |
| | | @Resource |
| | | private UserService userService; |
| | | |
| | | @ApiOperation(value = "获取用户标签",response = ComMngUserTagVO.class) |
| | | @GetMapping("/tags") |
| | | public R config(){ |
| | | return userService.listComMngUserTag(this.getCommunityId()); |
| | | } |
| | | } |