package com.newfiber.api.pc.controller; import com.newfiber.api.core.commons.ResultCode; import com.newfiber.api.core.commons.ResultObj; import com.newfiber.api.pc.model.request.MenuListRequest; import com.newfiber.api.pc.model.response.MenuResponse; import com.newfiber.api.pc.service.IAuthService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import javax.annotation.Resource; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.ResponseBody; import java.util.List; @Controller @Api(value = "AuthController",tags = "SYS-03、菜单权限相关", position = 103) public class AuthController{ @Resource private IAuthService authService; @ApiOperation(value = "列表查询用户菜单") @PostMapping(value="/menu_list_by_user") @ResponseBody public ResultObj<List<MenuResponse>> menuListByUser(@RequestBody MenuListRequest request){ return new ResultObj<>(ResultCode.OK, authService.menuListByUser(request)); } }