| | |
| | | |
| | | import com.ruoyi.common.core.constant.ServiceNameConstants; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.other.api.domain.TRoleSite; |
| | | import com.ruoyi.other.api.factory.RoleSiteFallbackFactory; |
| | | import com.ruoyi.other.api.factory.UserSiteFallbackFactory; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.DeleteMapping; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | import java.util.List; |
| | |
| | | * @param roleId |
| | | * @return |
| | | */ |
| | | @GetMapping("/t-user-site/getSiteIds") |
| | | R<List<Integer>> getSiteIds(@RequestParam("roleId") Long roleId); |
| | | @GetMapping("/t-role-site/getSiteIds") |
| | | R<List<Integer>> getSiteIds(Long roleId); |
| | | |
| | | |
| | | /** |
| | | * 添加角色站点数据 |
| | | * @param roleSites |
| | | * @return |
| | | */ |
| | | @PostMapping("/t-role-site/addRoleSite") |
| | | R addRoleSite(List<TRoleSite> roleSites); |
| | | |
| | | /** |
| | | * 删除角色站点数据 |
| | | * @param roleId |
| | | * @return |
| | | */ |
| | | @DeleteMapping("/t-role-site/delRoleSite") |
| | | R delRoleSite(Long roleId); |
| | | } |