generated from semicolondsm/Semicolon_Repository_Generator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* ♻️ :: feignBadRequest error 해결 * 🐛 :: 공지사항 알림 버그 해결 * ♻️ :: , 추가
- Loading branch information
Showing
4 changed files
with
13 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 6 additions & 8 deletions
14
...src/main/kotlin/io/github/v1servicenotification/infrastructure/feign/client/UserClient.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,18 @@ | ||
package io.github.v1servicenotification.infrastructure.feign.client | ||
|
||
import io.github.v1servicenotification.infrastructure.feign.client.dto.request.GetExcludeUserIdsRequest | ||
import io.github.v1servicenotification.infrastructure.feign.client.dto.request.GetUserIdListRequest | ||
import io.github.v1servicenotification.infrastructure.feign.client.dto.response.TokenResponse | ||
import io.github.v1servicenotification.infrastructure.feign.client.dto.response.UserIdListResponse | ||
import org.springframework.cloud.openfeign.FeignClient | ||
import org.springframework.web.bind.annotation.GetMapping | ||
import org.springframework.web.bind.annotation.PostMapping | ||
import org.springframework.web.bind.annotation.RequestBody | ||
import org.springframework.web.bind.annotation.RequestParam | ||
import java.util.UUID | ||
|
||
@FeignClient(name = "UserClient", url = "\${service.scheme}://\${service.user.host}") | ||
interface UserClient { | ||
|
||
@GetMapping("/users/device-token") | ||
fun token(@RequestParam("users") userList: List<UUID>): TokenResponse | ||
@PostMapping("/users/device-token") | ||
fun token(@RequestBody request: GetUserIdListRequest): TokenResponse | ||
|
||
@GetMapping("/users/exclude") | ||
fun getExcludeUserIdList(@RequestBody request: GetExcludeUserIdsRequest): UserIdListResponse | ||
@PostMapping("/users/exclude") | ||
fun getExcludeUserIdList(@RequestBody request: GetUserIdListRequest): UserIdListResponse | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters