| | |
| | | |
| | | import com.ruoyi.common.core.constant.ServiceNameConstants; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.other.api.domain.TUserSite; |
| | | import com.ruoyi.other.api.factory.UserSiteFallbackFactory; |
| | | import org.apache.ibatis.annotations.Delete; |
| | | 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; |
| | |
| | | * @return |
| | | */ |
| | | @GetMapping("/t-user-site/getSiteIds") |
| | | R<List<Integer>> getSiteIds(@RequestParam("userId") Long userId); |
| | | R<List<Integer>> getSiteIds(Long userId); |
| | | |
| | | |
| | | /** |
| | | * 添加用户站点关系数据 |
| | | * @param userSite |
| | | * @return |
| | | */ |
| | | @PostMapping("/t-user-site/getSiteIds") |
| | | R addUserSite(List<TUserSite> userSite); |
| | | |
| | | |
| | | /** |
| | | * 删除用户站点数据 |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | @DeleteMapping("/t-user-site/delUserSite") |
| | | R delUserSite(Long userId); |
| | | } |