package jnpf.permission.fallback; import jnpf.permission.UserRelationApi; import jnpf.permission.entity.UserEntity; import jnpf.permission.entity.UserRelationEntity; import jnpf.permission.model.permission.PermissionModel; import jnpf.permission.model.userrelation.UserRelationSynModel; import org.springframework.stereotype.Component; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestParam; import java.util.ArrayList; import java.util.Collections; import java.util.List; /** * 获取用户关系Api降级处理 * * @author JNPF开发平台组 * @version V3.1.0 * @copyright 引迈信息技术有限公司(https://www.jnpfsoft.com) * @date 2021-03-24 */ @Component public class UserRelationApiFallback implements UserRelationApi { @Override public List getList(String userId) { return new ArrayList<>(); } @Override public List getList(String userId, String objectType) { return new ArrayList<>(); } @Override public List getListByUserIdAll(List id) { return new ArrayList<>(); } @Override public List getListByObjectIdAll(List id) { return new ArrayList<>(); } @Override public List getListByUserId(@RequestParam("userId") String userId) { return Collections.EMPTY_LIST; } @Override public List getListByUserIdAndObjType(@RequestParam("userId") String userId, @RequestParam("objectType") String objectType) { return Collections.EMPTY_LIST; } @Override public List getUserPosAndRole(@RequestParam("userId") String userId, @RequestParam("objectType") String objectType, @RequestParam("tenantId") String tenantId) { return Collections.EMPTY_LIST; } @Override public List getUserProgeny(@RequestBody List idList, @RequestParam("enableMark") String enableMark) { return Collections.EMPTY_LIST; } @Override public List getOrgListByUserId(String id, String organize) { return new ArrayList<>(); } @Override public void save(UserRelationEntity positionUserRelation) { } @Override public void removeOrgRelation(List userRelationEntities, String sysObjId) { } @Override public List getUserAndSub(@RequestBody List idList, @RequestParam("enableMark") String enableMark) { return Collections.EMPTY_LIST; } @Override public List getObjectVoList(String objectType) { return Collections.EMPTY_LIST; } }