com.java2e.martin.common.api.system.RemoteSystemUser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of martin-common-api Show documentation
Show all versions of martin-common-api Show documentation
Martin 内部接口调用服务,每个业务模块一个目录,本着架构最简原则,远程调用不允许传输自己模块的对象,要传输的对象统一放到martin-common-bean模块下
The newest version!
package com.java2e.martin.common.api.system;
import com.java2e.martin.common.bean.system.vo.PrivilegeVO;
import com.java2e.martin.common.bean.system.vo.UserRolePrivilegeVo;
import com.java2e.martin.common.core.api.R;
import com.java2e.martin.common.core.constant.ServiceNameConstants;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import java.util.Set;
/**
* @author 狮少
* @version 1.0
* @date 2019/9/2
* @describtion RemoteSystemUser, system 模块对外提供的示例服务
* @since 1.0
*/
@FeignClient(contextId = "remoteSystemUser", name = ServiceNameConstants.MARTIN_BIZ_SYSTEM_SERVICE)
public interface RemoteSystemUser {
/**
* 获取用户、权限、菜单
*
* @param username
* @return
*/
@GetMapping("/user/loadUserByUsername/{username}")
R loadUserByUsername(@PathVariable("username") String username);
/**
* 查询所有权限信息
*
* @return
*/
@GetMapping("/user/loadDynamicSecurity")
R> loadSecurity();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy