marketing info 업데이트 API 생성
This commit is contained in:
@@ -128,6 +128,22 @@ class MemberController(
|
||||
)
|
||||
}
|
||||
|
||||
@PutMapping("/marketing-info/update")
|
||||
fun updateMarketingInfo(
|
||||
@RequestBody request: MarketingInfoUpdateRequest,
|
||||
@AuthenticationPrincipal(expression = "#this == 'anonymousUser' ? null : member") member: Member?
|
||||
) = run {
|
||||
if (member == null) throw SodaException("로그인 정보를 확인해주세요.")
|
||||
|
||||
ApiResponse.ok(
|
||||
service.updateMarketingInfo(
|
||||
memberId = member.id!!,
|
||||
adid = request.adid,
|
||||
pid = request.pid
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
@PutMapping("/adid/update")
|
||||
fun updateAdid(
|
||||
@RequestBody request: AdidUpdateRequest,
|
||||
|
Reference in New Issue
Block a user