marketing info 업데이트 API 생성

This commit is contained in:
2025-03-04 12:27:17 +09:00
parent 3216c73ee8
commit 83ed4b6961
3 changed files with 37 additions and 0 deletions

View File

@@ -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,