You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.2 KiB
44 lines
1.2 KiB
package com.epmet.feign;
|
|
|
|
import com.epmet.commons.tools.constant.ServiceConstant;
|
|
import com.epmet.commons.tools.utils.Result;
|
|
import com.epmet.feign.fallback.OperRoleUserFeignClientFallBack;
|
|
import org.springframework.cloud.openfeign.FeignClient;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
import java.util.List;
|
|
|
|
/**
|
|
* @author zhaoqifeng
|
|
* @dscription
|
|
* @date 2020/3/20 17:19
|
|
*/
|
|
@FeignClient(name = ServiceConstant.OPER_ACCESS_SERVER, fallback = OperRoleUserFeignClientFallBack.class)
|
|
public interface OperRoleUserFeignClient {
|
|
|
|
/**
|
|
* 获取权限id列表
|
|
* @param id 用户id
|
|
* @return List<String>
|
|
* @author zhaoqifeng
|
|
*/
|
|
@GetMapping("/oper/access/operroleuser/getRoleIdList/{id}")
|
|
Result<List<String>> getRoleIdList(@PathVariable("id") String id);
|
|
|
|
/**
|
|
* 保存更新权限
|
|
* @param userId 用户id
|
|
* @param roleIdList 权限列表
|
|
* @author zhaoqifeng
|
|
*/
|
|
@PostMapping("/oper/access/operroleuser/saveOrUpdateRole")
|
|
Result saveOrUpdate(@RequestParam("userId") String userId, @RequestBody List<String> roleIdList);
|
|
|
|
/**
|
|
* 根据用户ids,删除角色用户关系
|
|
* @param ids 户ids
|
|
* @return Result
|
|
*/
|
|
@PostMapping("/oper/access/operroleuser/deleteByUserIds")
|
|
Result deleteByUserIds(@RequestBody String[] ids);
|
|
}
|
|
|