7 changed files with 164 additions and 14 deletions
			
			
		@ -0,0 +1,89 @@ | 
				
			|||||
 | 
					/** | 
				
			||||
 | 
					 * Copyright 2018 人人开源 https://www.renren.io
 | 
				
			||||
 | 
					 * <p> | 
				
			||||
 | 
					 * This program is free software: you can redistribute it and/or modify | 
				
			||||
 | 
					 * it under the terms of the GNU General Public License as published by | 
				
			||||
 | 
					 * the Free Software Foundation, either version 3 of the License, or | 
				
			||||
 | 
					 * (at your option) any later version. | 
				
			||||
 | 
					 * <p> | 
				
			||||
 | 
					 * This program is distributed in the hope that it will be useful, | 
				
			||||
 | 
					 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 
				
			||||
 | 
					 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
				
			||||
 | 
					 * GNU General Public License for more details. | 
				
			||||
 | 
					 * <p> | 
				
			||||
 | 
					 * You should have received a copy of the GNU General Public License | 
				
			||||
 | 
					 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
				
			||||
 | 
					 */ | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					package com.elink.esua.epdc.controller.v2; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					import com.elink.esua.epdc.commons.api.version.ApiVersion; | 
				
			||||
 | 
					import com.elink.esua.epdc.commons.tools.constant.Constant; | 
				
			||||
 | 
					import com.elink.esua.epdc.commons.tools.exception.ErrorCode; | 
				
			||||
 | 
					import com.elink.esua.epdc.commons.tools.security.user.UserDetail; | 
				
			||||
 | 
					import com.elink.esua.epdc.commons.tools.utils.ExcelUtils; | 
				
			||||
 | 
					import com.elink.esua.epdc.commons.tools.utils.Result; | 
				
			||||
 | 
					import com.elink.esua.epdc.commons.tools.validator.AssertUtils; | 
				
			||||
 | 
					import com.elink.esua.epdc.commons.tools.validator.ValidatorUtils; | 
				
			||||
 | 
					import com.elink.esua.epdc.commons.tools.validator.group.AddGroup; | 
				
			||||
 | 
					import com.elink.esua.epdc.commons.tools.validator.group.DefaultGroup; | 
				
			||||
 | 
					import com.elink.esua.epdc.commons.tools.validator.group.UpdateGroup; | 
				
			||||
 | 
					import com.elink.esua.epdc.dto.AppMenuDTO; | 
				
			||||
 | 
					import com.elink.esua.epdc.dto.AppMenuGroupDTO; | 
				
			||||
 | 
					import com.elink.esua.epdc.dto.epdc.result.EpdcAppChildNavResultDTO; | 
				
			||||
 | 
					import com.elink.esua.epdc.dto.epdc.result.EpdcAppIndexPanelResultDTO; | 
				
			||||
 | 
					import com.elink.esua.epdc.excel.AppMenuExcel; | 
				
			||||
 | 
					import com.elink.esua.epdc.service.AppMenuService; | 
				
			||||
 | 
					import org.springframework.beans.factory.annotation.Autowired; | 
				
			||||
 | 
					import org.springframework.web.bind.annotation.*; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					import javax.servlet.http.HttpServletResponse; | 
				
			||||
 | 
					import java.util.List; | 
				
			||||
 | 
					import java.util.Map; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					/** | 
				
			||||
 | 
					 * APP菜单管理 | 
				
			||||
 | 
					 * | 
				
			||||
 | 
					 * @author work@yujt.net.cn | 
				
			||||
 | 
					 * @since v1.0.0 2019-11-19 | 
				
			||||
 | 
					 */ | 
				
			||||
 | 
					@ApiVersion(2) | 
				
			||||
 | 
					@RestController | 
				
			||||
 | 
					@RequestMapping("appmenu" + Constant.VERSION_CONTROL) | 
				
			||||
 | 
					public class AppMenuV2Controller { | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    @Autowired | 
				
			||||
 | 
					    private AppMenuService appMenuService; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    @GetMapping("select") | 
				
			||||
 | 
					    public Result<AppMenuGroupDTO> select(UserDetail userDetail) { | 
				
			||||
 | 
					        AppMenuGroupDTO result = appMenuService.getUserMenuListV2(userDetail); | 
				
			||||
 | 
					        return new Result().ok(result); | 
				
			||||
 | 
					    } | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    /** | 
				
			||||
 | 
					     * @param mobile | 
				
			||||
 | 
					     * @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List < com.elink.esua.epdc.dto.epdc.result.EpdcIndexPanelResultDTO>> | 
				
			||||
 | 
					     * @Author yinzuomei | 
				
			||||
 | 
					     * @Description 首页面板 获取工作端APP菜单 | 
				
			||||
 | 
					     * @Date 2019/11/20 10:43 | 
				
			||||
 | 
					     **/ | 
				
			||||
 | 
					    @GetMapping("/indexPanel/{mobile}") | 
				
			||||
 | 
					    public Result<List<EpdcAppIndexPanelResultDTO>> indexPanel(@PathVariable("mobile") String mobile) { | 
				
			||||
 | 
					        return appMenuService.indexPanel(mobile); | 
				
			||||
 | 
					    } | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    /** | 
				
			||||
 | 
					     * @param userId | 
				
			||||
 | 
					     * @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List < com.elink.esua.epdc.dto.epdc.result.EpdcAppChildNavResultDTO>> | 
				
			||||
 | 
					     * @Author lpf | 
				
			||||
 | 
					     * @Description 首页面板 获取数据端APP菜单 | 
				
			||||
 | 
					     * @Date 2020/03/18 10:42 | 
				
			||||
 | 
					     **/ | 
				
			||||
 | 
					    @GetMapping("/analysisIndexPanel/{userId}") | 
				
			||||
 | 
					    public Result<List<EpdcAppChildNavResultDTO>> analysisIndexPanel(@PathVariable("userId") String userId) { | 
				
			||||
 | 
					        return appMenuService.getAnalysisIndexPanel(userId); | 
				
			||||
 | 
					    } | 
				
			||||
 | 
					} | 
				
			||||
@ -1 +1 @@ | 
				
			|||||
Subproject commit 8c3f710e726265ff1b3b47ac6ab005d025218974 | 
					Subproject commit 36dc899615aee282944b09e5abd92f45d0084553 | 
				
			||||
					Loading…
					
					
				
		Reference in new issue