copy from blade-auth/src/main/java/org/springblade/auth/AuthApplication.java
copy to blade-auth/src/main/java/org/springblade/system/service/ITopMenuService.java
| File was copied from blade-auth/src/main/java/org/springblade/auth/AuthApplication.java |
| | |
| | | * this software without specific prior written permission. |
| | | * Author: Chill 庄骞 (smallchill@163.com) |
| | | */ |
| | | package org.springblade.auth; |
| | | package org.springblade.system.service; |
| | | |
| | | import org.springblade.core.mp.base.BaseService; |
| | | import org.springblade.system.entity.TopMenu; |
| | | |
| | | import org.springblade.core.cloud.client.BladeCloudApplication; |
| | | import org.springblade.core.launch.BladeApplication; |
| | | import org.springblade.core.launch.constant.AppConstant; |
| | | import javax.validation.constraints.NotEmpty; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 用户认证服务器 |
| | | * 顶部菜单表 服务类 |
| | | * |
| | | * @author Chill |
| | | * @author BladeX |
| | | */ |
| | | @BladeCloudApplication |
| | | public class AuthApplication { |
| | | public interface ITopMenuService extends BaseService<TopMenu> { |
| | | |
| | | public static void main(String[] args) { |
| | | BladeApplication.run(AppConstant.APPLICATION_AUTH_NAME, AuthApplication.class, args); |
| | | } |
| | | /** |
| | | * 顶部菜单配置 |
| | | * |
| | | * @param topMenuIds 顶部菜单id集合 |
| | | * @param menuIds 菜单id集合 |
| | | * @return 是否成功 |
| | | */ |
| | | boolean grant(@NotEmpty List<Long> topMenuIds, @NotEmpty List<Long> menuIds); |
| | | |
| | | } |