|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 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.GetMapping; | 
|---|
|  |  |  | import org.springframework.web.bind.annotation.RequestParam; | 
|---|
|  |  |  | import org.springframework.web.bind.annotation.*; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import java.util.List; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | * @param roleId | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @GetMapping("/t-user-site/getSiteIds") | 
|---|
|  |  |  | R<List<Integer>> getSiteIds(@RequestParam("roleId") Long roleId); | 
|---|
|  |  |  | @PostMapping("/t-role-site/getSiteIds/{roleId}") | 
|---|
|  |  |  | R<List<Integer>> getSiteIds(@PathVariable("roleId") Long roleId); | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 添加角色站点数据 | 
|---|
|  |  |  | * @param roleSites | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @PostMapping("/t-role-site/addRoleSite") | 
|---|
|  |  |  | R addRoleSite(@RequestBody List<TRoleSite> roleSites); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 删除角色站点数据 | 
|---|
|  |  |  | * @param roleId | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @DeleteMapping("/t-role-site/delRoleSite/{roleId}") | 
|---|
|  |  |  | R delRoleSite(@PathVariable("roleId") Long roleId); | 
|---|
|  |  |  | } | 
|---|