|  |  |  | 
|---|
|  |  |  | 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 org.springframework.web.bind.annotation.*; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import java.util.List; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | * @param userId | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @GetMapping("/t-user-site/getSiteIds") | 
|---|
|  |  |  | R<List<Integer>> getSiteIds(Long userId); | 
|---|
|  |  |  | @PostMapping("/t-user-site/getSiteIds/{userId}") | 
|---|
|  |  |  | R<List<Integer>> getSiteIds(@PathVariable("userId") Long userId); | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | 
|---|
|  |  |  | * @param userSite | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @PostMapping("/t-user-site/getSiteIds") | 
|---|
|  |  |  | R addUserSite(List<TUserSite> userSite); | 
|---|
|  |  |  | @PostMapping("/t-user-site/addUserSite") | 
|---|
|  |  |  | R addUserSite(@RequestBody List<TUserSite> userSite); | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | 
|---|
|  |  |  | * @param userId | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @DeleteMapping("/t-user-site/delUserSite") | 
|---|
|  |  |  | R delUserSite(Long userId); | 
|---|
|  |  |  | @DeleteMapping("/t-user-site/delUserSite/{userId}") | 
|---|
|  |  |  | R delUserSite(@PathVariable("userId") Long userId); | 
|---|
|  |  |  | } | 
|---|