1、公共模块的用途
考虑到用户登录系统后,会受到权限规则的限制,类似获取系统菜单、系统通知、即时消息等接口,是所有用户都具备的功能,因此就将这部分的通用功能接口抽离出来放在公共模块中,用户只需登录成功,即具备公共模块接口的调用权限。
2、公共模块控制器
package cn.org.xcore.edusys.controller.common;
import cn.org.xcore.edusys.db.ext.model.Menu;
import cn.org.xcore.edusys.service.impl.MenuService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
/**
* 公共接口
*
* @author 李海林 手机:13802780104|微信:lihailin9073|Email:767679879@qq.com
* @copyright 个人开发者李海林版权所有,产品详情及技术服务请登录官网查询[http://www.x-core.org.cn]
* @create 2019-08-28 08:34
*/